[2.0a4] duplicate ipranges cuase dhcpd Configuration file errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Jeffrey C Jones |
Bug Description
Duplicate iprange entries were added with:
'maas _maas ipranges create type=dynamic start_ip=
[
{
"comment": "",
"end_ip": "10.245.208.250",
"start_ip": "10.245.208.150",
"id": 1,
"subnet": {
"name": "10.245.208.0/20",
"cidr": "10.245.208.0/20",
"vlan": {
},
"id": 1
},
"type": "dynamic",
"user": {
}
},
{
"comment": "",
"end_ip": "10.245.208.250",
"start_ip": "10.245.208.150",
"id": 2,
"subnet": {
"name": "10.245.208.0/20",
"cidr": "10.245.208.0/20",
"vlan": {
},
"id": 1
},
"type": "dynamic",
"user": {
}
},
]
Subsequently MAAS added duplicate entries to /var/lib/
Related branches
- Mike Pontillo (community): Approve
-
Diff: 895 lines (+545/-67)8 files modifiedsrc/maasserver/api/tests/test_ipranges.py (+5/-5)
src/maasserver/api/tests/test_subnets.py (+32/-8)
src/maasserver/models/iprange.py (+71/-2)
src/maasserver/models/subnet.py (+32/-24)
src/maasserver/models/tests/test_iprange.py (+389/-17)
src/maasserver/models/tests/test_staticipaddress.py (+1/-1)
src/maasserver/testing/factory.py (+4/-1)
src/maasserver/tests/test_dhcp.py (+11/-9)
Changed in maas: | |
milestone: | none → 2.0.0 |
importance: | Undecided → Critical |
summary: |
- duplicate ipranges cuase dhcpd Configuration file errors + [2.0a4] duplicate ipranges cuase dhcpd Configuration file errors |
Changed in maas: | |
status: | New → Triaged |
Changed in maas: | |
assignee: | nobody → Jeffrey C Jones (trapnine) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |