]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: OSD mapper lifecycle (LVM + raw) for activate 68894/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 13 May 2026 12:57:03 +0000 (14:57 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Sun, 24 May 2026 21:31:49 +0000 (23:31 +0200)
commit4a405a877b9ce77986231a69e45fb85392a34802
tree45d94a39c52be93141a1ceb1bd2f0434bfecb5da
parentfefad99380e9cb4c9be50ee071d8e659f46704de
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>
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]