]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volume: adapt arg passing to ServiceSpec 33687/head
authorJoshua Schmid <jschmid@suse.de>
Tue, 3 Mar 2020 11:10:13 +0000 (12:10 +0100)
committerJoshua Schmid <jschmid@suse.de>
Tue, 3 Mar 2020 11:10:13 +0000 (12:10 +0100)
Signed-off-by: Joshua Schmid <jschmid@suse.de>
src/pybind/mgr/volumes/fs/fs_util.py

index c0e7e338aed2116da9c13974bff9223465dfef9b..565205cd0f2517e3c217c9640ed80120a08b4b7a 100644 (file)
@@ -34,7 +34,9 @@ def remove_filesystem(mgr, fs_name):
     return mgr.mon_command(command)
 
 def create_mds(mgr, fs_name, placement):
-    spec = orchestrator.ServiceSpec(fs_name, orchestrator.PlacementSpec.from_strings(placement.split()))
+    spec = orchestrator.ServiceSpec(service_type='mds',
+                                    service_id=fs_name,
+                                    placement=orchestrator.PlacementSpec.from_strings(placement.split()))
     try:
         completion = mgr.apply_mds(spec)
         mgr._orchestrator_wait([completion])