]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/telemetry: exclude hostname field in crash reports
authorSage Weil <sage@redhat.com>
Fri, 19 Apr 2019 17:09:36 +0000 (12:09 -0500)
committerSage Weil <sage@redhat.com>
Mon, 22 Apr 2019 14:51:11 +0000 (09:51 -0500)
On some systems the hostname is a fully-qualified domain name and
(even when not a fqdn) may inadvertantly allow the cluster to be
identified.

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/telemetry/module.py

index 19d21872b5653f6fceb62790dda45b73d3308886..38236724efd15147933929733c28958b81b5fba6 100644 (file)
@@ -180,7 +180,9 @@ class Module(MgrModule):
             errno, crashinfo, err = self.remote('crash', 'do_info', cmd, '')
             if errno:
                 continue
-            crashlist.append(json.loads(crashinfo))
+            c = json.loads(crashinfo)
+            del c['utsname_hostname']
+            crashlist.append(c)
         return crashlist
 
     def compile_report(self):