]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix OSD lvm/tpm2 activation 59953/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 19 Sep 2024 13:13:48 +0000 (15:13 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 24 Sep 2024 08:49:45 +0000 (08:49 +0000)
commitb8851741975cdec19316adc93af0f9e8b3d912dc
tree8b61769081fb4ec5a7691b5a3365cd536e5b9e54
parent1108cc993b0ae058a58aa267d18f607a05fe0e31
ceph-volume: fix OSD lvm/tpm2 activation

After an OSD is successfully prepared, the activation step fails
because the mapper is left open which makes `systemd-cryptsetup attach`
complain about that and prompt for password.
In order to avoid any other potential issue that would make activation
step hang for ever, I'm adding `headless=true`.

Fixes: https://tracker.ceph.com/issues/68150
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 142c96e7ca5a8cdc3229f3a1b56dc5a1204384c9)
src/ceph-volume/ceph_volume/objectstore/lvmbluestore.py
src/ceph-volume/ceph_volume/objectstore/rawbluestore.py
src/ceph-volume/ceph_volume/tests/objectstore/test_lvmbluestore.py
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/tests/util/test_encryption.py
src/ceph-volume/ceph_volume/util/disk.py
src/ceph-volume/ceph_volume/util/encryption.py