Improve error message for "juju register"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Alastair Flynn |
Bug Description
I did "juju add-user" on one controller and "juju register" elsewhere, per doc:
https:/
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-
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.
Changed in juju: | |
milestone: | 3.4.3 → 3.4.4 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
BTW, I do not see "while validating secret key" in syslog/journalctl.
https:/ /github. com/juju/ juju/blob/ e86a0e81b5b2a4b a554380373acb06 6f333b72f2/ cmd/juju/ controller/ register. go#L381