Claiming mutliple AUTO IP address on a node causes serialization error

Bug #1494465 reported by Blake Rouse
10
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.objects.allocate_new finds free IP address in a new transaction.

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.

Tags: networking

Related branches

Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.