]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
drive_group: fix limit filter in drive_selection.selector 50371/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:15:42 +0000 (16:15 +0100)
commit107e033160b0b268a194928c17caff82fa24d6fb
tree9f566af393e67d9962f13692b642fb6a6b073a73
parent20d752783f0e15cedba12596d87984d8bb63db5d
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