KeyError: 'port_id' exception in .trunk.drivers.linuxbridge.agent.driver.LinuxBridgeTrunkDriver.agent_port_change
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BaGPipe |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I see the following traceback in some neutron linuxbridge agent logs:
neutron_
Traceback (most recent call last):
File "/opt/stack/
callback(
File "/opt/stack/
trunk = self._tapi.
KeyError: 'port_id'
Ok, the notification is like this:
[...]
self. _update_ network_ ports(device_ details[ 'network_ id'],
device_ details[ 'port_id' ],
device_ details[ 'device' ])
self. ext_manager. handle_ port(self. context, device_details)
registry. notify( local_resources .PORT_DEVICE,
events. AFTER_UPDATE, self,
context= self.context,
device_ details= device_ details)
In fact, in the environment this appears, there is an agent extension that modifies [1] device_details. Ouch.
Updating affected project accordingly...