Authentication issues should bubble up to the user

Bug #2041479 reported by Andrea Ieri
6
This bug affects 1 person
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-advantage/0* error idle 10.18.2.112 hook failed: "config-changed"

The charm debug logs were more helpful, showing that

subprocess.CalledProcessError: Command '['ubuntu-advantage', 'status', '--all', '--format', 'json']' returned non-zero exit status 1.

When trying the command manually on the unit, the client finally pointed me in the right direction

root@juju-f293f7-4-lxd-1:~# ubuntu-advantage status
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

Changed in charm-ubuntu-advantage:
status: New → Triaged
importance: Undecided → Low
Dheyay Desai (dheyayd)
Changed in charm-ubuntu-advantage:
status: Triaged → Fix Committed
status: Fix Committed → Triaged
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.