MAASAPINotFound: Unknown metadata attribute: public-keys during commissioning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Jeroen T. Vermeulen |
Bug Description
During enlistment of nodes the MAAS server logs this error:
ERROR 2012-09-28 15:55:54,991 maas.maasserver #######
ERROR 2012-09-28 15:55:54,992 maas.maasserver Traceback (most recent call last):
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
response = func(*args, **kwargs)
File "/usr/lib/
result = self.error_
File "/usr/lib/
result = meth(request, *args, **kwargs)
File "/usr/lib/
raise MAASAPINotFound
MAASAPINotFound: Unknown metadata attribute: public-keys
Even though the admin user has a ssh-key added to account and the enlistment process continues fine.
Related branches
- John A Meinel (community): Approve
-
Diff: 59 lines (+21/-3)2 files modifiedsrc/metadataserver/api.py (+8/-1)
src/metadataserver/tests/test_api.py (+13/-2)
- Raphaël Badin (community): Approve
-
Diff: 95 lines (+18/-20)2 files modifiedsrc/metadataserver/api.py (+10/-13)
src/metadataserver/tests/test_api.py (+8/-7)
Changed in maas: | |
assignee: | nobody → Jeroen T. Vermeulen (jtv) |
status: | New → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
The fix done has completely broken commissioning, the metadata server does this:
ERROR 2012-10-04 16:37:59,374 maas.maasserver ####### ####### ####### ####### #### Exception: No registered public keys ####### ####### ####### ####### #### ERROR 2012-10-04 16:37:59,411 maas.maasserver Traceback (most recent call last): File "/usr/lib/ python2. 7/dist- packages/ django/ core/handlers/ base.py" , line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/ python2. 7/dist- packages/ django/ views/decorator s/vary. py", line 19, in inner_func response = func(*args, **kwargs) File "/usr/lib/ python2. 7/dist- packages/ piston/ resource. py", line 167, in __call__ result = self.error_ handler( e, request, meth, em_format) File "/usr/lib/ python2. 7/dist- packages/ piston/ resource. py", line 165, in __call__ result = meth(request, *args, **kwargs) File "/usr/lib/ python2. 7/dist- packages/ maasserver/ api.py" , line 287, in dispatch return function(self, request, *args, **kwargs) File "/usr/lib/ python2. 7/dist- packages/ metadataserver/ api.py" , line 328, in read return producer(node, version, item) File "/usr/lib/ python2. 7/dist- packages/ metadataserver/ api.py" , line 342, in public_keys raise MAASAPINotFound("No registered public keys") MAASAPINotFound: No registered public keys
which makes cloud-init stall.