]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
drive_group: fix limit filter in drive_selection.selector 50370/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 1 Feb 2023 16:51:18 +0000 (17:51 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Mar 2023 15:11:23 +0000 (16:11 +0100)
commit65869d4dc6c8bc5c5d2a37eddf484ebd63647974
tree8e6ae6d76e9e887c3f3bdae49f6b5b89b6e2136b
parent7ab7f9036aa9a8588e6eaea061eae5a9d1ca20a2
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