Authentication issues should bubble up to the user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-ubuntu-advantage |
Triaged
|
Low
|
Unassigned |
Bug Description
I have recently tried deploying the ubuntu-advantage charm in an environment that did not have network access to the auth server. The charm went in an error state and carried a very generic error message:
ubuntu-
The charm debug logs were more helpful, showing that
subprocess.
When trying the command manually on the unit, the client finally pointed me in the right direction
root@juju-
Failed to connect to authentication server
Check your Internet connection and try again.
(although I needed strace to see which IP it was trying to reach)
I think it would be nice if the charm could display the actual CLI error in the juju status output.
Related branches
- Grant Orndorff: Approve
- Andrei Polukhin: Approve
- Allan Vidal: Approve
-
Diff: 712 lines (+306/-86)6 files modifiedsrc/charm.py (+27/-8)
src/exceptions.py (+24/-0)
src/utils/retry.py (+33/-0)
tests/integration/test_charm.py (+13/-1)
tests/unit/test_charm.py (+159/-77)
tests/unit/test_retry.py (+50/-0)
Changed in charm-ubuntu-advantage: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in charm-ubuntu-advantage: | |
status: | Triaged → Fix Committed |
status: | Fix Committed → Triaged |