libvirt: Block swapping to an encrypted volume when using QEMU to decrypt
The original check in Ibfa64f18bbd2fb70db7791330ed1a64fe61c1355 only
blocked swap volume _from_ an encrypted LUKS volume while using native
QEMU decryption. This change expands that check to also block swap
volume when swapping _to_ an encrypted LUKS volume while using native
QEMU decryption, regardless of the original volume being encrypted.
NOTE(lyarwood): The trivial typo fix Ia1e34df5a7e88c252924c25736ffb6bcaea42bfe
is also squashed into this backport to avoid a conflict.
Change-Id: I258127fdcd011ccec721d5ff62eb7f128f130336
Closes-bug: #1749418
(cherry picked from commit 7ceccee056cb8f50cb5efebd5156cfc56d8e4af7)
Reviewed: https:/ /review. openstack. org/559987 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=546236e3451 6ee061146cebd42 6a67ea17be2a72
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 546236e34516ee0 61146cebd426a67 ea17be2a72
Author: Takashi NATSUME <email address hidden>
Date: Mon Apr 2 18:39:41 2018 +0900
libvirt: Block swapping to an encrypted volume when using QEMU to decrypt
The original check in Ibfa64f18bbd2fb 70db7791330ed1a 64fe61c1355 only
blocked swap volume _from_ an encrypted LUKS volume while using native
QEMU decryption. This change expands that check to also block swap
volume when swapping _to_ an encrypted LUKS volume while using native
QEMU decryption, regardless of the original volume being encrypted.
NOTE(lyarwood): The trivial typo fix Ia1e34df5a7e88c 252924c25736ffb 6bcaea42bfe
is also squashed into this backport to avoid a conflict.
Change-Id: I258127fdcd011c cec721d5ff62eb7 f128f130336 0cb5efebd5156cf c56d8e4af7)
Closes-bug: #1749418
(cherry picked from commit 7ceccee056cb8f5