[2.5] get_source_address() raises StopIteration if a /128 IPv6 network is passed in
Bug #1789721 reported by
Mike Pontillo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Mike Pontillo | ||
2.3 |
Fix Committed
|
High
|
Mike Pontillo | ||
2.4 |
Fix Committed
|
Critical
|
Mike Pontillo |
Bug Description
This Python console session shows the issue:
>>> from netaddr import IPNetwork
>>> def f(ipn):
... return next(ipn.
...
>>> f(IPNetwork(
IPAddress(
>>> f(IPNetwork(
IPAddress(
>>> f(IPNetwork(
IPAddress(
>>> f(IPNetwork(
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in f
StopIteration
This leads to errors in MAAS such as the following:
Related branches
~mpontillo/maas:workaround-netaddr-slash128-bug--2.3
- Mike Pontillo (community): Approve
-
Diff: 92 lines (+56/-8)2 files modifiedsrc/provisioningserver/utils/network.py (+29/-8)
src/provisioningserver/utils/tests/test_network.py (+27/-0)
~mpontillo/maas:workaround-netaddr-slash128-bug--2.4
- Mike Pontillo (community): Approve
-
Diff: 92 lines (+56/-8)2 files modifiedsrc/provisioningserver/utils/network.py (+29/-8)
src/provisioningserver/utils/tests/test_network.py (+27/-0)
~mpontillo/maas:workaround-netaddr-slash128-bug
- Blake Rouse (community): Approve
- MAAS Lander: Pending (unittests) requested
-
Diff: 92 lines (+56/-8)2 files modifiedsrc/provisioningserver/utils/network.py (+29/-8)
src/provisioningserver/utils/tests/test_network.py (+27/-0)
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.