yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #27755
[Bug 1341020] Re: after add_port, get_port_ofport may be called before vswitchd has assigned the ofport
** Changed in: neutron
Status: Fix Committed => Fix Released
** Changed in: neutron
Milestone: None => kilo-2
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1341020
Title:
after add_port, get_port_ofport may be called before vswitchd has
assigned the ofport
Status in OpenStack Neutron (virtual network service):
Fix Released
Bug description:
OVSBridge.add_port() runs ovs-vsctl to add the port, then runs ovs-
vsctl again to query the ofport of the newly created port. The ofport
gets assigned outside of any kind of transaction, and the OVS api
defines an empty set response([]) to mean that the ofport assignment
is still pending and a response of '-1' to mean that there is a
failure.
The current get_port_ofport code treats these responses both as
failures even though '[]' will most likely later succeed. We need to
implement a retry mechanism to ensure that we don't incorrectly fail
port creation. Raising an exception on retry expiration also seems
like a good idea.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1341020/+subscriptions
References