From 2035de7f01812ab0210548355c50762b31fbdf68 Mon Sep 17 00:00:00 2001 From: Joshua Schmid Date: Tue, 3 Mar 2020 12:10:13 +0100 Subject: [PATCH] mgr/volume: adapt arg passing to ServiceSpec Signed-off-by: Joshua Schmid --- src/pybind/mgr/volumes/fs/fs_util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/volumes/fs/fs_util.py b/src/pybind/mgr/volumes/fs/fs_util.py index c0e7e338aed21..565205cd0f251 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]) -- 2.39.5