]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: util/prepare fix osd_id_available() 43109/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 9 Sep 2021 08:23:43 +0000 (10:23 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 13 Sep 2021 15:00:57 +0000 (17:00 +0200)
commit73bfa5d2b0157f92721d8bf36619fd35ee265cdd
treefbe1b02929bcc70fe5be16f79b1d56502923d3cb
parentbae0e903eb238cfbcf9d8cd3e3412588ab2e0574
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>
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