diff --git a/src/pybind/mgr/orchestrator_cli/module.py b/src/pybind/mgr/orchestrator_cli/module.py index f501e7f6bf6..564c6968ae4 100644 --- a/src/pybind/mgr/orchestrator_cli/module.py +++ b/src/pybind/mgr/orchestrator_cli/module.py @@ -549,6 +549,8 @@ Usage: else: service_type = name; service_name = None + if name in ['mon', 'mgr']: + raise orchestrator.OrchestratorError('The mon and mgr services cannot be removed') completion = self.remove_service(service_type, service_name) self._orchestrator_wait([completion]) orchestrator.raise_if_exception(completion)