diff options
| author | Yufang Zhang <yufang521247@gmail.com> | 2013-05-06 21:06:53 +0800 |
|---|---|---|
| committer | Yufang Zhang <yufang521247@gmail.com> | 2013-05-06 21:21:45 +0800 |
| commit | 0098f12e8b1f035c7ecdb952cfcd4bbae86b6246 (patch) | |
| tree | 38cffdd24f0854098d64c071dafdf7ad902d9396 /nova | |
| parent | 7bd267d5adeae405e6c7ae44624927aebddb918d (diff) | |
| download | nova-0098f12e8b1f035c7ecdb952cfcd4bbae86b6246.tar.gz nova-0098f12e8b1f035c7ecdb952cfcd4bbae86b6246.tar.xz nova-0098f12e8b1f035c7ecdb952cfcd4bbae86b6246.zip | |
libvirt: ignore NOSTATE in resume_state_on_host_boot() method.
Occasionally, libvirt would get NOSTATE from hypervisor as instance
state. Thus if we don't ignore instances in NOSTATE in
resume_state_on_host_boot() method, we would mistakenly reboot such
instances when we restart nova-compute service or on host boot. This
patch fixes this by adding NOSTATE into ignored_states.
Bug 1176897
Change-Id: I651cb043d7f97fde29b2a62e6ead8222062f01f7
Diffstat (limited to 'nova')
| -rwxr-xr-x | nova/virt/libvirt/driver.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py index e8a0a46eb..8c8468fb5 100755 --- a/nova/virt/libvirt/driver.py +++ b/nova/virt/libvirt/driver.py @@ -1434,6 +1434,7 @@ class LibvirtDriver(driver.ComputeDriver): ignored_states = (power_state.RUNNING, power_state.SUSPENDED, + power_state.NOSTATE, power_state.PAUSED) if state in ignored_states: |
