nova/nova/tests/unit/virt
Jackie Truong 10a62ec99e Fix decoding of encryption key passed to dmcrypt
This patch fixes the decoding of the encryption key passed to dmcrypt.
During the key management move from Nova to Castellan, in the Newton
release, conversion of the encryption key (from a string to list of
unsigned ints) was removed from the key retrieval method. This patch
updates dmcrypt to decode an encryption key string, rather than a list
of unsigned ints. See the linked bug for more information.

The method used to decode the encryption key has been updated to use
binascii, as done in os-brick [1], to maintain consistency. The key
generation and decoding portions of test_dmcrypt have been updated to
reflect this change and ensure compatibility with both, Python 2 and
Python 3.

[1] 6cf9b1cd68/os_brick/encryptors/cryptsetup.py (L100-L102)

Closes-Bug: #1688342
Change-Id: I050585ecb55742a972038cf72b0650321ded2856
(cherry picked from commit 53a71c1241)
2017-05-23 16:01:53 +01:00
..
disk Guestfs handle no passwd or group in image 2017-01-11 18:18:45 +00:00
hyperv Hyper-V: fix image handling when shared storage is being used 2016-11-25 18:32:34 +00:00
image Use assert(Not)Equal instead of assertTrue(A == X) 2016-06-03 16:53:15 +01:00
ironic Ensure we mark baremetal links as phy links 2017-01-20 10:13:35 +00:00
libvirt Fix decoding of encryption key passed to dmcrypt 2017-05-23 16:01:53 +01:00
vmwareapi Using get() method to prevent KeyError 2016-12-01 09:19:23 +00:00
xenapi Merge "Add support for vd2 user context to other drivers" 2016-08-31 02:40:59 +00:00
__init__.py
fakelibosinfo.py Fix misuse of assertTrue in console and virt tests 2016-02-22 16:09:21 +09:00
test_block_device.py Fix invalid uuid warnings in virt testcases 2016-06-02 18:24:12 +05:30
test_configdrive.py force_config_drive: StrOpt -> BoolOpt 2015-11-11 19:59:22 +00:00
test_diagnostics.py
test_driver.py Fix s390 "connector not found" issue 2017-03-09 11:19:10 +01:00
test_events.py
test_fake.py fake: fix public API signatures to match virt driver 2015-02-19 11:44:00 +00:00
test_firewall.py Add unit tests for nova.virt.firewall.IpTablesFirewallDriver (Part 4) 2016-08-16 13:55:30 +00:00
test_hardware.py libvirt: fix incorrect host cpus giving to emulator threads when RT 2016-11-03 20:53:17 +00:00
test_imagecache.py Remove mox from tests/unit/virt/test_imagecache.py 2016-06-16 23:40:01 +00:00
test_images.py Bump prlimit cpu time for qemu from 2 to 8 2016-12-12 12:48:03 +00:00
test_osinfo.py Fix misuse of assertTrue in console and virt tests 2016-02-22 16:09:21 +09:00
test_virt.py Replace stubs.Set with stub_out (os) 2016-01-14 22:35:53 -05:00
test_virt_drivers.py Add migrate_uri for invoking the migration 2016-11-30 14:52:19 +00:00
test_volumeutils.py Switch to using os-brick 2015-07-27 10:47:22 -07:00