lxd ERROR finalizing credential: not authorized
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
High
|
Unassigned |
Bug Description
I got this error when I was trying to add a remote lxd (3.16), after I manually did the POST juju was able to finish the operation add-cloud.
The error that was being printed in lxd's logs was:
t=2019-
~ $ cat lxd.yaml
clouds:
c3p0:
type: lxd
auth-types: [interactive, certificate]
endpoint: https:/
credentials:
c3p0:
admin:
auth-type: interactive
trust-
~ $ juju add-credential --debug c3p0 -f lxd.yaml
12:01:38 INFO juju.cmd supercommand.go:57 running juju [2.6.8 gc go1.10.4]
12:01:38 DEBUG juju.cmd supercommand.go:58 args: []string{
Loaded client cert/key from "/home/
ERROR finalizing credential: not authorized
12:01:38 DEBUG cmd supercommand.go:496 error stack:
not authorized
/build/
/build/
/build/
~ $ ls /home/freyes/
client.crt client.key
~ $ curl -k --cert /home/freyes/
{"type"
~ $ juju add-credential --debug c3p0 -f lxd.yaml
12:02:07 INFO juju.cmd supercommand.go:57 running juju [2.6.8 gc go1.10.4]
12:02:07 DEBUG juju.cmd supercommand.go:58 args: []string{
Loaded client cert/key from "/home/
Reusing certificate from LXD server.
Credentials "admin" added for cloud "c3p0".
12:02:08 INFO cmd supercommand.go:502 command finished
Changed in juju: | |
milestone: | 2.7-beta1 → 2.7-rc1 |
Changed in juju: | |
milestone: | 2.7-rc1 → none |
Changed in juju: | |
assignee: | Simon Richardson (simonrichardson) → nobody |
I'll see if Simon can take a look into it. Thanks for the report.