Claiming mutliple AUTO IP address on a node causes serialization error
Bug #1494465 reported by
Blake Rouse
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Blake Rouse |
Bug Description
With the new networking model it is possible to have more than one AUTO link to a subnet and more than one interface with so many links.
When Node.claim_auto_ips is called, if multiple exists a serialization error will occur. This happens because of the way StaticIPAddress
The allocation of each AUTO IP should happen in its own transaction that way only free IP addresses are allocated and no IP address collisions occur.
Related branches
lp:~blake-rouse/maas/fix-claiming-multiple-auto-ips
- Andres Rodriguez (community): Approve
-
Diff: 194 lines (+83/-10)5 files modifiedsrc/maasserver/models/interface.py (+14/-5)
src/maasserver/models/node.py (+5/-1)
src/maasserver/models/staticipaddress.py (+11/-4)
src/maasserver/models/tests/test_interface.py (+28/-0)
src/maasserver/models/tests/test_node.py (+25/-0)
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.