Claiming mutliple AUTO IP address on a node causes serialization error

Bug #1494465 reported by Blake Rouse on 2015-09-10
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
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.

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  Edit
Everyone can see this information.

Other bug subscribers