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

[CLI] KeyError when trying to list cluster CAs on fresh couchbase install

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • 7.1.0
    • tools
    • Triaged
    • Centos 64-bit
    • 1
    • Unknown
    • Tools 2021 Nov

    Description

      What happens?

      When calling --cluster-ca-info on a fresh install, it errors out with:

      The Certificate Authorities being used by the cluster
      ID   NotBefore                NotAfter                 Loaded Date              Type      Subject
      Traceback (most recent call last):
        File "/opt/couchbase/lib/python/couchbase-cli", line 22, in <module>
          main()
        File "/opt/couchbase/lib/python/couchbase-cli", line 17, in main
          cli.execute(args)
        File "/opt/couchbase/lib/python/cbmgr.py", line 620, in execute
          opts.klass().execute(opts)
        File "/opt/couchbase/lib/python/cbmgr.py", line 143, in decorator
          return fn(self, opts)
        File "/opt/couchbase/lib/python/cbmgr.py", line 3448, in execute
          f'{ca["id"]:<4} {ca["notBefore"]:24} {ca["notAfter"]:24} {ca["loadTimestamp"]} {ca["type"]:9}'
      KeyError: 'loadTimestamp'
      

      What is expected?

      For this to show a blank table

      How to reproduce

      1. Set up a cluster (defaults without analytics)
      2. Run:

        /opt/couchbase/bin/couchbase-cli ssl-manage -c localhost:8091 -u Administrator -p password --cluster-ca-info

      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)
              joe.mitchelljones Joe Mitchell Jones
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty