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
- Set up a cluster (defaults without analytics)
- Run:
/opt/couchbase/bin/couchbase-cli ssl-manage -c localhost:8091 -u Administrator -p password --cluster-ca-info
Attachments
Issue Links
- is duplicated by
-
MB-49206 [CLI] KeyError when trying to list cluster CAs on fresh couchbase install
- Closed
For Gerrit Dashboard: MB-49236 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
164645,5 | MB-49236 Handle optional fields in the 'trustedCAs' payload | master | couchbase-cli | Status: MERGED | +2 | +1 |