[2.5] Event logging breaks when an IP is assigned to multiple interfaces with the same MAC

Bug #1804551 reported by Mike Pontillo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Mike Pontillo

Bug Description

When deploying KVM using the checkbox in the UI, a bridge is automatically created, and every time I deploy I see tracebacks in the log such as the following:

https://paste.ubuntu.com/p/BWZPhBNpb3/

This is happening because the event logging code assumes that only one Node will ever be found from the following query:

        node = Node.objects.get(
            interface__ip_addresses__ip=ip_address)

This isn't quite correct, but for a non-obvious reason: this query can return the same node more than once.

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.