]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: util/prepare fix osd_id_available() 43952/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 9 Sep 2021 08:23:43 +0000 (10:23 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 16 Nov 2021 14:25:58 +0000 (15:25 +0100)
commit21898ba8ee77115bf0979c0fc5f3d63d0c23ac0f
tree3e717c3d67d3b3c0e107b6d64c94fff3c44ed0de
parentb0aaed0fe8cdfe99c82a70b230004934b51091ff
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