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: v16.1.0~1401^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ac5839b9f5d4ff2c4269b9da0314837cdafa5360;p=ceph.git python-common: ban paths from non-data-devices Signed-off-by: Joshua Schmid --- diff --git a/src/python-common/ceph/deployment/drive_group.py b/src/python-common/ceph/deployment/drive_group.py index eed8fc2ef2b1..21371d3c24c4 100644 --- a/src/python-common/ceph/deployment/drive_group.py +++ b/src/python-common/ceph/deployment/drive_group.py @@ -294,6 +294,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")