Credentials not authorized

When adding new model I get following error:
ERROR failed to open environ: not authorized

Running on a lxd host and creating containers using lxd to the remote is no problem. I run juju update-credential <cloud-name> <cred-name> and that looks good:

controller-credentials:
  <cloud-name>:
    <cred-name>:
      content:
        auth-type: certificate
        validity-check: valid
client-credentials:
  <cloud-name>:
    <cred-name>:
      content:
        auth-type: certificate

I’m logged in as superuser on the controller.

What can I do to troubleshoot this? Thanks!

Very related to this I can add:

Hi @joakimnyman,

Thank you for bringing this to our attention. We are currently investigating and will provide more information soon. You can see our current response here

1 Like

Hi @joakimnyman,

Could you please provide us with some more information if you have the ability?

  • Version of lxd you are running
  • Is this a remote lxd and is it clustered? What is it running on top of?
  • Version of Juju client and controller
  • Could you please provide us the output of `openssl s_client -connect :8443 ?

Ta tlm

@tlm - @joakimnyman is using the same infra as I’ve showed you through this but we are in the deep trying to understand if “we” have made some mistakes with our credentials that has rendered into this. But we can consolidate these efforts so that we can perhaps resolve both.