Commit Graph

455 Commits

Author SHA1 Message Date
Zuul 260fed1054 Merge "reno: Update master for unmaintained/victoria" 2024-03-21 10:12:04 +00:00
Zuul 0ab31df340 Merge "reno: Update master for unmaintained/wallaby" 2024-03-21 10:12:03 +00:00
Zuul 36e77894bf Merge "reno: Update master for unmaintained/xena" 2024-03-21 10:12:02 +00:00
Zuul 8a92922e36 Merge "tox: Drop envdir" 2024-03-20 13:57:47 +00:00
Zuul ca62f9cd61 Merge "Update python classifier in setup.cfg" 2024-03-20 13:54:24 +00:00
OpenStack Release Bot 6174366bf0 Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.

Sem-Ver: feature
Change-Id: If84e5ae82ffb6bbc6d58ac4526404f8504f0aec8
2024-03-12 18:14:45 +00:00
OpenStack Release Bot 0b1847a9f3 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I451cebf055061beba6c69e81d7980b206797c193
2024-03-05 18:51:42 +00:00
OpenStack Release Bot 500e34b334 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: Iab42dd3d6150026669c52b2e39702e6a067a8fce
2024-03-05 18:50:06 +00:00
OpenStack Release Bot f3c6c34297 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Icfd5238438045fb632c1b1a053b28678b0414340
2024-03-05 18:48:08 +00:00
Zuul 2f53c930f9 Merge "Fix missing or unnecessary dependencies" 2024-02-23 14:21:07 +00:00
Zuul 4d2d89e041 Merge "Drop wrong stacklevel" 2024-02-22 12:29:38 +00:00
Takashi Kajinami f15a4b6206 Drop wrong stacklevel
This is follow-up of 077e43698e and fixes
the wrong stack level for deprecation warning. We don't have to look
for the point of upper caller.

Change-Id: I615d995c42e6ff689d25f5db8026d9cd684d93ad
2024-02-22 00:04:52 +09:00
Takashi Kajinami 5c41f9f700 Fix missing or unnecessary dependencies
This fixes the following problems with current requirements and test
requirements.

- netaddr is not used

- oslo.serialization and oslo.utils are imported but are not listed in
  requirements.

This also fixes the workaround for python 2 from setup.py because
python 2 support was removed some time ago.

In addition, the described behavior of pip was already fixed in
recent versions.

Change-Id: I63a56adf73c221c8f5f725c2689ddf953f90c654
2024-02-19 10:40:44 +09:00
OpenStack Release Bot 65db98dc4e reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I70f0efd7e01211ce851380844b1e77f8bd53ba4c
2024-02-06 14:27:21 +00:00
Takashi Kajinami e91dadeaf0 tox: Drop envdir
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: Ib73364b71234d25d50920495f91e1a3e18c96bcd
2024-02-02 23:56:56 +09:00
Ghanshyam Mann 6ec5db8429 Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg

Change-Id: Ie609845195ceea1d3bc71dfce6b1f214f0648dc4
2024-01-03 19:15:47 -08:00
Zuul a10ac95be1 Merge "coveragerc: Remove non-existent path" 2023-12-19 15:38:14 +00:00
Takashi Kajinami 09a3ecebf9 coveragerc: Remove non-existent path
The os_vif/openstack directory does not exist.

Change-Id: Iff0b027941d207d732863dc74f0a6c41300d4102
2023-12-19 20:58:39 +09:00
Zuul 03a53003f8 Merge "Deprecate Windows support" 2023-12-11 13:29:07 +00:00
Takashi Kajinami 077e43698e Deprecate Windows support
Because WinStackers project has been retired, running OpenStack on
Windows operating systems is no longer maintained.

Change-Id: Ic5971ee22aa309a8b46f21fccaa8be7c0091fb0c
2023-11-18 17:37:28 +00:00
OpenStack Release Bot 458e8d5d9c Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: I64f66933e552981b4affd841f640742d1f80bbb9
2023-09-07 09:37:02 +00:00
Vasyl Saienko 0a0dec37e4 Don't break traffic if port already exists
Nova compute service plugs VIF on service init, it triggers
rules reinitialization for iptables filter. But it breaks
traffic in case isolate_vif is used by assigning dead VLAN
to the port. This patch prevents dead VLAN assingment
for ports that exists.

Co-Authored-By: aarefiev@mirantis.com

Closes-Bug: #2023300

Change-Id: Ib1b7467fce9facfbfcd698bf6e9f950c0cead650
2023-06-08 15:52:50 +00:00
Zuul da742a849a Merge "set default qos policy" 2023-05-11 13:42:10 +00:00
Sean Mooney 79be30fd13 remove focal based jobs
ubuntu 20.04 is no longer a tested runtime.
This patch removes the  os-vif-ovn-ubuntu-focal job
from  the check and gate pipeliens and removes the job defintion.

Change-Id: I3304b7a1d489e281fbceff19dcc97cbd6dadee13
2023-05-09 21:39:35 +01:00
Sean Mooney c0d101aa81 set default qos policy
This change modifies the os-vif ovs plugin to set a default
tc qdisc on ovs interface when the host os is not windows
and the system datapath is used.

This change fixes a "silent" bug in the functional test code due
to a change in an ovsdbapp function signiture to accpet a new paramater.

Closes-Bug: #2017868
Change-Id: Id9ef7074634a0f23d67a4401fa8fca363b51bb43
2023-05-09 20:02:48 +01:00
OpenStack Release Bot 6795bf63a2 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: I71e5f6c041bf8445da99bfb6f284b69f2ae10350
2023-02-24 15:09:00 +00:00
Zuul 54bae86c25 Merge "Implement "BaseCommand" result property" 2023-02-06 18:32:46 +00:00
Rodolfo Alonso Hernandez b052dfe2f1 Increase the swap size to 8GB in tempest jobs
That should reduce or avoid the ocurrency of frequent OOM exceptions
during the execution of the tempest tests.

Change-Id: Ie67df706a560cd510015f9fb3c94d9353dd6159f
2023-02-03 16:37:51 +01:00
Rodolfo Alonso Hernandez 15e1327dc3 Implement "BaseCommand" result property
``ovsdbapp.api.Command`` abstract class will declare the "result"
property in [1]. This should be available in the next library
release.

Related-Bug: #1995078

[1]https://review.opendev.org/c/openstack/ovsdbapp/+/871836/11/ovsdbapp/api.py

Change-Id: I98fd0be0b7d3ca8dd631b00b75515b1ad0d61f3c
2023-01-26 02:57:27 +01:00
Ghanshyam Mann 03417ac879 Update gate jobs as per the 2023.1 cycle testing runtime
As per 2023.1 testing runtime[1], we need to test on Ubuntu
Jammy (which will be taken care by tempest and devstack patches
to move base jobs to Jammy) and at least single job to run on
Ubutnu Focal (for smooth upgrade). Also, python 3.10 testing is
voting now.

This commit adds a new job to run on focal which can be removed
in future cycle when testing runtime drop the requirement of Focal
testing.

[1] https://governance.openstack.org/tc/reference/runtimes/2023.1.html

Change-Id: I17cc6d619e7becff6b33fd66a47d3a9621b823fb
2023-01-09 11:42:51 +00:00
Balazs Gibizer 2f31947393 Make tox.ini tox 4.0.0 compatible
* removed skipdist=True to make sure os-vif is available in the virtual
  env
* removed basepython = python3 as we assume all developer switched to
  python3 in their env already
* removed ignore_basepython_conflict = True as without the basepython
  definition generative targets now work without conflict

Also squashed in the commit fixing the functional target as both fix is
needed to unblock the gate:

add CAP_DAC_OVERRIDE to test privsep contexts

This change modifes the privsep contexts used by the test
code to create inteface without using the os-vif plugins.

The os-vif functional tests actully create ovs and linux
brdiges and dummy netdevs. to ensure the drier work correctly
the functional tests have a simpler test only version of the
port/brige management commands that are used to prepare
and validate the test env. The simpler implementation uses
standard linux commandline tools like "ip" or "ovs-vsctl"
which on ubuntu 22.04 require the addtion of CAP_DAC_OVERRIDE
to work around socket/file ownership issues.

To avoid  adding capablities at runtime that are not required
this change modifes the existing test only context in
the os_vif.tests.functional.privsep module and add a new test
context for the vif_plug_ovs plugin

Change-Id: Ide357cb64a8d128ff8ad978abae6a039e814d8a9
2023-01-09 12:30:15 +01:00
Zuul 067b816732 Merge "remove unicode from code" 2022-12-06 11:40:45 +00:00
Zuul 05c8a6880c Merge "Move mtu update request into ovsdb transaction" 2022-11-02 13:35:25 +00:00
Sean Mooney b0298b5350 adapt to stestr 4.0 release
This change removes usage of --black-regex which is no longer supported
as of stestr 4.0.0. The min version of stestr is increased to 3.1.0
which adds --exclude-regex as a replacement.

Change-Id: I24424aeeb178fd9ab1b736cb689a73f7bd8bd572
2022-10-12 12:09:27 +01:00
Rajesh Tailor 2f55e9ea06 Move mtu update request into ovsdb transaction
os-vif currently set the requested mtu as part of separate request
to the port add command. As a result the port is initially created
with mbufer pool for the jumboframe size, which results in an
error in openvswitch-vswitch logs.

This change moves the mtu update request into ovsdb transaction.

Closes-Bug: #1959586
Change-Id: I1acd74efc100c6f949b5c72525c455aebfa2c50e
2022-09-19 16:39:39 +05:30
OpenStack Release Bot 35705ba59f Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ie53a00cebcabea9fbdc5578333c11725d81f4fc6
2022-09-14 09:28:52 +00:00
OpenStack Release Bot f8d504049a Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: If59aa141d86f9096305498c4d56d35bc24729343
2022-09-09 15:03:54 +00:00
wangjiaqi07 a0bd6be312 remove unicode from code
Change-Id: I5c47a6089c66972b330d0e6f344bb744ac46624d
2022-08-25 11:25:48 +08:00
Sean Mooney 771dfffcd9 update ci since linuxbridge is now experimental
neutron now considers linuxbridge to be experimental
This change enables the linuxbridge feature in the
linuxbridge job. we do not currently declare the
linuxbridge os-vif plug as experimental as it has
been stable for many release and we do not have an
experimental concept in os-vif.

Change-Id: Ia275d1c3a9a9cf63238cf354c8e7d93ed59097a2
Closes-Bug: #1980948
2022-07-07 12:52:41 +01:00
Zuul 18bd440bbe Merge "Check for hybrid plugging in OVS" 2022-06-30 16:04:54 +00:00
Ghanshyam Mann 1651a730c1 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I38a41071ac540e3b58f9d18ead88b86203a4c843
2022-06-16 13:46:59 +09:00
Zuul b95daaecd3 Merge "Delete trunk bridges to avoid race with Neutron" 2022-05-31 15:41:32 +00:00
Zuul 124933574c Merge "Change minversion of tox to 3.18.0" 2022-05-30 21:24:29 +00:00
Miguel Lavalle 75b290fb2a Delete trunk bridges to avoid race with Neutron
During the Zed PTG it was decided that to solve the race condition
between os-vif and Neutron when deleting trunk bridges, os-vif will be
responsible of both the creation and the deletion of the bridge (see Day
2 first topic at [1]). This change adds the code to delete trunk
bridges.

[1] https://lists.openstack.org/pipermail/openstack-discuss/2022-April/028164.html

Change-Id: I7d834a0c31c801e96002f42f86409ba274c234e6
2022-05-26 14:27:52 -05:00
Sean Mooney a12edbfe54 update job template to zed
This change updates the python job template to zed
this will disable py36 jobs and enable the default set
for zed. The repo presently used the yoga template
which now fails as a result of project dropping py36 support.

This change also increases the min python reqired to 3.8
to match the zed supported runtimes and adds a release note.

Change-Id: I50253be0c99df9b363da5f6cc0c8502536dbbb43
2022-05-26 14:43:49 +01:00
Jakub Libosvar 9ace551db2 Check for hybrid plugging in OVS
There is a cold migration scenario that leaves some interfaces behind in
case port binding changes from hybrid to direct plugging between the
nodes. This patch adds functionality that checks presence of
intermediate linux bridge and clears things up properly if found.

Signed-off-by: Jakub Libosvar <libosvar@redhat.com>
Change-Id: Ic5b38a0467b3c18e38bec005d80cd1f5f0e66b28
2022-04-25 18:32:39 +00:00
Zuul 987c76d7c8 Merge "Fix race with DPDK and vhostuserclient mode" 2022-04-01 19:25:37 +00:00
Takashi Natsume 95fbe6abc8 Change minversion of tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace whitelist_externals with allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I38c2a7277f33203f3a8b51f01d75ce15730a969f
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2022-03-04 17:04:06 +00:00
OpenStack Release Bot 93fde12c39 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: Ide7a6f4c4307464087612b481a109111d49af843
2022-03-03 10:51:00 +00:00
Miguel Lavalle 21b076e7df Fix race with DPDK and vhostuserclient mode
When a VM is rebooted and it has a port in a Neutron trunk with DPDK and
vhostuserclient mode, Nova will delete the OVS port and then recreate it
when the VM reboots. This quick transition can create a race condition
whereby Neutron deletes the trunk's bridge between the interface removal
and addition by os-vif, so the latter operation fails because the bridge
doesn't exist anymore. To fix this, ensuring the bridge existance and
the vif addition becomes an atomic operation from the point of view of
the OVSDB transaction.

This change is associated to [1] on the Neutron side.

[1] https://review.opendev.org/c/openstack/neutron/+/829139

Partial-Bug: #1869244
Change-Id: Id7ece4ebc9239d9776c43b8d7f9e82b0319a08c6
2022-02-20 18:36:57 -06:00