]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
drive_group: fix limit filter in drive_selection.selector
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 1 Feb 2023 16:51:18 +0000 (17:51 +0100)
committerAdam King <adking@redhat.com>
Tue, 25 Apr 2023 12:36:54 +0000 (08:36 -0400)
commit6fa153a9fd02bd8b22ecaebbf834aecd3280540d
tree32f7a8ab3fd43424ebc4fce6caeedfc8a0c98d43
parent345ad51a76aa3bc3920b758450830c6ad5b60eeb
drive_group: fix limit filter in drive_selection.selector

When multiple osd service specs with 'limit' filter are applied,
the current logic makes the second service speec
try to pick devices that are already used by the first service spec.

Fixes: https://tracker.ceph.com/issues/58626
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 8b7da77ae0bf3b7c2ab28cd54b166bc1ff43b437)
src/python-common/ceph/deployment/drive_selection/selector.py
src/python-common/ceph/deployment/inventory.py