mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
mgr/orch: prevent rm mon|mgr
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
96b0235d53
commit
852251cea7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user