]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: mgr or mds scale-down should prefer non-active daemons 36485/head
authorAdam King <adking@redhat.com>
Wed, 5 Aug 2020 21:04:46 +0000 (17:04 -0400)
committerAdam King <adking@redhat.com>
Tue, 18 Aug 2020 14:01:40 +0000 (10:01 -0400)
commit0fbf12c9d17a98bf4315b0bff81c0aeb38458e0f
tree10e17c7959b5ad50aa76c262f2e93c4623544604
parent63f74105c0fc2b0100765a088a46bde54840c6ae
mgr/cephadm: mgr or mds scale-down should prefer non-active daemons

When removing daemons during a mgr/mds scale-down, prefer to remove
standby daemons so the active daemon is not killed

Fixes: https://tracker.ceph.com/issues/44252
Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/schedule.py
src/pybind/mgr/cephadm/services/cephadmservice.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/tests/test_scheduling.py
src/pybind/mgr/cephadm/tests/test_spec.py
src/pybind/mgr/orchestrator/_interface.py
src/pybind/mgr/orchestrator/tests/test_orchestrator.py