From: Joshua Schmid Date: Mon, 10 Aug 2020 11:09:25 +0000 (+0200) Subject: python-common: ban paths from non-data-devices X-Git-Tag: v15.2.5~26^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e4c1eeadcf99a732946ae6a09f93fae91291d8a1;p=ceph.git python-common: ban paths from non-data-devices Signed-off-by: Joshua Schmid (cherry picked from commit ac5839b9f5d4ff2c4269b9da0314837cdafa5360) --- diff --git a/src/python-common/ceph/deployment/drive_group.py b/src/python-common/ceph/deployment/drive_group.py index 9a5769432fe..b5cafdb463e 100644 --- a/src/python-common/ceph/deployment/drive_group.py +++ b/src/python-common/ceph/deployment/drive_group.py @@ -295,6 +295,8 @@ class DriveGroupSpec(ServiceSpec): for s in filter(None, specs): s.validate() for s in filter(None, [self.db_devices, self.wal_devices, self.journal_devices]): + if s.paths: + raise DriveGroupValidationError("`paths` is only allowed for data_devices") if s.all: raise DriveGroupValidationError("`all` is only allowed for data_devices")