]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: OSD mapper lifecycle (LVM + raw) for activate 69091/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 13 May 2026 12:57:03 +0000 (14:57 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 26 May 2026 09:27:09 +0000 (09:27 +0000)
commitf9b4ce0d877e42aa24801bcf3d4ce2518ada0141
tree3ca8d938c14686ea9466920609d79f0058a1d371
parentcce35ca664bf4b40062880b7797538fbc7774227
ceph-volume: OSD mapper lifecycle (LVM + raw) for activate

This adds small helpers so activate can consistently bring the OSD device
stack online (LVM lvchange, optional mapper open) and tear it down again,
with refresh in between. Same idea for the raw path. Crypto is handled
inside that flow when the OSD is encrypted.

Fixes: https://tracker.ceph.com/issues/76591
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 4a405a877b9ce77986231a69e45fb85392a34802)
src/ceph-volume/ceph_volume/activate/main.py
src/ceph-volume/ceph_volume/objectstore/lvm.py
src/ceph-volume/ceph_volume/objectstore/raw.py
src/ceph-volume/ceph_volume/tests/objectstore/test_raw.py
src/ceph-volume/ceph_volume/tests/util/test_encryption.py
src/ceph-volume/ceph_volume/tests/util/test_osd_luks_credentials.py [new file with mode: 0644]
src/ceph-volume/ceph_volume/tests/util/test_raw_osd_crypt_mappers.py [new file with mode: 0644]
src/ceph-volume/ceph_volume/util/encryption.py
src/ceph-volume/ceph_volume/util/lvm_osd_mappers.py [new file with mode: 0644]
src/ceph-volume/ceph_volume/util/osd_luks_credentials.py [new file with mode: 0644]
src/ceph-volume/ceph_volume/util/raw_osd_crypt_mappers.py [new file with mode: 0644]