getRandomNetwork() setting upper bound IP lower than lower bound
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Graham Binns |
Bug Description
ERROR: maasserver.
-------
_StringException: Traceback (most recent call last):
File "/tmp/tarmac/
ValidationE
File "/home/
self.
File "/home/
mismatch = matcher.
File "/home/
mismatch = self.exception_
File "/home/
mismatch = matcher.
File "/home/
reraise(
File "/home/
result = matchee()
File "/home/
return self._callable_
File "/usr/lib/
self.
File "/tmp/tarmac/
self.
File "/tmp/tarmac/
static_
File "/usr/lib/
raise AddrFormatError
AddrFormatError: lower bound IP greater than upper bound!
Related branches
- Gavin Panella (community): Approve
-
Diff: 127 lines (+69/-6)2 files modifiedsrc/maasserver/models/nodegroupinterface.py (+43/-6)
src/maasserver/models/tests/test_nodegroupinterface.py (+26/-0)
- Jeroen T. Vermeulen (community): Approve
-
Diff: 175 lines (+77/-65)2 files modifiedsrc/maasserver/models/nodegroupinterface.py (+65/-59)
src/maasserver/models/tests/test_nodegroupinterface.py (+12/-6)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Critical |
tags: | added: tech-debt |
summary: |
- getRandomNetwork() setting upper bound IP lower than lowqer bound + getRandomNetwork() setting upper bound IP lower than lower bound |
Changed in maas: | |
status: | In Progress → Fix Released |
This is because it uses randomly-generated octets rather than an IPNetwork (which is what the v6 version uses).