[2.0 RC2] Static IP address are allowed to be created in a dynamic range
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Mike Pontillo | ||
2.0 |
Fix Released
|
Critical
|
Mike Pontillo |
Bug Description
The regiond logs full of these exception below. It's not clear as to how we got to this point, but the IP address in question is from the dynamic range.
i/2.0/users/
2016-07-17 08:15:47 [-] Unhandled failure in updating lease.
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
return target()
File "/usr/lib/
task()
File "/usr/lib/
task()
--- <exception caught here> ---
File "/usr/lib/
result = inContext.theWork()
File "/usr/lib/
inContext.
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func_outside_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/usr/lib/
lease_
File "/usr/lib/
return getattr(
File "/usr/lib/
obj.
File "/usr/lib/
return super(CleanSave, self).save(*args, **kwargs)
File "/usr/lib/
return super(Timestamp
File "/usr/lib/
force_
File "/usr/lib/
updated = self._save_
File "/usr/lib/
result = self._do_
File "/usr/lib/
using=using, raw=raw)
File "/usr/lib/
return getattr(
File "/usr/lib/
return query.get_
File "/usr/lib/
cursor.
File "/usr/lib/
return self.cursor.
File "/usr/lib/
six.
File "/usr/lib/
raise value.with_
File "/usr/lib/
return self.cursor.
django.
DETAIL: Key (ip)=(**.***.**.**) already exists.
2016-07-17 08:15:50 [-] 127.0.0.1 - - [17/Jul/
ubuntu@
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii maas 2.0.0~rc2+
ii maas-cli 2.0.0~rc2+
un maas-cluster-
ii maas-common 2.0.0~rc2+
ii maas-dhcp 2.0.0~rc2+
ii maas-dns 2.0.0~rc2+
ii maas-proxy 2.0.0~rc2+
ii maas-rack-
ii maas-region-api 2.0.0~rc2+
ii maas-region-
un maas-region-
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-
ii python3-django-maas 2.0.0~rc2+
ii python3-maas-client 2.0.0~rc2+
ii python3-
I am attaching the logs and dhcp lease files.
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 61 lines (+11/-8)2 files modifiedsrc/maasserver/api/ip_addresses.py (+7/-0)
src/maasserver/api/tests/test_ipaddresses.py (+4/-8)
- Mike Pontillo (community): Approve
-
Diff: 74 lines (+13/-8)3 files modifieddocs/changelog.rst (+2/-0)
src/maasserver/api/ip_addresses.py (+7/-0)
src/maasserver/api/tests/test_ipaddresses.py (+4/-8)
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Seeing more duplicate and they all seem to be in the dynamic range.