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

[CLI] KeyError when using --cluster-ca-info

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • 7.1.0
    • tools
    • Untriaged
    • 1
    • No
    • 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

          For Gerrit Dashboard: MB-49236
          # Subject Branch Project Status CR V

          Activity

            People

              ashwin.govindarajulu Ashwin Govindarajulu
              james.lee James Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty