neutron/neutron/tests/common
Ihar Hrachyshka f860bdd4b4 Add the rebinding chance in _bind_port_if_needed
Make function _bind_port_if_needed to bind at least one time when the port's
binding status passed in is already in binding_failed.

This is the second attempt to introduce the patch (the first one was
reverted due to regression that broke Ironic), now with proper
notification sent even when binding attempt failed.

The patch also fixes several cases when we attempted to notify with a
binding context that was not committed into database.

The patch changes _attempt_binding to call _commit_port_binding only
with the binding final state:
1. Successful binding: will just call _commit_port_binding.
2. Unsuccessful binding: will call _commit_port_binding at the final
attempt to bind the port.
This is in order to refrain from reverts, with will really complicate
things even  more.

Co-Authored-By: Yalei Wang <yalei.wang@intel.com>
Co-Authored-By: Nir Magnezi <nmagnezi@redhat.com>
Co-Authored-By: John Schwarz <jschwarz@redhat.com>
Change-Id: I437290affd8eb87177d0626bf7935a165859cbdd
Closes-Bug: #1399249
(cherry picked from commit 63fe3a418c)
2016-02-17 15:52:48 +00:00
..
agents Fix the low level OVS driver to really do egress 2015-08-12 09:37:45 +00:00
__init__.py Test HA router failover 2014-11-24 12:05:09 +02:00
base.py Override opportunistic database tests to PyMySQL 2015-06-23 21:04:06 +02:00
conn_testers.py Fix typos in neutron code 2015-08-04 09:28:02 -07:00
helpers.py Add the rebinding chance in _bind_port_if_needed 2016-02-17 15:52:48 +00:00
l3_test_common.py L3 agent changes and reference implementation for IPv6 PD 2015-08-25 08:44:13 +01:00
machine_fixtures.py Make fullstack test_connectivity tests more forgiving 2015-11-27 13:31:26 +00:00
net_helpers.py Cleanup veth-pairs in default netns for functional tests 2016-01-21 08:44:31 +02:00