]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: The command of 'ceph orch daemon restart mgr.xxx' may case mgr daemon...
authorjianglong01 <jianglong01@qianxin.com>
Fri, 23 Apr 2021 10:10:30 +0000 (18:10 +0800)
committerSage Weil <sage@newdream.net>
Tue, 4 May 2021 16:20:28 +0000 (11:20 -0500)
commite59e51e1a7308a4e8483adbe5baa1ed741509d56
treedf2040d6327eec585b3ae63ce381e69e84535069
parent95c30ceb725bf743871a4c0bcd6dec7fda0a4cf5
mgr/cephadm: The command of 'ceph orch daemon restart mgr.xxx' may case mgr daemon loop to restart
Scene:
The mgr daemon is active. After execing restart command, it may be save "scheduled_daemon_actions": {"mgr.xxx": "restart"}}" to config-key.
So the mgr daemon will restart before call rm_scheduled_daemon_action which case mgr daemon will load restart forever.

Fix mgr infinite restart issue refering to the same solution as 'ceph orch daemon redeploy'.

Signed-off-by: jianglong01 <jianglong01@qianxin.com>
(cherry picked from commit cc5b77ee870e60c2c9d241d5826810eedb295e26)
src/pybind/mgr/cephadm/module.py