]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: don't try to write client/os tuning profiles to known offline hosts 51346/head
authorAdam King <kingamk3@gmail.com>
Wed, 17 Aug 2022 23:03:18 +0000 (19:03 -0400)
committerMichael Fritch <mfritch@suse.com>
Thu, 4 May 2023 16:37:43 +0000 (10:37 -0600)
Fixes: https://tracker.ceph.com/issues/57175
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit df3557200dcae2ab1b55acf616b13adfc77fc771)

Conflicts:
src/pybind/mgr/cephadm/tests/test_tuned_profiles.py
src/pybind/mgr/cephadm/tuned_profiles.py
- tuned profiles feature (#46493) was not backported to pacific

src/pybind/mgr/cephadm/serve.py

index 888c889c2b1934b82a971a26717b4d2f96f790c7..7dd55cfd66f108c9175c6b9636401806075700aa 100644 (file)
@@ -1065,6 +1065,8 @@ class CephadmServe:
                             client_files: Dict[str, Dict[str, Tuple[int, int, int, bytes, str]]],
                             host: str) -> None:
         updated_files = False
+        if host in self.mgr.offline_hosts:
+            return
         old_files = self.mgr.cache.get_host_client_files(host).copy()
         for path, m in client_files.get(host, {}).items():
             mode, uid, gid, content, digest = m