From: Adam King Date: Wed, 17 Aug 2022 23:03:18 +0000 (-0400) Subject: mgr/cephadm: don't try to write client/os tuning profiles to known offline hosts X-Git-Tag: v16.2.14~101^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=915efebff0b83558a09d2a21e59f5be5dfad8ccc;p=ceph.git mgr/cephadm: don't try to write client/os tuning profiles to known offline hosts Fixes: https://tracker.ceph.com/issues/57175 Signed-off-by: Adam King (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 --- diff --git a/src/pybind/mgr/cephadm/serve.py b/src/pybind/mgr/cephadm/serve.py index 888c889c2b19..7dd55cfd66f1 100644 --- a/src/pybind/mgr/cephadm/serve.py +++ b/src/pybind/mgr/cephadm/serve.py @@ -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