misleading error message "unable to detect LXC credentials" when no credentials are necessary

Bug #1783400 reported by Heather Lanigan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Simon Richardson

Bug Description

bootstrapping localhost with juju edge snap:

$ /snap/bin/juju version
2.5-beta1-bionic-amd64
$ /snap/bin/juju bootstrap localhost tuesday
ERROR unable to detect LXC credentials: open /home/heather/.config/lxc/config.yml: no such file or directory
....
Bootstrap complete, "tuesday" controller now available
Controller machines are in the "controller" model
Initial model "default" added
$

No credentials are necessary to bootstrap localhost on my box. The error message is misleading. Are the credentials needed for lxd cluster bootstrap only AND localhost lxd bootstrap?

Tags: lxd-provider
Changed in juju:
status: New → Triaged
assignee: nobody → Simon Richardson (simonrichardson)
Revision history for this message
John A Meinel (jameinel) wrote :

I think this is a case where if the file exists and we can nicely use saved information, we should. But we shouldn't treat it missing as an error. Especially wrt remote clusters where we may be on Windows and not have any local lxc. (we should still be able to control a remote cluster)

Revision history for this message
Simon Richardson (simonrichardson) wrote :

Sorry, this was looking for the wrong error. I've made a PR for this.

PR: https://github.com/juju/juju/pull/8971

Changed in juju:
status: Triaged → In Progress
Changed in juju:
status: In Progress → Fix Committed
Revision history for this message
Simon Richardson (simonrichardson) wrote :

This has been merged and now in develop/edge snap.

Changed in juju:
milestone: none → 2.5-beta1
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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