neutron/devstack
Lucas Alvares Gomes e7df43395c [OVN] DevStack: Make the transition of DevStack module easier
This patch intends to make the transition of the OVN DevStack module
easier by allowing both copies of it to exist at the same time, the one
in Neutron repository and the one in the DevStack repository [0].

1) Make create_public_bridge idempotent

If we call this function more than once the second call and on will fail
with the following error:

2020-07-13 09:12:53.885633 | controller | ++
/opt/stack/neutron/devstack/lib/ovn_agent:create_public_bridge:263 :
sudo ip addr add 172.24.5.1/24 dev br-ex
2020-07-13 09:12:53.894247 | controller | RTNETLINK answers: File exists

During the transiton of moving the OVN DevStack from the Neutron
repository to the DevStack repository [0] this method is being invoked
twice in the ovn job in the DevStack gate because it will be cause as
part of the plugin being enabled and the normal code execution.

This patch makes the method idempotent by calling "addr replace" instead
of "addr add" to avoid the "RTNETLINK answers: File exists" error.

2) Move the setup of the tcpdump on br-ex to "extra" to it can start
after the create_public_bridge is called.

[0] https://review.opendev.org/#/c/734621/

Change-Id: I74b05ef245a343c7531fa45aeadb90060b2fd22e
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
2020-07-16 09:45:36 +01:00
..
lib [OVN] DevStack: Make the transition of DevStack module easier 2020-07-16 09:45:36 +01:00
ovn-compute-local.conf.sample [OVN] Update sample local.conf to support QoS for OVN 2020-04-23 12:18:40 +00:00
ovn-db-local.conf.sample Additions to ovn-db-local.conf.sample 2020-04-17 07:27:37 +00:00
ovn-local.conf.sample Update cirros image to cirros-0.5.1-x86_64 globally 2020-07-07 22:06:39 +00:00
ovn-vtep-local.conf.sample [OVN] Update sample local.conf to support QoS for OVN 2020-04-23 12:18:40 +00:00
plugin.sh [OVN] DevStack: Make the transition of DevStack module easier 2020-07-16 09:45:36 +01:00
settings Add devstack plugin for placement service plugin 2019-05-24 11:34:49 +02:00