]> git.apps.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@redhat.com>
Thu, 20 Jun 2024 07:28:55 +0000 (07:28 +0000)
commit05ea72c70e06cc70f74b459c399c43f0a8863986
treec19d7178c6e7f1b45715acfc8646112ece236b4e
parentffdcd9c42be4354b71dbe3ec41883ab92e8606af
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