Comment 3 for bug 1268955

Revision history for this message
Simon Pasquier (simon-pasquier) wrote : Re: OVS agent updates the wrong port when using Xen + Neutron with HVM

The issue might happen every time the instance starts.

AFAIU, there is no problem with the neutron OVS agent code. The issue is that the command executed by OVSBridge.get_vif_port_by_id() method [1] returns 2 rows. In all other cases (KVM, Xen PV, ...), this command returns only one row because there is only one port matching a given "external_ids:iface-id". The get_vif_port_by_id() method is called by the OVS agent on every added or updated port [2].

[1] https://github.com/openstack/neutron/blob/aa85a97ca2dcb06996ed133d864705f1dca722b1/neutron/agent/linux/ovs_lib.py#L379
[2] https://github.com/openstack/neutron/blob/aa85a97ca2dcb06996ed133d864705f1dca722b1/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py#L934