]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: do not accept filestore osds in osdspecs 35955/head
authorJoshua Schmid <jschmid@suse.de>
Tue, 7 Jul 2020 08:33:51 +0000 (10:33 +0200)
committerJoshua Schmid <jschmid@suse.de>
Thu, 9 Jul 2020 13:26:13 +0000 (15:26 +0200)
Signed-off-by: Joshua Schmid <jschmid@suse.de>
src/python-common/ceph/deployment/drive_group.py

index 96f93fb8db62a602f3de4443ff84dd74922823e0..85da04bf29799be11cf7e8787a79b2a58ff2f17c 100644 (file)
@@ -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')