Update the compute manager to pass network_info and block_device_info
to the driver.resume() and update all virtualization drivers to accept
the new arguments.
For libvirt, change resume() to use _create_domain_and_network()
rather than _create_domain(). This eliminates the assumption that the
network and block device connections remained in place from the period
between the VM being suspended and resumed. Instead, all the
networking and block connections will be rebuilt on resume (in case
they are missing) as is the case after a hypervisor reboot.
Reviewed: https:/ /review. openstack. org/13251 github. com/openstack/ nova/commit/ 99b5e96795b8475 f14d53bbc3845e7 bace730963
Committed: http://
Submitter: Jenkins
Branch: master
commit 99b5e96795b8475 f14d53bbc3845e7 bace730963
Author: Rafi Khardalian <email address hidden>
Date: Tue Sep 4 13:37:46 2012 +0000
Allow VMs to be resumed after a hypervisor reboot
Fixes bug 1052696.
Update the compute manager to pass network_info and block_device_info
to the driver.resume() and update all virtualization drivers to accept
the new arguments.
For libvirt, change resume() to use _create_ domain_ and_network( )
rather than _create_domain(). This eliminates the assumption that the
network and block device connections remained in place from the period
between the VM being suspended and resumed. Instead, all the
networking and block connections will be rebuilt on resume (in case
they are missing) as is the case after a hypervisor reboot.
Change-Id: I6e19ec42f7e929 678abce8f276c0a 6e91f1fa8af