]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: still check agent deps if it is marked down 44489/head
authorAdam King <adking@redhat.com>
Thu, 6 Jan 2022 22:01:34 +0000 (17:01 -0500)
committerAdam King <adking@redhat.com>
Fri, 7 Jan 2022 15:17:15 +0000 (10:17 -0500)
commit09a593c8d56adabb01f2aeb0859e7885994ce687
treeda94388d6069f2d0d143115130030834eb78172f
parent452653844daafadacefd5718e2abb66831fb278c
mgr/cephadm: still check agent deps if it is marked down

Right now if an agent is down, the way _check_agent works
if will return without ever going on to check the deps or
scheduled actions for that agent. This causes a few issues.
For one, if an agent is marked down and then a mgr failover
happens, even if reconfiguring the agent would put it in a working
state (e.g. changing the target ip if the active mgr has moved)
we never try it because _check_agent just returns as soon as it
sees the agent is down. Additionally, if someone purposely tried
to schedule a redeploy of a down agent for whatever reason, we
would never make good on this action.

This change allows us to still carry out the normal checks/
scheduled actions even on down agents

Fixes: https://tracker.ceph.com/issues/53723
Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/agent.py
src/pybind/mgr/cephadm/inventory.py