Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-1443

validator-info -v --json does not produce valid JSON

    XMLWordPrintable

Details

    • Bug
    • Status: Complete
    • Medium
    • Resolution: Done
    • None
    • 1.5
    • validator-info
    • None
    • EV 18.14 Monitoring/Stability

    Description

      'validator-info --json' produces terse JSON output. The '-v' option produces verbose output, but when combined with '--json', the output is not valid JSON.

      Steps to reproduce:

      1. Run 'validator-info -v --json'

      Sample output:

      1. 'validator-info --json'

      sudo validator-info --json
      {
        "response-version": "0.0.1",
        "timestamp": 1530557924,
        "Node_info": {
          "Name": "Node8",
          "did": "98VysG35LxrutKTNXvhaztPFHnx5u9kHtT7PnUGqDa8x",
          "verkey": "<redacted>",
          "Node_port": [
            {
              "ip": "0.0.0.0/0",
              "port": 9715,
              "protocol": "tcp"
            }
          ],
          "Client_port": [
            {
              "ip": "0.0.0.0/0",
              "port": 9716,
              "protocol": "tcp"
            }
          ],
          "Metrics": {
            "uptime": 4505,
            "transaction-count": {
              "config": 0,
              "ledger": 412,
              "pool": 10
            },
            "average-per-second": {
              "read-transactions": 0.0,
              "write-transactions": 0.0
            }
          }
        },
        "state": "running",
        "enabled": true,
        "Pool_info": {
          "Total_nodes_count": 10,
          "Reachable_nodes": [
            "Node1",
            "Node10",
            "Node2",
            "Node3",
            "Node4",
            "Node5",
            "Node6",
            "Node7",
            "Node8",
            "Node9"
          ],
          "Reachable_nodes_count": 10,
          "Unreachable_nodes": [],
          "Unreachable_nodes_count": 0
        },
        "software": {
          "indy-node": "1.4.480",
          "sovrin": null
        }
      }
      

      2. 'validator-info -v --json` - Only the first 61 lines included for brevity. Just enough to prove the output is not valid JSON.

        1 "Pool_info":
        2      "Read_only":    n/a
        3      "Reachable_nodes_count":  10
        4      "f_value":      3
        5      "Blacklisted_nodes":
        6      "Total_nodes_count":  10
        7      "Suspicious_nodes":  n/a
        8      "Unreachable_nodes_count":  n/a
        9      "Unreachable_nodes":
       10      "Reachable_nodes":
       11            Node1
       12            Node10
       13            Node2
       14            Node3
       15            Node4
       16            Node5
       17            Node6
       18            Node7
       19            Node8
       20            Node9
       21      "Quorums":      {'observer_data': Quorum(4), 'timestamp': Quorum(4), 'ledger_status': Quorum(6), 'bl    s_signatures': Quorum(7), 'election': Quorum(7), 'consistency_proof': Quorum(4), 'propagate': Quorum(4),     'checkpoint': Quorum(6), 'commit': Quorum(7), 'ledger_status_last_3PC': Quorum(4), 'propagate_primary': Q    uorum(4), 'same_consistency_proof': Quorum(4), 'view_change_done': Quorum(7), 'f': 3, 'prepare': Quorum(6    ), 'reply': Quorum(4), 'view_change': Quorum(7)}
       22 "Hardware":
       23      "HDD_used_by_node":  2650 MBs
       24      "HDD_all":      2650 Mbs
       25      "RAM_all_free":  7512 Mbs
       26      "RAM_used_by_node":  478 Mbs
       27 "response-version":  0.0.1
       28 "Software":
       29      "Indy_packages":
       30            hi  indy-anoncreds                   1.0.32                                     amd64        A    nonymous credentials
       31            hi  indy-node                        1.4.480                                    amd64        I    ndy node
       32            hi  indy-plenum                      1.4.419                                    amd64        P    lenum Byzantine Fault Tolerant Protocol
       33            hi  libindy-crypto                   0.4.0                                      amd64        T    his is the shared crypto libirary for Hyperledger Indy components.
       34            hi  python3-indy-crypto              0.4.1                                      amd64        T    his is the official wrapper for Hyperledger Indy Crypto library (https://www.hyperledger.org/projects).
       35 
       36      "OS_version":   Linux-4.4.0-1061-aws-x86_64-with-Ubuntu-16.04-xenial
       37      "sovrin":       n/a
       38      "indy-node":    1.4.480
       39      "Installed_packages":
       40            pytest 3.5.1
       41            semver 2.7.9
       42            indy-node 1.4.480
       43            rlp 0.5.1
       44            indy-crypto 0.4.1
       45            Pygments 2.2.0
       46            base58 1.0.0
       47            ioflo 1.5.4
       48            orderedset 2.0
       49            sha3 0.2.1
       50            setuptools 38.5.2
       51            sortedcontainers 1.5.7
       52            timeout-decorator 0.4.0
       53            indy-plenum 1.4.419
       54            python-dateutil 2.6.1
       55            python-rocksdb 0.6.9
       56            Charm-Crypto 0.0.0
       57            pluggy 0.6.0
       58            pyzmq 17.0.0
       59            indy-plenum-dev 1.4
       60            more-itertools 4.1.0
       61            six 1.11.0
      

      Attachments

        Activity

          People

            VladimirWork Vladimir Shishkin
            ckochenower Corin Kochenower
            Andrew Nikitin, Corin Kochenower, Mike Bailey, Vladimir Shishkin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: