netaddr.core.AddrFormatError: failed to detect a valid IP address from None
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Won't Fix
|
Critical
|
Mike Pontillo |
Bug Description
When debugging the CI, I came accross the following issue.
The way i reproduced is because I noticed that dhcpd complained about not being able to write a new leases file. What I did was to remove the old leases file (rm -rf /var/lib/
This seems to be pretty critical because it seems that if there are no leases for a specific MAC/Interface, MAAS can't allocate an IP to an interface.
==> /var/log/
2015-08-19 02:00:51 [-] Error on request (29) node.action: failed to detect a valid IP address from None
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
--- <exception caught here> ---
File "/usr/lib/
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func_outside_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func_within_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return m(params)
File "/usr/lib/
return action.
File "/usr/lib/
File "/usr/lib/
return func_within_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
Changed in maas: | |
assignee: | nobody → Mike Pontillo (mpontillo) |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in maas: | |
importance: | Critical → High |
Changed in maas: | |
importance: | High → Critical |
I got the "failed to detect a valid IP address from None" error when trying to juju bootstrap to a newly created vMAAS:
2015-11-19 03:16:56 ERROR cmd supercommand.go:448 failed to bootstrap environment: cannot start bootstrap instance: gomaasapi: got error back from server: 500 INTERNAL SERVER ERROR (failed to detect a valid IP address from None)
Full bootstrap with --debug: http:// paste.ubuntu. com/13339974/ paste.ubuntu. com/13339997/ paste.ubuntu. com/13340084/
MAAS levels: http://
dhcp.leases: http://
I also get this error if I try to deploy a node from the GUI.
Is there any workaround?