]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix set_dmcrypt_no_workqueue() 57925/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Fri, 7 Jun 2024 08:46:16 +0000 (10:46 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 11 Jun 2024 15:56:56 +0000 (17:56 +0200)
commitdc28b77a6ea50b3390663ac02eeb80367650b7ed
tree886bedb080ebd8229159aa842d78f0d6c878a124
parentac1448809eaec2b934d7458894c410fe2471a0a7
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>
src/ceph-volume/ceph_volume/util/encryption.py