diff options
author | Adam King <adking@redhat.com> | 2022-03-04 03:47:47 +0100 |
---|---|---|
committer | Adam King <adking@redhat.com> | 2022-03-26 02:21:59 +0100 |
commit | bd9eb596570cfcc7fea793c2b380bc66dd719439 (patch) | |
tree | ae5d24f4e1306a47003a297d0d43405acac0cc6e /src/pybind/mgr/cephadm/schedule.py | |
parent | Merge pull request #44343 from adk3798/nfs-offline (diff) | |
download | ceph-bd9eb596570cfcc7fea793c2b380bc66dd719439.tar.xz ceph-bd9eb596570cfcc7fea793c2b380bc66dd719439.zip |
mgr/cephadm: offline host watcher
To be able to detect if certain offline hosts go
offline quicker. Could be useful for the NFS
HA feature as this requires moving nfs daemons from
offline hosts within 90 seconds.
Signed-off-by: Adam King <adking@redhat.com>
Diffstat (limited to 'src/pybind/mgr/cephadm/schedule.py')
-rw-r--r-- | src/pybind/mgr/cephadm/schedule.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pybind/mgr/cephadm/schedule.py b/src/pybind/mgr/cephadm/schedule.py index 9a8bad3c906..612c558043c 100644 --- a/src/pybind/mgr/cephadm/schedule.py +++ b/src/pybind/mgr/cephadm/schedule.py @@ -447,5 +447,6 @@ class HostAssignment(object): continue in_maintenance[h.hostname] = False unreachable_hosts = [h.hostname for h in self.unreachable_hosts] - candidates = [c for c in candidates if c.hostname not in unreachable_hosts or in_maintenance[c.hostname]] + candidates = [ + c for c in candidates if c.hostname not in unreachable_hosts or in_maintenance[c.hostname]] return candidates |