Re: Getting the JSON schema of commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please find attached a json output of a nautilus cluster.

I've been extracting here the interesting parts where the daemons have 4467 data type.

This is where I meant we should have an array of items where 4467 is a value and not a key.

Same for may services like rgw, nfs etc..

   "servicemap":{
      "epoch":4,
      "modified":"2018-10-31 16:19:14.034883",
      "services":{
         "rbd-mirror":{
            "daemons":{
               "summary":"",
               "4467":{
                  "start_epoch":4,
                  "start_stamp":"2018-10-31 16:19:13.561327",
                  "gid":4467,
                  "addr":"192.168.1.80:44354/3580903675",
                  "metadata":{
                     "arch":"x86_64",
                     "ceph_release":"nautilus",
                     "ceph_version":"ceph version 14.0.0-4721-gd2fc458 (d2fc458185ec5ffc645a43e47d90cce9463bbe2d) nautilus (dev)",
                     "ceph_version_short":"14.0.0-4721-gd2fc458",
                     "cpu":"Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz",
                     "distro":"centos",
                     "distro_description":"CentOS Linux 7 (Core)",
                     "distro_version":"7",
                     "hostname":"ceph-rbd-mirror0",
                     "id":"ceph-rbd-mirror0",
                     "instance_id":"4467",
                     "kernel_description":"#1 SMP Wed Sep 26 15:12:11 UTC 2018",
"kernel_version":"3.10.0-862.14.4.el7.x86_64",
                     "mem_swap_kb":"2097148",
                     "mem_total_kb":"1015396",
                     "os":"Linux"
                  }
               }
            }
         },


{
   "fsid":"154e322a-d760-4ef6-ac7d-02c9b687af1b",
   "health":{
      "checks":{
         "OSDMAP_FLAGS":{
            "severity":"HEALTH_WARN",
            "summary":{
               "message":"noup flag(s) set"
            }
         },
         "POOL_APP_NOT_ENABLED":{
            "severity":"HEALTH_WARN",
            "summary":{
               "message":"application not enabled on 1 pool(s)"
            }
         }
      },
      "status":"HEALTH_WARN"
   },
   "election_epoch":4,
   "quorum":[
      0,
      1,
      2
   ],
   "quorum_names":[
      "ceph-mon0",
      "ceph-mon1",
      "ceph-mon2"
   ],
   "quorum_age":"682548s",
   "monmap":{
      "epoch":1,
      "fsid":"154e322a-d760-4ef6-ac7d-02c9b687af1b",
      "modified":"2018-10-31 16:02:06.360593",
      "created":"2018-10-31 16:02:06.360593",
      "features":{
         "persistent":[
            "kraken",
            "luminous",
            "mimic",
            "osdmap-prune",
            "nautilus"
         ],
         "optional":[

         ]
      },
      "mons":[
         {
            "rank":0,
            "name":"ceph-mon0",
            "addr":"192.168.1.10:6789/0",
            "public_addr":"192.168.1.10:6789/0"
         },
         {
            "rank":1,
            "name":"ceph-mon1",
            "addr":"192.168.1.11:6789/0",
            "public_addr":"192.168.1.11:6789/0"
         },
         {
            "rank":2,
            "name":"ceph-mon2",
            "addr":"192.168.1.12:6789/0",
            "public_addr":"192.168.1.12:6789/0"
         }
      ]
   },
   "osdmap":{
      "osdmap":{
         "epoch":54,
         "num_osds":4,
         "num_up_osds":4,
         "num_in_osds":4,
         "full":false,
         "nearfull":false,
         "num_remapped_pgs":0
      }
   },
   "pgmap":{
      "pgs_by_state":[
         {
            "state_name":"active+clean",
            "count":124
         }
      ],
      "num_pgs":124,
      "num_pools":13,
      "num_objects":244,
      "data_bytes":3995,
      "bytes_used":58003734528,
      "bytes_avail":76197199872,
      "bytes_total":134200934400,
      "read_bytes_sec":852,
      "read_op_per_sec":0,
      "write_op_per_sec":0
   },
   "fsmap":{
      "epoch":5,
      "id":1,
      "up":1,
      "in":1,
      "max":1,
      "by_rank":[
         {
            "filesystem_id":1,
            "rank":0,
            "name":"ceph-mds0",
            "status":"up:active"
         }
      ]
   },
   "mgrmap":{
      "epoch":8,
      "active_gid":4256,
      "active_name":"ceph-mgr0",
      "active_addrs":{
         "addrvec":[
            {
               "type":"legacy",
               "addr":"192.168.1.30:6800",
               "nonce":8082
            }
         ]
      },
      "active_change":"2018-10-31 16:05:19.467092",
      "available":true,
      "standbys":[

      ],
      "modules":[

      ],
      "available_modules":[
         {
            "name":"balancer",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"crash",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"dashboard",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"devicehealth",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"diskprediction",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"influx",
            "can_run":false,
            "error_string":"influxdb python module not found"
         },
         {
            "name":"insights",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"iostat",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"localpool",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"orchestrator_cli",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"osd_perf_query",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"progress",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"prometheus",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"restful",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"rook",
            "can_run":false,
            "error_string":"`kubernetes` python module not found"
         },
         {
            "name":"selftest",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"smart",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"status",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"telegraf",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"telemetry",
            "can_run":true,
            "error_string":""
         },
         {
            "name":"zabbix",
            "can_run":true,
            "error_string":""
         }
      ],
      "services":{

      },
      "always_on_modules":{
         "nautilus":[
            "balancer",
            "crash",
            "devicehealth",
            "status"
         ]
      }
   },
   "servicemap":{
      "epoch":4,
      "modified":"2018-10-31 16:19:14.034883",
      "services":{
         "rbd-mirror":{
            "daemons":{
               "summary":"",
               "4467":{
                  "start_epoch":4,
                  "start_stamp":"2018-10-31 16:19:13.561327",
                  "gid":4467,
                  "addr":"192.168.1.80:44354/3580903675",
                  "metadata":{
                     "arch":"x86_64",
                     "ceph_release":"nautilus",
                     "ceph_version":"ceph version 14.0.0-4721-gd2fc458 (d2fc458185ec5ffc645a43e47d90cce9463bbe2d) nautilus (dev)",
                     "ceph_version_short":"14.0.0-4721-gd2fc458",
                     "cpu":"Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz",
                     "distro":"centos",
                     "distro_description":"CentOS Linux 7 (Core)",
                     "distro_version":"7",
                     "hostname":"ceph-rbd-mirror0",
                     "id":"ceph-rbd-mirror0",
                     "instance_id":"4467",
                     "kernel_description":"#1 SMP Wed Sep 26 15:12:11 UTC 2018",
                     "kernel_version":"3.10.0-862.14.4.el7.x86_64",
                     "mem_swap_kb":"2097148",
                     "mem_total_kb":"1015396",
                     "os":"Linux"
                  }
               }
            }
         },
         "rgw":{
            "daemons":{
               "summary":"",
               "ceph-rgw0":{
                  "start_epoch":2,
                  "start_stamp":"2018-10-31 16:14:16.582165",
                  "gid":4421,
                  "addr":"192.168.1.50:57088/3788307286",
                  "metadata":{
                     "arch":"x86_64",
                     "ceph_release":"nautilus",
                     "ceph_version":"ceph version 14.0.0-4721-gd2fc458 (d2fc458185ec5ffc645a43e47d90cce9463bbe2d) nautilus (dev)",
                     "ceph_version_short":"14.0.0-4721-gd2fc458",
                     "cpu":"Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz",
                     "distro":"centos",
                     "distro_description":"CentOS Linux 7 (Core)",
                     "distro_version":"7",
                     "frontend_config#0":"civetweb port=192.168.1.50:8080 num_threads=100",
                     "frontend_type#0":"civetweb",
                     "hostname":"ceph-rgw0",
                     "kernel_description":"#1 SMP Wed Sep 26 15:12:11 UTC 2018",
                     "kernel_version":"3.10.0-862.14.4.el7.x86_64",
                     "mem_swap_kb":"2097148",
                     "mem_total_kb":"1015396",
                     "num_handles":"1",
                     "os":"Linux",
                     "pid":"8359",
                     "zone_id":"64dbc442-7e33-4875-b24a-92348ac84786",
                     "zone_name":"default",
                     "zonegroup_id":"8dc5e4cc-6367-428e-8969-96e939f1b5f6",
                     "zonegroup_name":"default"
                  }
               }
            }
         },
         "rgw-nfs":{
            "daemons":{
               "summary":"",
               "ceph-nfs0":{
                  "start_epoch":3,
                  "start_stamp":"2018-10-31 16:17:21.032736",
                  "gid":4457,
                  "addr":"192.168.1.60:45378/3757705554",
                  "metadata":{
                     "arch":"x86_64",
                     "ceph_release":"nautilus",
                     "ceph_version":"ceph version 14.0.0-4721-gd2fc458 (d2fc458185ec5ffc645a43e47d90cce9463bbe2d) nautilus (dev)",
                     "ceph_version_short":"14.0.0-4721-gd2fc458",
                     "cpu":"Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz",
                     "distro":"centos",
                     "distro_description":"CentOS Linux 7 (Core)",
                     "distro_version":"7",
                     "frontend_config#0":"rgwlib",
                     "frontend_type#0":"rgw-nfs",
                     "hostname":"ceph-nfs0",
                     "kernel_description":"#1 SMP Wed Sep 26 15:12:11 UTC 2018",
                     "kernel_version":"3.10.0-862.14.4.el7.x86_64",
                     "mem_swap_kb":"2097148",
                     "mem_total_kb":"1015396",
                     "num_handles":"1",
                     "os":"Linux",
                     "pid":"28075",
                     "zone_id":"64dbc442-7e33-4875-b24a-92348ac84786",
                     "zone_name":"default",
                     "zonegroup_id":"8dc5e4cc-6367-428e-8969-96e939f1b5f6",
                     "zonegroup_name":"default"
                  }
               }
            }
         }
      }
   }
}

[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux