]> 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:44:38 +0000 (08:44 +0000)
commit37733b0442444a12b2178f47ee26129655aaec42
tree34690ecc10ca4a37af8b91e0aba01b1eef2e0f7a
parent501c8b6bd6b13518aa3a4d1ed1b04c65e2429005
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