Cryptic error message if Juju uses the wrong json file from GCE

Bug #1576301 reported by Jorge Castro on 2016-04-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tim McNamara

Bug Description

    $juju bootstrap jorge google
    ERROR json: cannot unmarshal object into Go value of type string

This is because I used the wrong json file as provided by google. Google gives you many options for how to download "cloud credentials". We don't tell the user exactly what json file we mean, so "select auth-type [jsonfile*, oauth2]:" is too vague.

Juju specifically needs a "Service account client" json file, any other one will result in the error above, so we need to figure out a way to let the user know:

a) Which json file.
b) How to get to the URL in google cloud to get the exact json file, which is harder than you'd think.
c) CLI should inform the user of this file
d) If CLI detects a json type that is not "service_account", error out with an appropriate message.

tags: added: bootstrap juju-release-support usability
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
Changed in juju-core:
milestone: none → 2.0.0
affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Curtis Hovey (sinzui) on 2016-10-06
Changed in juju:
milestone: 2.0.0 → 2.0.1
Curtis Hovey (sinzui) on 2016-11-01
Changed in juju:
milestone: 2.0.1 → none
Tim McNamara (tim-clicks) wrote :

I've recommended a change[0] to our add-credential help documentation that should make it less likely that users will get confused:


Changed in juju:
status: Triaged → In Progress
assignee: nobody → Tim McNamara (tim-clicks)
milestone: none → 2.6.3
tags: added: gce-provider
Ian Booth (wallyworld) on 2019-05-29
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers