From e4c1eeadcf99a732946ae6a09f93fae91291d8a1 Mon Sep 17 00:00:00 2001 From: Joshua Schmid Date: Mon, 10 Aug 2020 13:09:25 +0200 Subject: [PATCH] python-common: ban paths from non-data-devices Signed-off-by: Joshua Schmid (cherry picked from commit ac5839b9f5d4ff2c4269b9da0314837cdafa5360) --- src/python-common/ceph/deployment/drive_group.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python-common/ceph/deployment/drive_group.py b/src/python-common/ceph/deployment/drive_group.py index 9a5769432fed..b5cafdb463e6 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") -- 2.47.3