[2.5] Event logging breaks when an IP is assigned to multiple interfaces with the same MAC
Bug #1804551 reported by
Mike Pontillo
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:/
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(
This isn't quite correct, but for a non-obvious reason: this query can return the same node more than once.
Related branches
~mpontillo/maas:fix-duplicate-node-event-log--bug-1804551
Merged
into
maas:master
- Andres Rodriguez (community): Approve
-
Diff: 55 lines (+25/-4)2 files modifiedsrc/maasserver/rpc/events.py (+3/-4)
src/maasserver/rpc/tests/test_events.py (+22/-0)
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.