From efb9d2462896e703f7d5a51def934ec1cb342ace Mon Sep 17 00:00:00 2001 From: Adam King Date: Thu, 25 Mar 2021 16:29:03 -0400 Subject: [PATCH] mgr/volumes: do not overwrite existant mds specs Signed-off-by: Adam King (cherry picked from commit f6f7ae4c4c88324969f554d99b42b27d50209cfb) --- src/pybind/mgr/volumes/fs/fs_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/volumes/fs/fs_util.py b/src/pybind/mgr/volumes/fs/fs_util.py index 7f8734f42e1c5..65d929adac314 100644 --- a/src/pybind/mgr/volumes/fs/fs_util.py +++ b/src/pybind/mgr/volumes/fs/fs_util.py @@ -40,7 +40,7 @@ def create_mds(mgr, fs_name, placement): service_id=fs_name, placement=PlacementSpec.from_string(placement)) try: - completion = mgr.apply_mds(spec) + completion = mgr.apply([spec], no_overwrite=True) orchestrator.raise_if_exception(completion) except (ImportError, orchestrator.OrchestratorError): return 0, "", "Volume created successfully (no MDS daemons created)" -- 2.39.5