Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-36505

CLI: setting-alternate-address --list is ambiguous

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • 6.5.0
    • 6.5.0
    • tools
    • None
    • Triaged
    • Unknown

    Description

      If I set alternate addresses for 3 of the 4 hosts in my cluster and then I use setting-alternate-address to list the configuration, it's not clear which alternate address maps to which node. Yes, this is a bad idea on the part of the user, but we should at least be clear.

      E.g.

      $ install/bin/couchbase-cli server-list -c localhost:9000 -u Administrator -p  asdasd 
      n_0@127.0.0.1 [::1]:9000 healthy active
      n_1@127.0.0.1 [::1]:9001 healthy active
      n_2@127.0.0.1 [::1]:9002 healthy active
      n_3@127.0.0.1 [::1]:9003 healthy active
      

      $ install/bin/couchbase-cli setting-alternate-address -c localhost:9000 -u Administrator -p  asdasd --list  | jq .
      [
        {
          "hostname": "192.168.1.208",
          "ports": {
            "mgmt": 9000,
            "kv": 12000
          }
        },
        {
          "hostname": "10.100.172.89",
          "ports": {
            "mgmt": 9001,
            "mgmtSSL": 19001,
            "kv": 12002,
            "kvSSL": 11994,
            "capi": 9501,
            "capiSSL": 19501,
            "projector": 10001
          }
        },
        {
          "hostname": "192.168.1.208",
          "ports": {
            "mgmt": 9003
          }
        }
      ]
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              pvarley Patrick Varley (Inactive)
              dfinlay Dave Finlay
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty