]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: abort when passed devices have partitions 45147/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 23 Feb 2022 08:36:29 +0000 (09:36 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 2 Mar 2022 08:27:59 +0000 (09:27 +0100)
commit3be85be439d7ee4d81c7ba686063a12ddcfbd77c
treeb6c345546ebf1c7d13dff3c2e6fdbdf0baf880c6
parent8c3f2172c1b4300a724646e826332ceccf62b820
ceph-volume: abort when passed devices have partitions

ceph-volume doesn't prevent from using db and/or wal devices
with existing partitions on them.
This can lead to a data loss situation.

Fixes: https://tracker.ceph.com/issues/54376
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 75c91a8c6f37a38d69d5da8b1e7d49d9c636230b)
src/ceph-volume/ceph_volume/devices/lvm/common.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py
src/ceph-volume/ceph_volume/tests/util/test_arg_validators.py
src/ceph-volume/ceph_volume/util/arg_validators.py
src/ceph-volume/ceph_volume/util/device.py