summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/cephadm/schedule.py
diff options
context:
space:
mode:
authorAdam King <adking@redhat.com>2022-03-04 03:47:47 +0100
committerAdam King <adking@redhat.com>2022-03-26 02:21:59 +0100
commitbd9eb596570cfcc7fea793c2b380bc66dd719439 (patch)
treeae5d24f4e1306a47003a297d0d43405acac0cc6e /src/pybind/mgr/cephadm/schedule.py
parentMerge pull request #44343 from adk3798/nfs-offline (diff)
downloadceph-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.py3
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