Changes to juju credentials on an lxd remote cloud fail if the certificate has been added once.
$ juju version
2.5-beta1-bionic-amd64
$ which juju
/snap/bin/juju
$ cat ~/notes/lxd-cluster/creds.yaml
credentials:
lxd-remote:
admin:
auth-type: interactive
trust-password: xxxxxxx
$ juju add-credential lxd-remote -f ~/notes/lxd-cluster/creds.yaml --replace
Loaded client cert/key from "/home/heather/.local/share/juju/lxd"
ERROR finalizing credential: Certificate already in trust store
$ juju remove-credential lxd-remote admin
Local credential "admin" for cloud "lxd-remote" has been deleted.
$ juju add-credential lxd-remote -f ~/notes/lxd-cluster/creds.yaml
Loaded client cert/key from "/home/heather/.local/share/juju/lxd"
ERROR finalizing credential: Certificate already in trust store
The PR for this is here https:/ /github. com/juju/ juju/pull/ 9055