[ovs-discuss] add-port return successfully but ofport is not available in 2 secs

Joni Lee webcokies at yahoo.com
Tue Jul 1 12:14:16 UTC 2014


Hi,

We seem to face a concurrent issue between 2 processes: "add-br" and "find Interface" as follows

1. A "l3 agent" process added a port q-router to a bridge (br-int) by calling "ovs-vsctl add-port" and the command returned successfully:

Jun 30 07:30:13 neutron1 ovs-vsctl: 00001|vsctl|INFO|Called as /usr/bin/ovs-vsctl -- --may-exist add-port br-int qr-3cc2ad9c-a3 -- set Interface qr-3cc2ad9c-a3 type=internal -- set Interface qr-3cc2ad9c-a3 external-ids:iface-id=3cc2ad9c-a3a5-4bd0-b5d9-bbb12ea8a4b0 -- set Interface qr-3cc2ad9c-a3 external-ids:iface-status=active -- set Interface qr-3cc2ad9c-a3 external-ids:attached-mac=fa:16:3e:47:24:0c

2. On the other hand, after 2 secs, another "ovs agent" process finds the interface, but ofport is empty:

$ ovs-vsctl -- --columns=external_ids,name,ofport find Interface external_ids:iface-id=3cc2ad9c-a3a5-4bd0-b5d9-bbb12ea8a4b0
external_ids        : {attached-mac="fa:16:3e:47:24:0c", iface-id="3cc2ad9c-a3a5-4bd0-b5d9-bbb12ea8a4b0", iface-status=active}
name                  : "qr-3cc2ad9c-a3"
ofport                 : []    <<<<<< empty set

ofport the empty set means that the interface hasn't been created yet, even the command "add-br" returned successfully???

3. After some more seconds, We checked and see that "ofport" is available.

Any ideas which causes the latency of "add-br" and how to improve it?

# ENVIRONMENT
Linux kernel: 3.2.0-51-generic
openvswitch: 1.4.6-0ubuntu1.12.04.2~lp1259285

$ modinfo openvswitch
filename:       /lib/modules/3.2.0-51-generic/updates/dkms/openvswitch.ko
license:        GPL
description:    Open vSwitch switching datapath
srcversion:     FA8A202C2BF3BE368305DCD
depends:        
vermagic:       3.2.0-51-generic SMP mod_unload modversions

Many thanks,
Tri 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20140701/17573589/attachment-0002.html>


More information about the discuss mailing list