ceph-csi/internal/rbd
Prasanna Kumar Kalever 526ff95f10 rbd: add support to expand encrypted volume
Previously in ControllerExpandVolume() we had a check for encrypted
volumes and we use to fail for all expand requests on an encrypted
volume. Also for Block VolumeMode PVCs NodeExpandVolume used to be
ignored/skipped.

With these changes, we add support for the expansion of encrypted volumes.
Also for raw Block VolumeMode PVCs with Encryption we call NodeExpandVolume.

That said,
With LUKS1, cryptsetup utility doesn't prompt for a passphrase on resizing
the crypto mapper device. This is because LUKS1 devices don't use kernel
keyring for volume keys.

Whereas, LUKS2 devices use kernel keyring for volume key by default, i.e.
cryptsetup utility asks for a passphrase if it detects volume key was
previously passed to dm-crypt via kernel keyring service, we are overriding
the default by --disable-keyring option during cryptsetup open command.
So that at the time of crypto mapper device resize we will not be
prompted for any passphrase.

Fixes: #1469

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2021-07-23 10:00:23 +00:00
..
clone.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
controllerserver_test.go cleanup: resolve parallel test issue 2021-07-13 11:31:39 +00:00
controllerserver.go rbd: add support to expand encrypted volume 2021-07-23 10:00:23 +00:00
driver.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
encryption.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
errors.go rbd: correct the code comment for ErrFlattenInProgress 2020-10-20 08:59:25 +00:00
identityserver.go internal: reformat long lines in internal/rbd package to 120 chars 2021-06-28 14:43:49 +00:00
mirror.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
nodeserver_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
nodeserver.go rbd: add support to expand encrypted volume 2021-07-23 10:00:23 +00:00
rbd_attach.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
rbd_healer.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
rbd_journal.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
rbd_util_test.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
rbd_util.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
replicationcontrollerserver_test.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
replicationcontrollerserver.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
snapshot.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00