]> 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)
committerYuri Weinstein <yweinste@redhat.com>
Wed, 26 Mar 2025 21:22:31 +0000 (21:22 +0000)
commitd1aca260e627cd30d5207c155b2654e75deb0dac
tree5f1be86d65f2fb7b9654d7eb573833ca84c53507
parent4a3b149652419557e7b35d76d5cd4b0851c69548
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)
(cherry picked from commit 29b6bcda3f69f594a751ec92b6985b3dfdd4d56b)
src/ceph-volume/ceph_volume/devices/lvm/zap.py
src/ceph-volume/ceph_volume/tests/devices/test_zap.py