mgr/orch: prevent rm mon|mgr

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2020-02-12 15:48:13 -06:00
parent 96b0235d53
commit 852251cea7

View File

@ -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)