nova/nova/tests/unit/virt/libvirt
Anthony Lee 8b649aa86f Fix live-migrations usage of the wrong connector information
During the post_live_migration step for the Nova libvirt driver
an incorrect assumption is being made about the connector
information being sent to _disconnect_volume. It is assumed that
the connection information on the source and destination is the
same but that is not always the case. The BDM, where the
connector information is being retrieved from only contains the
connection information for the destination. This will not work
when trying to disconnect volumes from the source during live
migration as the properties such as the target_lun and
initiator_target_map could be different. This ends up leaving
behind dangling LUNs and possibly removing the incorrect
volume's LUNs.

The solution proposed here utilizes the connection_info that
can be retrieved for a host from Cinder's initialize_connection
API. This connection information contains the correct data for
the source host and allows volume LUNs to be removed properly.

Change-Id: I3dfb75eb58dfbc66b218bcee473af4c2ac282eb6
Closes-Bug: #1475411
Closes-Bug: #1288039
Closes-Bug: #1423772
2015-08-06 12:53:05 -07:00
..
storage libvirt: Add logging for dm-crypt error conditions 2015-07-31 09:45:16 -04:00
volume Add os_brick-based VolumeDriver for HGST connector 2015-08-06 08:40:06 +00:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fake_imagebackend.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fake_libvirt_utils.py Merge "Get py34 subunit.run test discovery to work" 2015-07-31 13:23:55 +00:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py libvirt: enhance libvirt to set admin password 2015-08-04 08:37:46 -04:00
test_blockinfo.py libvirt: Fix root device name for volume-backed instances 2015-08-04 20:35:22 +03:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py Merge "libvirt: Correct domxml node name." 2015-07-17 04:11:40 +00:00
test_designer.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_driver.py Fix live-migrations usage of the wrong connector information 2015-08-06 12:53:05 -07:00
test_fakelibvirt.py Removed unused variables 2015-05-20 14:31:33 +03:00
test_firewall.py libvirt: retry to undefine network filters during _post_live_migration 2015-04-29 10:48:23 -07:00
test_guest.py libvirt: enhance libvirt to set admin password 2015-08-04 08:37:46 -04:00
test_host.py libvirt: introduce method get_guest to Host object 2015-06-04 07:04:38 -04:00
test_imagebackend.py libvirt: move lvm/dmcrypt/rbd_utils modules under storage subdir 2015-07-27 12:47:31 -07:00
test_imagecache.py Get py34 subunit.run test discovery to work 2015-07-28 10:40:56 +00:00
test_utils.py libvirt: Kill rsync/scp processes before deleting instance 2015-07-29 02:00:50 -07:00
test_vif.py libvirt: enable virtio-net multiqueue 2015-08-06 01:20:31 -04:00