]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: util/prepare fix osd_id_available() 43708/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 9 Sep 2021 08:23:43 +0000 (10:23 +0200)
committerCory Snyder <csnyder@iland.com>
Wed, 3 Nov 2021 13:35:04 +0000 (09:35 -0400)
commit54a7d67c791ef9f4cd26cfe69d1ea0cdf9004635
tree7016c9cb3a7c7430c20f7842382008a639fcb52d
parentda8083446ea73a33a4f601b6cc60307692940590
ceph-volume: util/prepare fix osd_id_available()

The current check only allows to request an OSD id that exists but
marked as 'destroyed'.
With this small fix, we can now use `--osd-id` with an id that doesn't
exist at all.

Fixes: https://tracker.ceph.com/issues/50880
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 73bfa5d2b0157f92721d8bf36619fd35ee265cdd)
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/devices/lvm/common.py
src/ceph-volume/ceph_volume/devices/lvm/migrate.py
src/ceph-volume/ceph_volume/devices/lvm/zap.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_migrate.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_zap.py
src/ceph-volume/ceph_volume/tests/util/test_prepare.py
src/ceph-volume/ceph_volume/util/prepare.py