]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: fix host drain with agent
authorAdam King <adking@redhat.com>
Tue, 28 Sep 2021 12:50:34 +0000 (08:50 -0400)
committerAdam King <adking@redhat.com>
Tue, 28 Sep 2021 15:43:10 +0000 (11:43 -0400)
commit20989eae5760ae7928bab1c7e55488b6cea8acee
tree58bc16644c709b399f2ca6da127ffca390dce60e
parenta24b3fa949d1b5acbbc10d45ea4ed80fa37eaeb5
mgr/cephadm: fix host drain with agent

Agent was not getting removed from hosts with _no_schedule label
since it was using all hosts rather than _schedulable hosts. Added
a _non_draining hosts function to return a prope list of hosts agent
is okay to schedule on.

Was stuck between using a daemon to report which daemons are on the
host and wanting to remove all the daemons on the host when draining.
Now using ssh to confirm all the daemons have left the host.

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/agent.py
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/serve.py