nova/nova/virt/libvirt/storage
Jackie Truong 53a71c1241 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)

Depends-On: I5fe3e5d5e5a9694d0dbe5b59248e5eaf89858c62
Closes-Bug: #1688342
Change-Id: I050585ecb55742a972038cf72b0650321ded2856
2017-05-15 18:24:36 +00:00
..
__init__.py libvirt: move lvm/dmcrypt/rbd_utils modules under storage subdir 2015-07-27 12:47:31 -07:00
dmcrypt.py Fix decoding of encryption key passed to dmcrypt 2017-05-15 18:24:36 +00:00
lvm.py libvirt: fixes python 3 related unit tests 2016-09-26 10:50:04 +00:00
rbd_utils.py Port libvirt.storage.test_rbd to Python 3 2016-12-15 13:38:53 +00:00