]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: alias rgw-nfs -> nfs
authorMichael Fritch <mfritch@suse.com>
Wed, 3 Mar 2021 22:44:26 +0000 (15:44 -0700)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2021 12:56:17 +0000 (07:56 -0500)
RGW will register a daemon_type `rgw-nfs` which needs to map to
the corresponding cephadm nfs daemon to avoid stray daemon warnings

Fixes: https://tracker.ceph.com/issues/49573
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 0f237223accbea49cf9792400a657cbf696a5d67)

src/pybind/mgr/cephadm/serve.py

index 82d4e8e25a9dc9da55d82240b25b44729dd9a205..3197159a199576cc413491b3abfacb72976fe4ce 100644 (file)
@@ -404,6 +404,9 @@ class CephadmServe:
                         except (KeyError, TypeError):
                             self.log.debug(
                                 "Failed to find daemon id for rbd-mirror service %s" % (s.get('id')))
+                    elif s.get('type') == 'rgw-nfs':
+                        # https://tracker.ceph.com/issues/49573
+                        name = daemon_id.split('-rgw')[0]
 
                     if host not in self.mgr.inventory:
                         missing_names.append(name)