In create_interface method we trimm interface name up to 16 symbols,
however in all following methods we do not care about same trimm, which
causes calls to such interfaces fail with NetworkInterfaceNotFound
Closes-Bug: #2054599
Change-Id: I15f773afa64079eec6534c53eab0e9b7dd796d5f
tox now always recreates an env although the env is shared using envdir
options.
~~~
$ tox -e genpolicy
genpolicy: recreate env because env type changed from
{'name': 'genconfig', 'type': 'VirtualEnvRunner'} to
{'name': 'genpolicy', 'type': 'VirtualEnvRunner'}
~~~
According to the maintainer of tox, this functionality is not intended
to be supported.
https://github.com/tox-dev/tox/issues/425#issuecomment-1011944293
Change-Id: I18ad8e5de031bc6be1b8e01860585ffae5ec0aa5
OVN deprecated the datapath_group column from Load_Balancer table. Now
this column was split in two: ls_datapath_group and lr_datapath_group.
This patch changes the code to also look for the datapath group in these
new columns.
This change is backward compatible and will work with a newer or older
version of OVN.
Change-Id: Ia3a95b77fccaa056aa9169114d102258f015002f
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
This includes the option to use the OVN-Cluster for routing
instead of the kernel.
It also updates the supportability matrix to better reflect the
current status, and makes a little reorg on the organization
structure
Change-Id: If8fb9a42f74511e9f70a25d7c08dce99c20c3f10
Ideally the _run method should not do a check to see if row is valid.
Also, add the _get_ips_info method in base to get in line with LSP events
Change-Id: I7320ba37d622cd6b7de55e994caf657fb8b70b8d
This patch adds support to the OVN LBs created when a port forwarding
(PF) is configured over a FIP for the NB driver.
Closes-Bug: #2049415
Change-Id: I95d132172d54329306f41fee2cc631e27ccfd8c4
We can use the omit option instead of adding --omit argument, so that
we can run coverage commands outside of tox easily. Also this fixes
the inconsistent omit used in some coverage commands in tox.
Change-Id: I1efa406401c2e8a6b705daef4921b2dec7d55f2e
The vrysh command also allows reading from file and when using
this option, it works perfectly.
Closes-Bug: #2049736
Change-Id: I6cbee6739d8dddb43118585d1c03ad3eda8e4cbf
The patch simplifies the function searching for used routing table or
generating a new one. Since the method is no longer massive and complex
the unittests were added.
Change-Id: I75d8c4fdaed38a99b721b9077088952aaeb1b9a6
Signed-off-by: Jakub Libosvar <libosvar@redhat.com>
The constant mapping has been defined in several places. This patch
creates a new module utils.common that defines the mapping and uses it
everywhere. It also encapsulates socket family constants in the
constants module and reuses the constants.
Change-Id: I754d4c06007db7d68ceaa64e76f3ef2305d7850c
Currently netaddr is installed as part of the neutron-lib but it's safer
to explicitly list the requirement since the library is imported
directly.
Change-Id: I1cce4aee1109071e442c8df30d7f57714a9b92be
The current Ubuntu image uses OVN 22.04 which is now almost 2 years old.
The schema contains both Logical_DP_Group and Chassis_Private so it's
safe to remove the code that assumes the tables might not be available.
This is a followup patch for the change
I05598c357b636d3d5d70d7cbefe6acae9dbf8033 that was only for NB OVN BGP
driver.
Change-Id: I8c61c1cff59ca2836cdf4256c921cfdfb291a36a
The current Ubuntu image uses OVN 22.04 which is now almost 2 years old.
The schema contains both Logical_DP_Group and Chassis_Private so it's
safe to remove the code that assumes the tables might not be available.
Change-Id: I3cb4219b173cce13354a024ce445865e5724d654
... so that we can review the available options more easily.
This also updates tox.ini to reuse the same environment for multiple
targets.
Change-Id: I561ff8a116c5a13784b83ff1450af965e6aff82c
The patch instantiates the events directly instead of collecting their
names and then calling getattr for each to instantiate it.
Change-Id: I05598c357b636d3d5d70d7cbefe6acae9dbf8033
The patch removes code where lists are generated and immediatelly
converted to sets. It also uses set comprehension where applicable.
Change-Id: I4f96a88e100593cfaf2a95f3aa409eed531c2ed4
Depending on how the kernel was compiled vrf kernel module may not be
present on the box. This patch installs required packages that contain
vrf kernel module and installs the module as part of
`install_ovn_bgp_agent` function.
Change-Id: Ieb8351cf4eef6db7dc56fb21be9d0cedf6d2ffca
The content has never been tested in CI. Lower constraints are no
longer tested in neutron since l-c job was removed[1].
[1] bc8e512b4a7b68f2e5c31efd320d8b347d06bba0
Change-Id: I99c7ca171638cf058ec216a29e26f522d580fdae
NDB proxy is needed with newer ovn versions for proper redirection
of egress traffic for IPv6. This patch is adding it
Closes-Bug: #2046254
Change-Id: I055e332deebce25d08d596d469f3ad2bdb800579
As per: https://docs.python.org/3/whatsnew/3.12.html
the imp module is gone. importlib has the same reload() function,
let's use it instead.
Change-Id: If3aa7d47fefd6a0fe416454d22cecd8dbed767f8
If there are flat and vlan provider networks configured on the
same ovs provider bridge, the arp/ndp proxy were not being
configured for the bridge, therefore breaking the connectivity
to the VMs on the flat network. This patch ensures it is always
configured
Closes-Bug: #2045401
Change-Id: I9e4cbe6861b6f83c90d664424a4eb905fe49e4a7
There is a chance that when deleting a VM with a FIP, by the time
the FIP is being withdrawn, the VM port has its chassis already
removed, which makes the withdrawn event to do nothing, leaving
the FIP exposed. This patch fixes that by removing the FIP if the
VM port associated has no chassis (in the same way as it was done
if the port was already deleted). This means it will be executed
in some nodes that should which do not have the IP exposed, but
that is preferred than leaving the FIP exposed while it should not.
Closes-Bug: #2044980
Change-Id: I3857ea10d8e313216e8f3e7252a0bc54a25b9efe
The withdrawn events are evaluating the chassis changes but also the
status changes. When the status was changing it was not being
validated that the chassis was the local one, therefore executing
the withdrawn events in nodes there the IPs were not exposed. This
patch fixes it
Closes-Bug: #2044981
Change-Id: I86faa32a10e7185eac11671470200468fa7c9dda