]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: raw activate should ignore lvm backed OSD devices 68657/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 28 Apr 2026 15:10:59 +0000 (17:10 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 29 Apr 2026 07:05:23 +0000 (09:05 +0200)
commit71a5a6f3fb8de36cb7333e8a2235ba2460462673
tree1c0958ea0814e004a2592e7881cd4310b8eef9d2
parent625743ceaf4bda336cfe46902cc49fa6f1f44811
ceph-volume: raw activate should ignore lvm backed OSD devices

the generic activate (`ceph-volume activate`) runs the
raw path before LVM. Raw.activate was walking lsblk / raw
list entries and could hit block devices that are actually
logical volumes from `ceph-volume lvm prepare` or `lvm batch`
(with ceph lvm tags on the lv).
That made raw activation poke at LVM backed OSDs instead of
leaving it to `lvm activate`.

with this commit ceph-volume now builds the set of LV paths
that carry those tags once (`lvs` via ceph_volume_lvm_prepare_lv_paths)
and skip any candidate path that matches, so only real raw
OSDs go through the 'raw activate path'.

Also, we now pass `with_tpm` through luks_open() calls for db and
wal so encrypted metadata uses the same systemd-cryptsetup path
as the block LV when ceph.with_tpm is set.

Fixes: https://tracker.ceph.com/issues/76305
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/api/lvm.py
src/ceph-volume/ceph_volume/objectstore/lvm.py
src/ceph-volume/ceph_volume/objectstore/raw.py
src/ceph-volume/ceph_volume/tests/api/test_api.py