]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix set_dmcrypt_no_workqueue()
authorGuillaume Abrioux <gabrioux@ibm.com>
Fri, 7 Jun 2024 08:46:16 +0000 (10:46 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 10 Sep 2024 20:06:54 +0000 (20:06 +0000)
commitf3495d4e3e3f3f64c8aa6b4c89cc56779ac0df99
tree97c9bc1bfce88b5e9f84841bf9716c37dbbe8f5b
parent24909507c0d98fda591eac7067721f94c779a422
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