KeyError: u'power_type' when registering a node using the API/CLI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Critical
|
Unassigned |
Bug Description
Here is an error seen in the log when registering a node using the CLI:
ERROR 2014-05-07 19:25:49,521 maasserver Traceback (most recent call last):
File "/usr/lib/
response = wrapped_
File "/usr/lib/
response = func(*args, **kwargs)
File "/usr/lib/
result = self.error_
File "/usr/lib/
result = meth(request, *args, **kwargs)
File "/usr/lib/
return function(self, request, *args, **kwargs)
File "/usr/lib/
node = create_
File "/usr/lib/
if form.is_valid():
File "/usr/lib/
valid = super(WithMACAd
File "/usr/lib/
is_valid = super(NodeForm, self).is_valid()
File "/usr/lib/
return self.is_bound and not bool(self.errors)
File "/usr/lib/
self.
File "/usr/lib/
super(
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
no_power_type = cleaned_
KeyError: u'power_type'
Looks like the cluster wasn't yet connected to the region. In any case, this is a crash so marking this bug Critical.