maas aborted transaction trying to update link layer device

Bug #1805966 reported by Christian Muirhead
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Joseph Phillips

Bug Description

In a model we were seeing two link layer devices with the same provider id (the example we were seeing was a nic and a bridge on that nic). In that situation, when we try to call Machine.SetLinkLayerDevices Machine.updateLinkLayerDeviceOps produces a transaction with an assertion that the providerIDs record doesn't exist - this fails because it's already associated with the other device.

Reading SetLinkLayerDevices it's doing some uniqueness checking against the provider ids already in the db, but it doesn't look like it's checking whether the provider IDs on the link layer devices passed in are unique. We need to decide how to handle that case.

This was on MAAS 1.9, not sure whether it's specific to 1.9 or not.

Changed in juju:
assignee: nobody → Joseph Phillips (manadart)
status: New → Triaged
importance: Undecided → Critical
milestone: none → 2.5-rc1
Revision history for this message
Joseph Phillips (manadart) wrote :

Is there any more detail we can get around steps to reproduce?

Series in use, what NICs are on the host?

Changed in juju:
importance: Critical → High
Revision history for this message
Christian Muirhead (2-xtian) wrote :

Sorry, here's some more info from Xav Paice - this is from a client site, so I'll leave it on pastebin.canonical.com rather than copying it in here.

The transaction that was failing:
https://pastebin.canonical.com/p/R4srS6WrRJ/

Network info for the machine:
https://pastebin.canonical.com/p/Vd5hSyDN2H/

MAAS info:
https://pastebin.canonical.com/p/Ys3hdX8VzP/

Changed in juju:
milestone: 2.5-rc1 → 2.5.1
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.5.1 → 2.5.2
Changed in juju:
assignee: Joseph Phillips (manadart) → nobody
Changed in juju:
milestone: 2.5.2 → 2.5.3
Changed in juju:
milestone: 2.5.3 → 2.5.4
Changed in juju:
milestone: 2.5.4 → 2.5.5
Changed in juju:
milestone: 2.5.6 → 2.5.8
Changed in juju:
milestone: 2.5.8 → 2.5.9
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Removing from a milestone as this work will not be done in 2.5 series.

Changed in juju:
milestone: 2.5.9 → none
Revision history for this message
Joseph Phillips (manadart) wrote :
Changed in juju:
status: Triaged → In Progress
milestone: none → 2.7.1
assignee: nobody → Joseph Phillips (manadart)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
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.