From: Joshua Schmid Date: Tue, 3 Mar 2020 11:10:13 +0000 (+0100) Subject: mgr/volume: adapt arg passing to ServiceSpec X-Git-Tag: v15.1.1~102^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2035de7f01812ab0210548355c50762b31fbdf68;p=ceph.git mgr/volume: adapt arg passing to ServiceSpec Signed-off-by: Joshua Schmid --- diff --git a/src/pybind/mgr/volumes/fs/fs_util.py b/src/pybind/mgr/volumes/fs/fs_util.py index c0e7e338aed2..565205cd0f25 100644 --- a/src/pybind/mgr/volumes/fs/fs_util.py +++ b/src/pybind/mgr/volumes/fs/fs_util.py @@ -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])