nova/nova/tests/unit/virt/libvirt
Lee Yarwood cd3eb60c2c libvirt: Collocate encryptor and volume driver calls
This change introduces new utility methods for attaching and detaching
frontend volume encryptors. These methods centralise the optional
fetching of encryption metadata associated with a volume, fetching of the
required encryptor and calls to detach or attach the encryptor.

These new utility methods are called either after initially connecting
to or before disconnecting from a volume. This ensures encryptors are
correctly connected when swapping volumes for example, where previously
no attempt was made to attach an encryptor to the target volume.

The request context is provided to swap_volume and various other config
generation related methods to allow for the lookup of the relevant
encryption metadata if it is not provided.

Closes-bug: #1739593
Change-Id: Ica323b87fa85a454fca9d46ada3677f18fe50022
2018-01-19 11:50:22 +00:00
..
storage Move shred to privsep. 2017-10-23 09:36:28 +11:00
volume [libvirt] Allow multiple volume attachments 2018-01-18 14:02:35 +01:00
__init__.py
fake_imagebackend.py libvirt: update logic to configure device for scsi controller 2017-07-03 03:23:53 -04:00
fake_libvirt_utils.py Change livesnapshot to true by default 2017-09-22 12:37:58 -04:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py Fix fake libvirt XML generation for disks 2018-01-03 10:42:01 +00:00
test_blockinfo.py Adds 'sata' as a valid disk bus for qemu and kvm hypervisors 2017-10-20 17:03:10 -04:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py libvirt: Provide VGPU inventory for a single GPU type 2018-01-08 14:49:55 +01:00
test_designer.py libvirt: conditionally set script path for ethernet vif types 2017-03-21 14:12:39 -04:00
test_driver.py libvirt: Collocate encryptor and volume driver calls 2018-01-19 11:50:22 +00:00
test_fakelibvirt.py libvirt: Fix getting a wrong guest object 2017-08-23 19:55:12 +09:00
test_firewall.py Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-07-25 10:45:03 +05:30
test_guest.py Merge "libvirt: add method to configure migration speed" 2017-10-19 03:36:53 +00:00
test_host.py libvirt: Provide VGPU inventory for a single GPU type 2018-01-08 14:49:55 +01:00
test_imagebackend.py Fix unit test failures when direct IO not supported 2017-12-17 04:24:01 +00:00
test_imagecache.py Move the dac_admin privsep code to a new location. 2017-09-18 23:14:11 +10:00
test_migration.py live-mig: keep disk device address same 2017-12-14 20:45:04 +00:00
test_utils.py qemu-img do not use cache=none if no O_DIRECT support 2017-11-29 22:33:39 +00:00
test_vif.py Move contrail vif plugging to privsep. 2017-11-02 12:09:27 +11:00