Error printed when adding a model with a faulty credential can be improved
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I attempted to add a model with an invalid credential:
$ juju add-model --credential mithrandir rivendell
Output:
Uploading credential 'google/
ERROR failed to create environ: Get https:/
(2 vs {class:0 tag:16 length:13 isCompound:true}) {optional:false explicit:false application:false private:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} @5
===
This error should be caught and the user presented with something more meaningful and tender.
Suggestion:
The model could not be created as credential 'mithrandir' is invalid.
===
Note that if the "Uploading credential..." part gets printed we may want to assure the user that a bad credential has not ended up on the controller. I suggest suppressing that message until the credential has been successfully validated.
Changed in juju: | |
status: | Fix Committed → Fix Released |
Great idea! Thank you for suggestion, Peter!