]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
python-common: Make Drive Group filter by AND, instead of OR
authorSebastian Wagner <sebastian.wagner@suse.com>
Fri, 28 Feb 2020 16:50:38 +0000 (17:50 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 28 Feb 2020 16:53:15 +0000 (17:53 +0100)
commit09d5b5dd421df7b37ca7208b3bb3fa61299ce26b
treec31bf32ebce2d92b6fbcc50724ab100766521e82
parentc62f43e81d215ec3aa0c64587f819a7a755af685
python-common: Make Drive Group filter by AND, instead of OR

Right now, a drive group that specifies `size=100GB` + `rotational=True`
matches on all drives that are either `size=100GB` OR `rotational=True`.
Now we change this to AND.

Fixes: https://tracker.ceph.com/issues/43713
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/python-common/ceph/deployment/drive_selection/__init__.py
src/python-common/ceph/deployment/drive_selection/filter.py
src/python-common/ceph/deployment/drive_selection/selector.py
src/python-common/ceph/deployment/translate.py
src/python-common/ceph/tests/test_disk_selector.py
src/python-common/ceph/tests/test_drive_group.py