]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: alias rgw-nfs -> nfs
authorMichael Fritch <mfritch@suse.com>
Fri, 12 Mar 2021 17:23:01 +0000 (10:23 -0700)
committerMichael Fritch <mfritch@suse.com>
Fri, 12 Mar 2021 17:23:10 +0000 (10:23 -0700)
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 d2563d2323700509e7ab6011304e8457acf5b9a6..01e9c4315ee262c8e9665101eaebaf5c548251d1 100644 (file)
@@ -369,6 +369,9 @@ class CephadmServe:
                         else:
                             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 = s.get('id').split('-rgw')[0]
 
                     if host not in self.mgr.inventory:
                         missing_names.append(name)
@@ -676,4 +679,3 @@ class CephadmServe:
             msg = f'host {host} `cephadm {command}` failed: Cannot decode JSON'
             self.log.exception(f'{msg}: {"".join(out)}')
             raise OrchestratorError(msg)
-