]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: allow zapping partitions on multipath devices
authorGuillaume Abrioux <gabrioux@ibm.com>
Fri, 7 Mar 2025 16:23:02 +0000 (17:23 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Sun, 9 Mar 2025 08:50:02 +0000 (08:50 +0000)
commit29b6bcda3f69f594a751ec92b6985b3dfdd4d56b
tree937830c82cc59a65e0d11067cab0f26e7b682af3
parent1f324f52fe8dd9e2a3dbbc0415a2d546f2b03ad2
ceph-volume: allow zapping partitions on multipath devices

ceph-volume refuses to zap a device if it is a partition on a multipath
device due to an overly strict condition. This change ensures that only
full mapper devices (excluding partitions) are blocked from being zapped,
allowing partitions on multipath devices to be processed correctly.

Fixes: https://tracker.ceph.com/issues/70363
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 16daa6a687c0536324b06536af12ce4e8fc04087)
src/ceph-volume/ceph_volume/devices/lvm/zap.py
src/ceph-volume/ceph_volume/tests/devices/test_zap.py