]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume/batch: fail on filtered devices when non-interactive 33201/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:57:43 +0000 (11:57 +0100)
commit58f9df9fa0f38b02f59f4755c4a406789ec3535c
treea5e0961a4dc56eb96045e8c22f2299502b9faad5
parent10ad59a4b9b0883beb9847b0a614e4f7dd3775d0
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