]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume/batch: fail on filtered devices when non-interactive 33202/head
authorJan Fajerski <jfajerski@suse.com>
Tue, 3 Dec 2019 12:44:00 +0000 (13:44 +0100)
committerJan Fajerski <jfajerski@suse.com>
Tue, 11 Feb 2020 10:59:06 +0000 (11:59 +0100)
commitb1045cfbda00b93ebdd8595f93721b1023ccf6af
tree35697f6cd97df2bd4f6806d1a85065ab526c3d2b
parentac764642efda5637821460720c438042fa83b480
ceph-volume/batch: fail on filtered devices when non-interactive

When batch is called non-interactively and a user explicitly specifies,
say a db-device, this will be filtered when unavailable. This can cause
the resulting OSD to be very different from the users intention
(standalone vs external db when the db-device was filtered). If devices
get filtered in non-interactive mode, ceph-volume should fail.

Fixes: https://tracker.ceph.com/issues/43105
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 2e985053deec6c4cf60c0b85aec3df16cd77ceeb)
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py