[2.5] Attempting to register a rack without secret (and likely with incorrect secret) causes unhandled error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Mike Pontillo |
Bug Description
I attempted to register a rack controller to a region cluster but I forgot to create the secret file. The region logs started showing unhandled errors.
2018-09-11 20:52:53 RegionServer,
2018-09-11 20:52:53 maasserver.
Traceback (most recent call last):
Failure: twisted.
2018-09-11 20:52:53 maasserver.
2018-09-11 20:52:53 RegionServer,
2018-09-11 20:52:53 maasserver.
Traceback (most recent call last):
Failure: twisted.
To reproduce
------------
1. installed maas-rack-
2. configured /etc/maas/
3. sudo service maas-rackd restart
Expected behavior
-----------------
I would have expected that the regiond would not spit unhandled errors, rather, say that the rack controller failed to authenticate due to a missing secret (or incorrect secret).
Related branches
- Newell Jensen (community): Approve
- MAAS Lander: Needs Fixing
-
Diff: 38 lines (+9/-7)2 files modifiedsrc/maasserver/rpc/regionservice.py (+8/-4)
src/maasserver/rpc/tests/test_regionservice.py (+1/-3)
Changed in maas: | |
assignee: | nobody → Mike Pontillo (mpontillo) |
importance: | Undecided → High |
status: | New → Triaged |
milestone: | none → 2.5.0beta1 |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |