summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafi Khardalian <rafi@metacloud.com>2013-01-22 12:59:41 -0800
committerRafi Khardalian <rafi@metacloud.com>2013-01-22 14:56:30 -0800
commitcf066f45307731660da03207486f28da33de7be2 (patch)
tree7a4602f3848df8155874d61554ed371eb9fae2e6
parent723987a16f093c18bb2d01f26f82d1ad1512c188 (diff)
downloadnova-cf066f45307731660da03207486f28da33de7be2.tar.gz
nova-cf066f45307731660da03207486f28da33de7be2.tar.xz
nova-cf066f45307731660da03207486f28da33de7be2.zip
Fix double reboot during resume_state_on_host_boot
Re-basing my commit introduced a mistake I did not catch before the merge occurred. resume_state_on_host_boot is calling both _create_domain_and_network followed by _hard_reboot. It should only call _hard_reboot. Change-Id: I52be2c0d0c85abe6386842c980f26b3c5713e3e3
-rw-r--r--nova/virt/libvirt/driver.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py
index 8f260ba74..1e36e3094 100644
--- a/nova/virt/libvirt/driver.py
+++ b/nova/virt/libvirt/driver.py
@@ -964,11 +964,6 @@ class LibvirtDriver(driver.ComputeDriver):
def resume_state_on_host_boot(self, context, instance, network_info,
block_device_info=None):
"""resume guest state when a host is booted."""
- xml = self._get_existing_domain_xml(instance, network_info,
- block_device_info)
- self._create_domain_and_network(xml, instance, network_info,
- block_device_info)
-
# Check if the instance is running already and avoid doing
# anything if it is.
if self.instance_exists(instance['name']):