]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
python-common/drivegroups: implement option to change filter_logic
authorJoshua Schmid <jschmid@suse.de>
Wed, 1 Jul 2020 09:10:14 +0000 (11:10 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Thu, 23 Jul 2020 13:17:10 +0000 (15:17 +0200)
commitd94b72804870e06f884a873ba12c585e5c70f2dc
treeb41072e17ad485891c0ad3ee925d89f26d5874c7
parent8ef9a3c84cc6eaa89e9c34302dd55f7abf8966b8
python-common/drivegroups: implement option to change filter_logic

Filters are applied to disks using an AND gate by default. In some
scenarios you can only achieve the desired behavior when using an OR
gate without expanding the available filters.

This patch allows to switch between `AND` and `OR` gates.

Signed-off-by: Joshua Schmid <jschmid@suse.de>
(cherry picked from commit f00fba87925f6f72448128649694d98b4df3e748)
src/pybind/mgr/cephadm/tests/test_spec.py
src/python-common/ceph/deployment/drive_group.py
src/python-common/ceph/deployment/drive_selection/selector.py
src/python-common/ceph/tests/test_drive_group.py
src/python-common/ceph/tests/test_service_spec.py
src/python-common/ceph/tests/utils.py