Also run ok_to_stop logic for daemons when
stopping a daemon with "ceph orch daemon stop <daemon>"
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2279225
Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
raise OrchestratorError(
f'Unable to schedule redeploy for {daemon_name}: No standby MGRs')
- if action == 'restart' and not force:
+ if action in ['restart', 'stop'] and not force:
r = service_registry.get_service(daemon_type_to_service(
d.daemon_type)).ok_to_stop([d.daemon_id], force=False)
if r.retval: