Credential names with spaces are invalid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Anastasia | ||
2.0 |
Won't Fix
|
Undecided
|
Unassigned | ||
2.6 |
Fix Released
|
Medium
|
Anastasia |
Bug Description
I just tried to spin up Juju 2.0 on Google Compute Engine and bootstrapping it failed miserably like so, and I assume it was due to the bad credential ID name with a blank space in it. I tested it using the actual project ID string from GCE and it worked alright so I would expect Juju's code to actually test the ID is a valid one before bootstrapping it, maybe by matching what's inside the credentials YAML file and the ID inside my downloaded credentials JSON... either that or updating the docs to make all that clearer, since it requires user input to specify the ID when running juju add-credential.
You can see the version of Juju I am running on Xenial in the output below by the way:
2016-11-16 11:12:08 CRITICAL juju.cmd.jujud main.go:180 Unhandled panic:
"google/admin/Juju GCE" is not a valid cloud credential ID
goroutine 1 [running]:
main.Main.func1()
/build/
panic(0x2184140, 0xc8200d9ff0)
/usr/lib/
gopkg.in/
/build/
github.
/build/
main.(*
/build/
github.
/build/
main.(*
/build/
github.
/build/
github.
/build/
main.jujuDMain(
/build/
main.Main(
/build/
main.MainWrappe
/build/
main.main()
/build/
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 2.1.0 |
Changed in juju: | |
assignee: | nobody → Richard Harding (rharding) |
importance: | Critical → High |
Changed in juju: | |
assignee: | Richard Harding (rharding) → nobody |
Changed in juju: | |
status: | In Progress → Fix Committed |
milestone: | none → 2.7-beta1 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
We should not panic but error out gracefully. Lowering priority as it is being tackled right now as part of related work for this milestone.