]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
python-common: drive_selection: fix KeyError when osdspec_affinity is not set 53158/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 19 Jul 2023 09:27:19 +0000 (09:27 +0000)
committerLaura Flores <lflores@ibm.com>
Fri, 25 Aug 2023 18:27:07 +0000 (18:27 +0000)
commit40b4c029fbed3ead4efd46edb306b554cd418d76
tree47620945f90c2b43c1c8a0523fd7f8a2fa5350c4
parente6e652b5f725c6cf6b57705d4d2d3568e17b9585
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>
(cherry picked from commit 908f1d17a15a9d4c9bf603aa45e5f246bb0263e7)
src/python-common/ceph/deployment/drive_selection/selector.py