diff options
author | Gorka Eguileor <geguileo@redhat.com> | 2022-03-30 19:49:18 +0200 |
---|---|---|
committer | Gorka Eguileor <geguileo@redhat.com> | 2022-05-12 16:54:04 +0000 |
commit | 8fbaeba11f445bcf6c6be1f5f7b7aeeb6995c9cd (patch) | |
tree | 26c21592bbf8779a65feae38ca523215bfcb262c /releasenotes | |
parent | b0851b0e9c82446aec2ea0317514766fbc53abc0 (diff) | |
download | nova-8fbaeba11f445bcf6c6be1f5f7b7aeeb6995c9cd.tar.gz |
Fix extending non LUKSv1 encrypted volumes
Patch fixing bug #1861071 resolved the issue of extending LUKS v1
volumes when nova connects them via libvirt instead of through os-brick,
but nova side still fails to extend in-use volumes when they don't go
through libvirt (i.e., LUKS v2).
The logs will show a very similar error, but the user won't know that
this has happened and Cinder will show the new size:
libvirt.libvirtError: internal error: unable to execute QEMU command
'block_resize': Cannot grow device files
There are 2 parts to this problem:
- The device mapper device is not automatically extended.
- Nova tries to use the encrypted block device size as the size of the
decrypted device.
This patch leverages the "extend_volume" method in os-brick connectors
to extend the device mapper device, after the encrypted device has been
extended, and use the size of the decrypted volume for the block_resize
operation.
Related change: I351f1a7769c9f915e4cd280f05a8b8b87f40df84
Closes-Bug: #1967157
Change-Id: Ia1411f11ec4bf44af6a42d5f96c8a0903846ed66
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/bug-1967157-extend-encrypted.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/releasenotes/notes/bug-1967157-extend-encrypted.yaml b/releasenotes/notes/bug-1967157-extend-encrypted.yaml new file mode 100644 index 0000000000..8ff5f6a2f9 --- /dev/null +++ b/releasenotes/notes/bug-1967157-extend-encrypted.yaml @@ -0,0 +1,9 @@ +--- +fixes: + - | + Extending attached encrypted volumes that failed before because they were + not being decrypted using libvirt (any other than LUKS) now work as + expected and the new size will be visible within the instance. See + `Bug 1967157`_ for more details. + + .. _Bug 1967157: https://bugs.launchpad.net/nova/+bug/1967157 |