neutron/neutron/tests/unit/plugins/ml2/drivers
Slawek Kaplonski f9473566d5 Initialize phys bridges before setup_rpc
Neutron-ovs-agent configures physical bridges that they works
in fail_mode=secure. This means that only packets which match some
OpenFlow rule in the bridge can be processed.
This may cause problem on hosts with only one physical NIC
where same bridge is used to provide control plane connectivity
like connection to rabbitmq and data plane connectivity for VM.
After e.g. host reboot bridge will still be in fail_mode=secure
but there will be no any OpenFlow rule on it thus there will be
no communication to rabbitmq.

With current order of actions in __init__ method of OVSNeutronAgent
class it first tries to establish connection to rabbitmq and later
configure physical bridges with some initial OpenFlow rules.
And in case described above it will fail as there is no connectivity
to rabbitmq through physical bridge.

So this patch changes order of actions in __init__ method that it first
setup physical bridges and than configure rpc connection.

Conflicts:
    neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py

Change-Id: I41c02b0164537c5b1c766feab8117cc88487bc77
Closes-Bug: #1840443
(cherry picked from commit d41bd58f31)
(cherry picked from commit 3a2842bdd8)
2019-08-17 09:09:19 +02:00
..
agent Merge "Dont use dict.get() to know certain key is in dict" 2018-07-25 15:28:18 +00:00
l2pop More accurate agent restart state transfer 2019-03-29 22:04:21 +08:00
linuxbridge Update neutron files for new over-indentation hacking rule (E117) 2019-01-30 20:05:18 +03:00
macvtap Update neutron files for new over-indentation hacking rule (E117) 2019-01-30 20:05:18 +03:00
mech_sriov SRIOV agent: wait VFs initialization on embedded switch create 2019-06-10 07:12:47 +00:00
openvswitch Initialize phys bridges before setup_rpc 2019-08-17 09:09:19 +02:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
base_type_tunnel.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
ext_test.py Revert "Revert "objects: get, update and delete converted to Subnet OVO usage"" 2017-12-01 16:45:50 +07:00
mech_fake_agent.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
mech_faulty_agent.py Exit on failure to load mechanism drivers 2017-04-11 09:56:08 -05:00
mechanism_logger.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
mechanism_test.py Fix all pep8 E129 errors 2018-05-03 13:44:04 +09:00
test_helpers.py Spin off context module 2017-03-06 16:25:29 +00:00
test_type_flat.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
test_type_geneve.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
test_type_gre.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
test_type_local.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
test_type_vlan.py use plugin common utils from neutron-lib 2018-04-17 12:06:28 -06:00
test_type_vxlan.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00