From 0098f12e8b1f035c7ecdb952cfcd4bbae86b6246 Mon Sep 17 00:00:00 2001 From: Yufang Zhang Date: Mon, 6 May 2013 21:06:53 +0800 Subject: 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 --- nova/virt/libvirt/driver.py | 1 + 1 file changed, 1 insertion(+) (limited to 'nova/virt') 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: -- cgit