Ignore "guest not ready" error when graceful halting [GH-1679]
This commit is contained in:
parent
2a690af5d1
commit
4c5262690e
|
@ -17,6 +17,11 @@ IMPROVEMENTS:
|
||||||
- More precise detection of Ubuntu/Debian guests so that running Vagrant
|
- More precise detection of Ubuntu/Debian guests so that running Vagrant
|
||||||
within an LXC container works properly now.
|
within an LXC container works properly now.
|
||||||
|
|
||||||
|
BUG FIXES:
|
||||||
|
|
||||||
|
- Ignore "guest not ready" errors when attempting to graceful halt and
|
||||||
|
carry on checks whether the halt succeeded. [GH-1679]
|
||||||
|
|
||||||
## 1.2.2 (April 23, 2013)
|
## 1.2.2 (April 23, 2013)
|
||||||
|
|
||||||
FEATURES:
|
FEATURES:
|
||||||
|
|
|
@ -44,7 +44,12 @@ module Vagrant
|
||||||
# checked above.
|
# checked above.
|
||||||
if graceful
|
if graceful
|
||||||
env[:ui].info I18n.t("vagrant.actions.vm.halt.graceful")
|
env[:ui].info I18n.t("vagrant.actions.vm.halt.graceful")
|
||||||
env[:machine].guest.capability(:halt)
|
|
||||||
|
begin
|
||||||
|
env[:machine].guest.capability(:halt)
|
||||||
|
rescue Errors::MachineGuestNotReady
|
||||||
|
@logger.info("Machine guest not ready while attempting to halt. Ignoring.")
|
||||||
|
end
|
||||||
|
|
||||||
@logger.debug("Waiting for target graceful halt state: #{@target_state}")
|
@logger.debug("Waiting for target graceful halt state: #{@target_state}")
|
||||||
count = 0
|
count = 0
|
||||||
|
|
Loading…
Reference in New Issue