Skip to content

Commit 16bc30c

Browse files
committed
mgr/cephadm/module.py: Run ok_to_stop logic for stop
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 <[email protected]>
1 parent 46ba365 commit 16bc30c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pybind/mgr/cephadm/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,7 @@ def daemon_action(self, action: str, daemon_name: str, image: Optional[str] = No
26672667
raise OrchestratorError(
26682668
f'Unable to schedule redeploy for {daemon_name}: No standby MGRs')
26692669

2670-
if action == 'restart' and not force:
2670+
if action in ['restart', 'stop'] and not force:
26712671
r = service_registry.get_service(daemon_type_to_service(
26722672
d.daemon_type)).ok_to_stop([d.daemon_id], force=False)
26732673
if r.retval:

0 commit comments

Comments
 (0)