Improve error message for "juju register"

Bug #2060265 reported by Leon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Alastair Flynn

Bug Description

I did "juju add-user" on one controller and "juju register" elsewhere, per doc:

https://juju.is/docs/juju/manage-controllers#heading--register-a-controller

The register command fails with this error:

ERROR Provided registration token may have been expired.
A controller administrator must reset your user to issue a new token.
See "juju help change-user-password" for more information.

But it's unclear what exactly failed. The hint seems irrelevant to my situation.

---

I have a multipass VM with juju (outer VM), and inside it another multipass VM with juju and microk8s and prometheus (inner VM).

After "ip route add" in the outer VM, I am able to curl the api-endpoint of the inner vm controller, but "juju register" fails with the error above. It would be great if the error message could be slightly more tailored to the situation. For example:

ERROR Unable to reach controller endpoint at 10.152.183.146:17070.

Revision history for this message
Leon (sed-i) wrote :
Revision history for this message
Joseph Phillips (manadart) wrote :

Yes. This prose is generated without interrogating the actual error originating deeper in the call stack.

It would be simple enough to make it conditional.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Alastair Flynn (aflynn50)
milestone: none → 3.4.3
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.