From: Joshua Schmid Date: Tue, 7 Jul 2020 08:33:51 +0000 (+0200) Subject: mgr/cephadm: do not accept filestore osds in osdspecs X-Git-Tag: v16.1.0~1739^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F35955%2Fhead;p=ceph.git mgr/cephadm: do not accept filestore osds in osdspecs 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 96f93fb8db6..85da04bf297 100644 --- a/src/python-common/ceph/deployment/drive_group.py +++ b/src/python-common/ceph/deployment/drive_group.py @@ -288,8 +288,9 @@ class DriveGroupSpec(ServiceSpec): if s.all: raise DriveGroupValidationError("`all` is only allowed for data_devices") - if self.objectstore not in ('filestore', 'bluestore'): - raise DriveGroupValidationError("objectstore not in ('filestore', 'bluestore')") + if self.objectstore not in ('bluestore'): + raise DriveGroupValidationError(f"{self.objectstore} is not supported. Must be " + f"one of ('bluestore')") if self.block_wal_size is not None and type(self.block_wal_size) != int: raise DriveGroupValidationError('block_wal_size must be of type int')