yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #10970
[Bug 1268762] Re: Remove and recreate interfacein ovs if already exists
** Changed in: neutron
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1268762
Title:
Remove and recreate interfacein ovs if already exists
Status in OpenStack Neutron (virtual network service):
Fix Released
Status in neutron havana series:
Fix Released
Bug description:
If the dhcp-agent machine restarts and openvswitch logs the following
warning message for all tap interfaces that have not been recreated yet:
bridge|WARN|could not open network device tap2cf7dbad-9d (No such
device)
Once the dhcp-agent starts he recreates the interfaces and readds them to the
ovs-bridge. Unfortinately, ovs does not reinitalize the interface as its
already in ovsdb and does not assign it an ofport number.
In order to correct this we should first remove interfaces that exist and
then readd them.
root@arosen-desktop:~# ovs-vsctl -- --may-exist add-port br-int fake1
# ofport still -1
root@arosen-desktop:~# ovs-vsctl list inter | grep -A 2 fake1
name : "fake1"
ofport : -1
ofport_request : []
root@arosen-desktop:~# ip link add fake1 type veth peer name fake11
root@arosen-desktop:~# ifconfig fake1
fake1 Link encap:Ethernet HWaddr 56:c3:a1:2b:1f:f4
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@arosen-desktop:~# ovs-vsctl list inter | grep -A 2 fake1
name : "fake1"
ofport : -1
ofport_request : []
root@arosen-desktop:~# ovs-vsctl -- --may-exist add-port br-int fake1
root@arosen-desktop:~# ovs-vsctl list inter | grep -A 2 fake1
name : "fake1"
ofport : -1
ofport_request : []
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1268762/+subscriptions
References