]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/telemetry: include min_mon_release and msgr v1 vs v2 addr count
authorSage Weil <sage@redhat.com>
Tue, 29 Oct 2019 16:14:30 +0000 (11:14 -0500)
committerSage Weil <sage@redhat.com>
Tue, 29 Oct 2019 18:38:44 +0000 (13:38 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
PendingReleaseNotes
src/pybind/mgr/telemetry/module.py

index a5027defd3a980f2e1cba920f84fa8aff1a6648d..94c3dec74bac02522e2ec651226f2a2dc4d8b3df 100644 (file)
     - how many data pools
     - approximate file system age (year + month of creation)
 
+  We have also added:
+
+    - which Ceph release the monitors are running
+    - whether msgr v1 or v2 addresses are used for the monitors
+    - whether IPv4 or IPv6 addresses are used for the monitors
+
   If you had telemetry enabled, you will need to re-opt-in with::
 
     ceph telemetry on
   You can view exactly what information will be reported first with::
 
     ceph telemetry show        # see everything
-    ceph telemetry show basic  # basic cluster info, including the new CephFS info
+    ceph telemetry show basic  # basic cluster info (including all of the new info)
 
 * Following invalid settings now are not tolerated anymore
   for the command `ceph osd erasure-code-profile set xxx`.
index af57787c2138c36d0401b7a5719a7a8f3f9ad168..aeee3357e44a685e4ec8f4b565264108c89a6120 100644 (file)
@@ -371,9 +371,28 @@ class Module(MgrModule):
 
             report['created'] = mon_map['created']
 
+            v1_mons = 0
+            v2_mons = 0
+            ipv4_mons = 0
+            ipv6_mons = 0
+            for mon in mon_map['mons']:
+                for a in mon['public_addrs']['addrvec']:
+                    if a['type'] == 'v2':
+                        v2_mons += 1
+                    elif a['type'] == 'v1':
+                        v1_mons += 1
+                    if a['addr'].startswith('['):
+                        ipv6_mons += 1
+                    else:
+                        ipv4_mons += 1
             report['mon'] = {
                 'count': len(mon_map['mons']),
-                'features': mon_map['features']
+                'features': mon_map['features'],
+                'min_mon_release': mon_map['min_mon_release'],
+                'v1_addr_mons': v1_mons,
+                'v2_addr_mons': v2_mons,
+                'ipv4_addr_mons': ipv4_mons,
+                'ipv6_addr_mons': ipv6_mons,
             }
 
             report['config'] = self.gather_configs()