]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix set_dmcrypt_no_workqueue() 58997/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Fri, 7 Jun 2024 08:46:16 +0000 (10:46 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Aug 2024 12:10:06 +0000 (12:10 +0000)
commit5df13b4197a10f0209a535a30ca9b9e5e6a12fdb
tree7ebd2842ffdac798d0d7a04425791e08ce4ff19a
parent4e7345c9a65ffbe5d5558b9286f5c79d83814c40
ceph-volume: fix set_dmcrypt_no_workqueue()

`set_dmcrypt_no_workqueue()` from `ceph_volume.util.encryption`

The function `set_dmcrypt_no_workqueue` in `encryption.py` now
dynamically retrieves the installed cryptsetup version using `cryptsetup
--version` command. It then parses the version string using a regular
expression to accommodate varying digit counts. If the retrieved version
is greater than or equal to the specified target version,
`conf.dmcrypt_no_workqueue` is set to True, allowing for flexible version
handling.

Fixes: https://tracker.ceph.com/issues/66393
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit dc28b77a6ea50b3390663ac02eeb80367650b7ed)
src/ceph-volume/ceph_volume/util/encryption.py