one badly formed credential makes bootstrap fail

Bug #1616523 reported by Nate Finch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Harry Pidcock

Bug Description

I have a credentials.yaml file that looks like this:

credentials:
  azure:
    ci-creds:
      auth-type: userpass
      # secrets etc
  google:
    nate:
      auth_type: jsonfile
      file: /home/nate/google.json

Note that google/nate credential has a typo in that auth_type should be auth-type.

This on malformed entry in credentials.yaml causes bootstrap to fail. In fact, even bootstrap --clouds fails:

$ juju bootstrap --clouds
You can bootstrap on these clouds. See ‘--regions <cloud>’ for all regions.
ERROR error loading credential for cloud "aws": credentials.google.nate: missing auth-type

^^ why does the aws cloud care what my google credentials are?

In fact, I can't bootstrap at all:

$ juju bootstrap lxd lxd
ERROR loading credentials: credentials.google.nate: missing auth-type

If I'm bootstrapping lxd, why does juju care if I have a badly formed credential for the cloud named google?

Maybe print a warning, sure... but just failing seems a bit extreme.

Also, there's absolutely no indication of how to fix the problem. As a developer, I luckily realized that I should look at my credentials.yaml file, but a user wouldn't know to do that from that error message.

tags: added: usability
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0-beta17
Changed in juju:
milestone: 2.0-beta17 → 2.0-beta18
Changed in juju:
milestone: 2.0-beta18 → 2.0.1
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.1 → none
Harry Pidcock (hpidcock)
Changed in juju:
assignee: nobody → Harry Pidcock (hpidcock)
Harry Pidcock (hpidcock)
Changed in juju:
milestone: none → 2.6.4
milestone: 2.6.4 → none
Revision history for this message
Harry Pidcock (hpidcock) wrote :
Changed in juju:
milestone: none → 2.7-beta1
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.