500 error when trying to acquire a commissioned node (AddrFormatError: failed to detect a valid IP address from None)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Raphaël Badin |
Bug Description
When trying to acquire a commissioned node, an http 500 error is displayed and this is the resulting stacktrace:
==> /var/log/
ERROR 2014-09-03 07:23:54,435 django.request Internal Server Error: /MAAS/nodes/
Traceback (most recent call last):
File "/usr/lib/
response = wrapped_
File "/usr/lib/
return self.dispatch(
File "/usr/lib/
return super(NodeView, self).dispatch(
File "/usr/lib/
return handler(request, *args, **kwargs)
File "/usr/lib/
return super(BaseUpdat
File "/usr/lib/
return self.form_
File "/usr/lib/
self.object = form.save()
File "/usr/lib/
message = action.
File "/usr/lib/
Node.
File "/usr/lib/
update_
File "/usr/lib/
for response in async.gather(
File "/usr/lib/
for nodegroup, ip_address in ip_addresses_
File "/usr/lib/
for ngi in nodegroup.
File "/usr/lib/
for ngi in nodegroup.
File "/usr/lib/
self._start = IPAddress(start, flags=flags)
File "/usr/lib/
'address from %r' % addr)
AddrFormatError: failed to detect a valid IP address from None
Looks like gen_dynamic_
Related branches
- Julian Edwards (community): Approve
- Newell Jensen (community): Approve
-
Diff: 26 lines (+4/-1)2 files modifiedsrc/maasserver/clusterrpc/dhcp.py (+3/-1)
src/maasserver/clusterrpc/tests/test_dhcp.py (+1/-0)
summary: |
- Exception raised while acquiring a node: AddrFormatError: failed to - detect a valid IP address from None + 500 error when trying to acquire a commissioned node |
description: | updated |
summary: |
- 500 error when trying to acquire a commissioned node + 500 error when trying to acquire a commissioned node (AddrFormatError: + failed to detect a valid IP address from None) |
Changed in maas: | |
milestone: | none → 1.7.0 |
assignee: | nobody → Raphaël Badin (rvb) |
status: | New → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
I think gen_dynamic_ ip_addresses_ with_host_ maps has bug: it should skip the node group interfaces with no static_ ip_range_ low/high