]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
python-common: drive_selection: fix KeyError when osdspec_affinity is not set
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 19 Jul 2023 09:27:19 +0000 (09:27 +0000)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 25 Jul 2023 15:46:04 +0000 (15:46 +0000)
commit908f1d17a15a9d4c9bf603aa45e5f246bb0263e7
treee30f7b34acab0fa7f17905774fe2b1397f72b9c6
parent86b36a132dfee795ee579842ed1b5fa7b3a1eea7
python-common: drive_selection: fix KeyError when osdspec_affinity is not set

When osdspec_affinity is not set, the drive selection code will fail.
This can happen when a device has multiple LVs where some of are used
by Ceph and at least one LV isn't used by Ceph.

Fixes: https://tracker.ceph.com/issues/58946
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/python-common/ceph/deployment/drive_selection/selector.py