Commit Graph

525 Commits (master)

Author SHA1 Message Date
elajkat 20542bf062 [sqlalchemy-20] The Session.begin(subtransactions) flag is deprecated
Change-Id: I7c7e7fc89e553c1674996a846c3fcf7b5e663d7b
2023-08-23 12:54:36 +02:00
Takashi Kajinami 6dd2f7be67 Add missing db context to _get_l2_gateway_connections
The _get_l2_gateway_connections method is now directly called from
L2gwRpcDriver, and this is causing a lot of warning messages about
SQL execution without transaction in progress.

Change-Id: Ia141d0390f18253bc484b3e154ef91f5733654fe
2023-08-04 07:26:29 +00:00
elajkat fc1a12a9a7 Update python runtime to be larger or equal than 3.8
Change-Id: I7d6b6e9256451458f0544cea9f28d27992591a30
2023-07-31 11:06:40 +00:00
elajkat 41b397623d Remove the old CLI code from networking-l2gw
With [1] all the CLI code was removed from python-neutronclient,
This causes test discovery failure for networking-l2gw, and
the old neutron l2gw type commads can be removed from
the networking-l2gw repository.

[1]: https://review.opendev.org/c/openstack/python-neutronclient/+/871711

Change-Id: I291e1ccc57f03ad6a21018d891db7a74de87b859
Related-Bug: #2003861
2023-07-31 09:35:13 +02:00
elajkat 6e9c1b693e CI: Fix dependencies of SQLAlchemy main job
Add the same oslo master and SQLAlchemy jobs to experimental
also.

Change-Id: I2c5833622a3f38645a29d75bf608345b288e390a
2023-04-14 09:32:42 +02:00
elajkat de4c0c1ce9 Fix job name for periodic
Change openstack-tox-py310-with-sqlalchemy-master to
openstack-tox-py310-with-sqlalchemy-master-l2gw

Change-Id: I88f1c9c1cad8025e4d1a0236b9812cdfe0cf4448
2023-02-14 17:02:09 +01:00
elajkat 27d00bd8c1 CI: Add periodic weekly job with sqlalchemy master
Add new job to periodic weekly
openstack-tox-py310-with-sqlalchemy-master, and change previous
jobs in the periodic to py310

Change-Id: I3866725afe090f8b7b0128f45618a9f52e67fc31
Related-Bug: #2004265
2023-02-03 05:08:50 +00:00
elajkat 169813a3fa Fix tox.ini for tox4
Use allowlist_externals instead of whitelist_externals.
Execute shell script with bash.

Depends-on: https://review.opendev.org/866943
Change-Id: Ibb4854595649e9530b9f49b0c74aafc21861d970
2023-01-09 09:44:02 +00:00
Brian Haley 9768fd9ebb Update requirements for python 3.11
There is a debian bug that covers an issue building
packages for networking-l2gw on python 3.11:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023764

It looks like the problem is that the neutron method
register_common_config_options() doesn't exist in the
version of neutron (16.0.0.0b1) this repo is requiring,
as that method was introduced in neutron 21.0.0.

This is my attempt at moving that requirement forward,
which required various other ones as the string was pulled.

Change-Id: I67ae220c481a2381d6c492f6e01793d43dadbb3e
2022-12-06 09:19:05 -05:00
elajkat 96cb7f2002 CI: Add periodic weekly jobs
Add weekly periodic to run py39, py39-with-oslo-master and
networking-l2gw-tempest-dummy.
Use anchor for required projects to simplify the job definitions.

Change-Id: I15f3338b1b671c82c3c3174ed5e463a1a20e7b26
2022-10-27 16:20:32 +02:00
elajkat fbebe30031 Add context for all SQL transactions
Follow the last efforts to make Neutron compatible with sqlalchemy-20
(see [1]), and use the necessary context for all SQL transactions.

[1] https://review.opendev.org/c/openstack/neutron-lib/+/828738
[2] https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/842113

Change-Id: I8923760e011aacb8523022e64a3cb38b7eaa89ba
Closes-Bug: #1984267
2022-09-27 08:21:43 +00:00
elajkat ebac4668a5 Tests: fix requirements for unit tests
Add WebTest to test-requirements which used to be imported as a
transitive requirement via pecan, but the latest release of
pecan dropped this dependency. So make this requirement explicit,
see [1].
Add Neutron and l2gw as required project to py310 job in .zuul.yaml

[1]: https://review.opendev.org/c/openstack/neutron/+/848706
Change-Id: I02c00f46ad453c25981475ce53421827df97a717
2022-07-19 11:59:51 +00:00
Takashi Kajinami fb7ff9f45b Fix missing common options
Since the dependent patch was merged in Neutron, we need to call
the register_common_config_options method explicitly to register common
options like oslo.log options.

This change updates the job template according to the tested runtimes
for Zed. This is required to remove Python 3.6/7 because these are no
longer supported.

Also, now unit tests are executed with current master code of Neutron,
instead of the latest release, so that we can run test with any
unreleased change in Neutron.

Closes-Bug: #1977980
Related-Bug: #1968606
Depends-on: https://review.opendev.org/c/openstack/neutron/+/837392
Change-Id: I1ac3557fcd6eba187d52686345040c5fdfb4f7e9
2022-06-14 14:11:35 +09:00
Mariusz Karpiarz 6872c3bd95 Add missing "Getting started" shell commands
With these the OVSDB node can be correctly set up on a fresh
installation of Ubuntu.

Change-Id: I7b4a9ca2426478270135ff71b4e97c7345c64130
2020-10-23 15:22:56 +01:00
elajkat 37f190cce3 .zuul.yaml to the project and change location
Add back .zuul.yaml to the project and change all references from
openstack/networking-l2gw to x/networking-l2gw

Make jobs work on ubuntu focal
Fix mysql syntax in tools/test-setup.sh

Change-Id: Ic48f3d8ae8786b9ea98abba94b44ff4cb804ccc8
2020-09-15 07:41:36 +00:00
elajkat b20b90d769 Remove .zuul.yaml
The removal of .zuul.yaml is necessary to import the repo to x/
namespace.

Change-Id: Ie4434ed4c116bfc10b60945172b49898db44714f
2020-08-06 16:33:16 +02:00
Zuul 1d1765487b Merge "Retire networking-l2gw: remove zuul jobs" 2020-07-03 12:08:45 +00:00
elajkat 454cf61f8a Retire networking-l2gw: remove zuul jobs
networking-l2gw is not a neutron stadium project, and not governed by
openstack, so it is time to move it to x/ namespace. As a first step
disable zuul jobs to avoid collisions when the new repository will be
created as x/networking-l2gw.

Change-Id: I1bf048df49c385a92fea55f99bd0a7c4283960cf
2020-06-30 15:45:55 +02:00
Zuul f408a9fd7a Merge "Fix cleaning vlan_bindings in neutron db when vlan is 0." 2020-06-29 15:26:32 +00:00
Andreas Jaeger e3ffcc084d Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Remove install_command from tox.ini, the default is fine
- Remove Babel from requirements, it's not needed for running.
- Remove unused babel.cfg and obsolete openstack-common.conf
- Use TOX_CONSTRAINTS_FILE instead of obsolete UPPER_CONSTRAINTS_FILE.
- Remove six usage
- update to hacking 3.1.0, fix problems found.
- Remove hacking and friends from lower-constraints, they are
  blacklisted

Change-Id: I6321b612f37bca7b441171814b059eaad03d9f24
2020-06-19 15:21:49 +00:00
fanghuilin 0c22e5ab19 Fix cleaning vlan_bindings in neutron db when vlan is 0.
Change-Id: I115f777d3e990587a58ce97a61f59b3480e9270b
Closes-bug: #1883203
2020-06-18 16:23:50 +08:00
Zuul 4f43c0a254 Merge "Add Python3 victoria unit tests" 2020-06-03 04:19:06 +00:00
Andreas Jaeger 8aed65a78d Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: If0e77ff211c6ee1418e5fe2a790b8029b1495dcd
2020-05-23 18:31:04 +02:00
elajkat 6540c75899 Add Python3 victoria unit tests
Change-Id: I630d47318f211ec72d42282456036cb20acd0254
2020-05-21 11:31:55 +02:00
Sean McGinnis 30f4209a1d
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I083fed71bf9fe2a8eed4737940aa933dc4d0b980
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-13 05:07:50 -05:00
Corey Bryant 7702a9e868 Monkey patch original current_thread _active
Monkey patch the original current_thread to use the up-to-date _active
global variable. This solution is based on that documented at:
https://github.com/eventlet/eventlet/issues/592

Change-Id: I4a3b59b1059c3ab8e515d771a0411baafbbd28c4
Closes-Bug: #1863021
2020-05-05 10:13:44 -04:00
elajkat d57ae1ad77 Make gateway update work without device info
_validate_gateway_for_update expects now the gw dict to have device
dict. The update thus fails in case of updateing the name only for
example.
This patch makes this kind of easy updates working.

Change-Id: I4368e1fdbe3e539c988f82fd90d4c30b426ac1d2
Closes-Bug: #1834331
2020-02-12 16:48:09 +01:00
elajkat f317bfae10 Remove networking-l2gw python2 jobs
Python 2 will be EOL at the end of 2019. Ussuri will no longer support
Python 2 so it's safe to remove python2 jobs and save some CI resources.

Change-Id: I12ec23f9f8879b984099cce3495f4687dd2e0f61
2019-12-09 15:07:21 +01:00
Zuul f16915d099 Merge "Switch to Ussuri jobs" 2019-12-05 05:41:35 +00:00
pengyuesheng 007695b262 Switch to Ussuri jobs
Change-Id: Iee43b0169e1b159c8ced5671018918925b99f00d
2019-10-25 14:34:22 +08:00
wangfaxin 91f4ca2b6c Fix misspell word.
Change-Id: I6918313febc128624aeb724a172ddca1359159fd
2019-10-16 21:37:20 +08:00
Zuul ca54bb1dc5 Merge "Update the constraints url" 2019-09-26 15:11:06 +00:00
Zuul d2313e6465 Merge "PDF documentation build" 2019-09-25 08:38:06 +00:00
pengyuesheng bbec52ced4 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Iebf1c67f40533a3a09d6dac2908d903bc9fc03f2
2019-09-20 17:42:03 +08:00
elajkat b6df509edf PDF documentation build
Change-Id: I3fd44c8a6908261a06d274d7901c86a9ffabcfe6
2019-09-17 11:10:03 +00:00
pengyuesheng f7a56781d3 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I47a5ad7c95e7d255c460fd80d2c62c967c6b985c
2019-09-05 09:28:58 +08:00
Zuul 5565e96a69 Merge "use standard_attr db from neutron-lib" 2019-09-03 15:27:23 +00:00
Zuul 9b268cf230 Merge "Bump the openstackdocstheme extension to 1.20" 2019-09-03 15:12:07 +00:00
Boden R db63dffa08 use standard_attr db from neutron-lib
This patch consumes the neutron_lib.db.standard_attr module from
neutron-lib by switching all imports to use neutron-lib's standard_attr.

Change-Id: I846d99918aac6ae3dc699ed06233b1f4fa5ea78b
2019-08-28 12:17:57 -06:00
elajkat 852c8098ca py3: encode messages on py3
On python3 send fails with TypeError: a bytes-like object is required,
not 'str', this patch solves this issue.

Closes-Bug: #1820154
Change-Id: I700462a9a5bcc66b2edf05e4e0396556e381a8c1
2019-08-26 12:30:50 +00:00
pengyuesheng 563a9bad82 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I128f18d83a950b31e1e8c5a475d6e21a1987242f
2019-07-29 11:28:26 +08:00
elajkat 364dd0a3cf Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

As per below ML thread, we are good to drop the py35
testing also:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html
Story: #2005924
Task: #34225

Change-Id: Ibdafaa8b7f946c99a9083874296df82921ad770b
2019-07-24 07:30:32 +00:00
Zuul d807e13fed Merge "Start agent looping task anyway" 2019-07-04 10:05:00 +00:00
Elod Illes 5469040a1a Add local bindep.txt
As it was announced [1] global bindep-fallback.txt was removed and now
projects need to have a local bindep.txt to be able to install binary
dependencies for testing.

In test jobs the script tools/test-setup.sh is called which requires
mysql and postgres servers and clients to be installed.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html

Change-Id: Iad7a49bae622cbae5203d69170e52c81e3066ba1
2019-06-28 10:36:34 +02:00
Lajos Katona 23f0fb2df6 Start agent looping task anyway
In some cases agent looping tasks didn't start, but the _running
property was set. Even with extra debug logs I can't get the roor cause.
Other agents do call start() [0] as well after initializing
FixedIntervalLoopingCall.

[0] https://opendev.org/openstack/neutron/src/branch/master/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py#L323-L325

Change-Id: I82c02fb516eac2e357c6a7ee02ae8ed1c432530e
2019-06-18 16:02:52 +02:00
Zuul 1d9d37a71e Merge "Use opendev repository" 2019-05-28 21:10:16 +00:00
Zuul e774c77a15 Merge "bump lower-constraints" 2019-05-28 20:13:00 +00:00
Le Hou e419adee00 Use opendev repository
Change-Id: I52a31d4728b9f656a0263422a00063b027bde0b8
2019-05-28 13:04:15 -06:00
Andreas Jaeger aed091ab45 Import and update jobs
Import jobs from project-config and update them:
* Use python36 instead of python35, since py35 is out of scope
  for current cycle.
* Switch to using "tox -e docs" for docs building - using
  build-openstack-docs-pti template. This does not publish since
  networking-l2gw is not an official OpenStack project under governance
  anymore.

Update tox.ini for docs change.

Since this now uses python3 for docs building, switch from oslosphinx
(only working with python2) to openstackdocstheme.

Use new URL for upper-constraints file everywhere.

Update RST files where new sphinx was producing errors.

Needed-By: https://review.opendev.org/661542
Change-Id: Ic59f532e31647bc58aba236bf440b7bca934d36d
2019-05-27 11:09:37 +02:00
Lajos Katona 5e73b5b044 bump lower-constraints
bump lower-constraints for neutron, ovs, psycopg2 and SQLAlchemy, and as
extra fix the failing unit test.

Change-Id: I751b716cf22ce91197fc30e44969957acdef7e84
Depends-On: https://review.opendev.org/659960
2019-05-23 11:33:24 +02:00