]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: fix tcmu-runner cephadm_stray_daemon
authorMelissa Li <melissali@redhat.com>
Sat, 6 Nov 2021 03:36:01 +0000 (23:36 -0400)
committerMelissa Li <melissali@redhat.com>
Wed, 22 Dec 2021 17:04:21 +0000 (12:04 -0500)
Adds tcmu-runner daemon to `managed` to prevent cephadm from raising a cephadm_stray_daemon health warning whenever an image is added to a target

Fixes: https://tracker.ceph.com/issues/51111
Signed-off-by: Melissa Li <melissali@redhat.com>
src/pybind/mgr/cephadm/serve.py

index 64f859c3c4747313ef2ef6776b1de568fba44ac3..edaffa035f275463ab0a408829db2fe3500dcadb 100644 (file)
@@ -501,7 +501,11 @@ class CephadmServe:
                                     s.get('type'), s.get('id')
                                 )
                             )
-
+                    if s.get('type') == 'tcmu-runner':
+                        # because we don't track tcmu-runner daemons in the host cache
+                        # and don't have a way to check if the daemon is part of iscsi service
+                        # we assume that all tcmu-runner daemons are managed by cephadm
+                        managed.append(name)
                     if host not in self.mgr.inventory:
                         missing_names.append(name)
                         host_num_daemons += 1