autoload credentials has misleading error message when lxd not found

Bug #1860717 reported by David Lawson
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Heather Lanigan

Bug Description

While trying to load a new set of credentials from Azure, we're consistently getting an error involving LXD:

~$ azure login
info: Executing command login
<snip>
info: login command OK
~$ juju autoload-credentials

Looking for cloud and credential information locally...
ERROR unable to detect local LXC credentials: failed to connect to local LXD: LXD socket not found; is LXD installed & running?

Please install LXD by running:
 $ sudo snap install lxd
and then configure it with:
 $ newgrp lxd
 $ lxd init

No cloud credentials found.
~$ juju --version
2.6.10-trusty-amd64

Why is it trying to find LXD creds and how do we make it stop? Related, how do we get it to find our actual Azure creds?

Revision history for this message
Ian Booth (wallyworld) wrote :

For now you can work around by using add-credential and manually enter the Azure credential details.

Changed in juju:
milestone: none → 2.7.2
importance: Undecided → High
status: New → Triaged
Revision history for this message
Ian Booth (wallyworld) wrote :

autoload-credentials is a convenience utility that loops across all providers to find any locally stored credentials to import those into juju, allowing to user to avoid manually entering the credential attributes. The fact that it errors when lxd is not installed is a bug for sure.

Changed in juju:
milestone: 2.7.2 → 2.7.3
Changed in juju:
milestone: 2.7.3 → 2.7.4
Changed in juju:
milestone: 2.7.4 → 2.7.5
Changed in juju:
milestone: 2.7.5 → 2.7.6
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.7.6 → 2.8.1
Tim Penhey (thumper)
tags: added: autoload-credentials
Changed in juju:
assignee: nobody → Heather Lanigan (hmlanigan)
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

"ERROR unable to detect local LXC..." is a log message and not returned as an error. Seeing the message here is highly misleading and will be addressed.

For azure, it looks like the credentials were not found. I will looking into why that was.

Revision history for this message
Heather Lanigan (hmlanigan) wrote :

@David, please run 'juju autoload-credentials --debug' after the 'az login'. I wonder if you're hitting this bug: https://bugs.launchpad.net/juju/+bug/1869939 ?

Revision history for this message
Heather Lanigan (hmlanigan) wrote :

Changing the error log message to debug: https://github.com/juju/juju/pull/11766

Revision history for this message
Heather Lanigan (hmlanigan) wrote :

log message pr merged into 2.8

summary: - autoload credentials fails with weird LXD error
+ autoload credentials has misleading error message when lxd not found
Changed in juju:
status: Triaged → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.