Commit Graph

2086 Commits

Author SHA1 Message Date
fungi.admin 1fcd4a4a8f Merge "Zuul: Remove references to centos-7 job nodes" 2024-03-13 16:22:01 +00:00
Jeremy Stanley 106e2e3eff Zuul: Remove references to centos-7 job nodes
OpenDev is preparing to remove centos-7 nodes on March 15[*]. This
change drops Zuul configuration references to anything directly or
indirectly relying on that label.

[*] https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.org/message/A2YIY5L7MVYSQMTVZU3L3OM7GLVVZPLK/

Change-Id: Ib22b06a42f8f5fefebd25cde2bb43fb3c77b6ec8
2024-03-12 22:34:07 +00:00
OpenStack Release Bot bdb1ccdf17 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: Ifda21bc8a7e3faad8b0d80498aa388ab4b32a7d2
2024-03-12 19:31:38 +00:00
Zuul 53b060dbe1 Merge "reno: Update master for unmaintained/victoria" 2024-03-07 15:32:12 +00:00
Zuul d69a9caa13 Merge "reno: Update master for unmaintained/wallaby" 2024-03-07 15:26:36 +00:00
OpenStack Release Bot 7efc7cdb69 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I79fe17027b58f2366accb6aca32cd3ff585c2f7b
2024-03-06 12:17:55 +00:00
OpenStack Release Bot 220b61989c reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I8b14f3adc1aa1c30f08a6f6a9c42ff35ff8c68a4
2024-03-06 12:08:17 +00:00
OpenStack Release Bot 1da9e69653 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Ie187ea3b625008b2fa85e45f4104f3b25e44623b
2024-03-06 11:59:46 +00:00
elajkat 972f681851 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: I16073e791defeb3bd454b1c9a4f533e66fe1a260
2024-02-06 11:48:36 +01:00
OpenStack Release Bot f5aa16a305 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I89730fc2a042a6147cdef0d5327111feb6c58195
2024-02-05 16:46:13 +00:00
Zuul 254fc29674 Merge "Remove unused tempest from test requirements" 2024-01-24 15:22:25 +00:00
elajkat 87859a3997 Update python classifier with py3.10 & py3.11 in setup.cfg
Change-Id: I6a1435c3d2660a6f008cee6f62f641abab0a7ec2
2024-01-11 13:23:44 +01:00
Bodo Petermann 256464aea6 VPNaaS support for OVN
Adds VPNaaS support for OVN.
Add a new stand-alone VPN agent to support OVN+VPN. Add OVN-specific
service and device drivers that support this new VPN agent. This will
have no impact on the existing VPN solution for ML2/OVS, the existing
L3 agent and its VPN extension will still work.

Add a new VPN agent scheduler that will schedule VPN services to VPN
agents on a per-router basis.

Add two new database tables: vpn_ext_gws (to store extra port IDs)
and routervpnagentbindings (to store VPN agent ID per router).

More details see spec (neutron-specs/specs/xena/vpnaas-ovn.rst).

This work is based on work of MingShuan Xian (xianms@cn.ibm.com),
see https://bugs.launchpad.net/networking-ovn/+bug/1586253

Depends-On: https://review.opendev.org/c/openstack/neutron/+/847005
Depends-On: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/847007

Closes-Bug: #1905391
Change-Id: I632f86762d63edbfe225727db11ea21bbb1ffc25
2023-11-16 21:08:50 +01:00
Takashi Kajinami c7f7df2920 Remove unused tempest from test requirements
This repository no longer contains any tempest tests since [1] was
merged.

[1] 4077093c10

Change-Id: I78e3b70d8add8587b596df21f09e3d18e569ae72
2023-10-27 10:20:41 +09:00
yatinkarel e944dc144c Make cisco_csr_identifier migration conditional
neutron dropped 'cisco_csr_identifier_map' table in
[1], this makes migrations for that table conditional.

[1] https://review.opendev.org/c/openstack/neutron/+/897472
Related-Bug: #2038555

Change-Id: I31f2175cfc91a1d2bcb15b8911b2e323af25740d
2023-10-13 12:23:52 +05:30
elajkat b4c2bc4af6 py311: Add py311 job and sqlalchemy-main job to weekly
Change-Id: I6bb322be2d533ff8a96409f2982c94a09c8383ee
2023-09-29 09:04:05 +00:00
Rodolfo Alonso Hernandez 8f8b493a28 Bump pylint version to 2.17.4
This is the same version used in Neutron repository.

Change-Id: Icc5376162732b54e5abc8ef15daf06ef53bde8e9
2023-09-28 14:10:43 +00:00
OpenStack Release Bot 688a3fe918 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: I7b81e50fcbe5be43285aee170a363f31e04edcc7
2023-09-14 01:21:35 +00:00
Rodolfo Alonso Hernandez 6830780848 [alembic] Alembic operations require keywords only arguments
Since [1] (release 1.11.0), the Alembic operations "now enforce
keyword-only arguments as passed as keyword and not positionally"
(from the commit message).

This change is compatible with the previous versions (as confirmed
in the CI).

[1]df75e85489

Closes-Bug: #2019948
Change-Id: I00c34fd8c4666d5cece13f562df733e75b4b70af
2023-05-17 12:13:54 +02:00
OpenStack Release Bot 97e5d0332c 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: Idb91d66cad69d89079e3fa1ea0c6591f0aa6d1d1
2023-03-01 10:48:25 +00:00
Rodolfo Alonso Hernandez 792f2c65ec [sqlalchemy-20] Add reader context to ``VPNPluginDb`` get methods
The following methods are now called from inside a reader context:
* ``VPNPluginDb.get_ikepolicy``
* ``VPNPluginDb.get_ikepolicies``
* ``VPNPluginDb.get_ipsecpolicy``
* ``VPNPluginDb.get_ipsecpolicies``
* ``VPNPluginDb._get_vpnservice``
* ``VPNPluginDb.get_vpnservice``
* ``VPNPluginDb.get_vpnservices``
* ``VPNPluginDb.get_endpoint_group``
* ``VPNPluginDb.get_endpoint_groups``

This patch is also adding the writer context to
``BaseIPsecVPNDriver.create_vpnservice``.

Closes-Bug: #2008767
Closes-Bug: #2008001
Change-Id: Ic22eb356c3157713a53cd71a366b946aa57ab042
2023-02-25 19:59:54 +01:00
Vasyl Saienko d34ff613d7 Fix pep8 and doc jobs for tox4
Add bash to allowlist_externals

Change-Id: Idb063586fa6e6e0d9c4ecc61fc661338f6759e08
2023-01-18 10:45:48 +00:00
elajkat d1b1f94b1b CI: Add openstack-tox-py39-with-oslo-master to periodic weekly queue
Change-Id: I95fa73ebc4841061909b51dd8e2dba259c4c0c7c
2022-10-20 14:09:20 +02:00
OpenStack Release Bot 03fe2fbff9 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: I4b384c47e618511b1d5016d966e3ccde496c82fe
2022-09-16 12:07:29 +00:00
OpenStack Release Bot ca7e32bbb7 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: If4dadb7bfdbfe130e2585f921994f096a36206af
2022-09-16 12:07:28 +00:00
elajkat 694c84c61b Adopt to oslo.db 12.1.0
Change-Id: Ic166fd810b1e49ac02d32921a6294e5f3c758489
2022-09-14 09:05:49 +02:00
elajkat 6eaed1cdba 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.

Related-Bug: #1982110
Change-Id: I55c8ef4bd0e6f71ee058083708bbac4aa9fa56a0
2022-07-19 12:02:25 +00:00
Bodo Petermann 740bf12dfa Fix creating ipsec site connection
Fixes a RuntimeError "Method remove_reservation cannot be called
within a transaction" while creating an ipsec site connection.
To avoid the error the service driver now gets the vpnservice
(to get the router_id) inside a CONTEXT_READER wrapper.

Closes-Bug: #1978571
Change-Id: I6552816db8a596a933365dc9de481d8c32371f1c
2022-06-14 18:54:40 +02:00
Mohammed Naser 6a226281bb Migrate to neutron-lib released API definition for VPNaaS APIs
This patch shows how to use a neutron-lib released API definition for
the VPNaaS extensions. This is a baby step towards a
consolidated set of Neutron APIs.

See I06760fbbbc87570412a21364fba58efe880a907b for more details.

The method get_namespace in API extensions is also removed during this
migration. Since it was removed from neutron long time ago [1].

Co-Authored-By: Anh Tran <trananhkma@gmail.com>
Co-Authored-By: Hunt Xu <mhuntxu@gmail.com>
Co-Authored-By: Dongcan Ye <hellochosen@gmail.com>

[1] I3c406910991c33cf959c5345d76153eabe3ace2d

Depends-On: https://review.opendev.org/#/c/710559/
Depends-On: https://review.opendev.org/#/c/712657/
Change-Id: I1034814639a03b6482d9c9d1a389950aef967a59
2022-05-23 11:42:13 -04:00
Zuul 1fd3a6633c Merge "remove unicode literal from code" 2022-05-23 15:22:27 +00:00
Zuul a31e5f1b0a Merge "setup.cfg: Replace dashes with underscores" 2022-05-17 20:25:14 +00:00
likui 01b1ccf536 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of
dash-separated options in 'setup.cfg' will not be supported
in a future version [1].
Get ahead of the issue by replacing the dashes with underscores.
Without this, we see 'UserWarning' messages
like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I84131fe10c7ca309e576b1769f2a3eccf4fdfe50
2022-05-17 18:42:14 +08:00
likui 166949f968 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I4bac7893751ee1c0548b7864d26774fed4f46a99
2022-05-17 18:41:43 +08:00
Zuul 516d31fc2d Merge "Use TOX_CONSTRAINTS_FILE" 2022-05-17 06:39:15 +00:00
Zuul d12bc8b37e Merge "Drop install_venv" 2022-05-13 20:16:39 +00:00
Zuul 9464f68a04 Merge "cleanup: drop un-used test-requirements.txt" 2022-05-12 18:19:57 +00:00
Zuul 8422cbc689 Merge "Drop lower-constraints.txt and its testing" 2022-05-12 18:19:54 +00:00
Zuul 5337f9ec28 Merge "CI: Add Neutron to required-projects list" 2022-05-12 18:19:51 +00:00
Ghanshyam Mann 4f1f0f7263 Update python testing as per zed cycle teting runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Add release notes and update the python
classifier for the same.

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

Change-Id: I68fded0366a3be3ef5459391982e80c570562735
2022-05-11 22:19:10 -05:00
elajkat 96adf1ac61 CI: Add Neutron to required-projects list
Unit tests jobs (openstack-tox-py3x) are better to run with latest
Neutron otherwise they can fail till a new Neutron release is out.

Change-Id: I83cb8ca8969567f0383f6842ccf66e1864e0a715
2022-05-10 10:49:17 +02:00
Ghanshyam Mann 130d6ddf1b 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: Iddb575ef94f8162f8d07f650db4611a5fd07b258
2022-04-30 20:16:07 -05:00
Zuul 9ab2cc8cce Merge "l3ha: fix status updates" 2022-04-27 07:16:11 +00:00
Zuul cca1ee1307 Merge "Add Python3 zed unit tests" 2022-04-27 07:07:42 +00:00
Zuul 04ab6d5b50 Merge "Fix failover with L3 HA" 2022-04-26 15:02:05 +00:00
Mohammed Naser 8b39906814 cleanup: drop un-used test-requirements.txt
Change-Id: I10db82bf5769ab7d82600301e22ef4b1ce25eb2f
2022-04-22 19:54:21 +00:00
elajkat f9bf321be9 Add weekly jobs
Add jobs to the weekly periodic pipeline (see [1]).
Current jobs to be run weekly: openstack-tox-py39,
neutron-tempest-plugin-vpnaas and neutron-vpnaas-functional-sswan.

[1]: https://opendev.org/zuul/project-config/src/branch/master/zuul.d/pipelines.yaml#L130

Change-Id: I15de6577cf21023ca88270d59c69ac2f26dfe3f8
2022-04-21 03:41:22 +00:00
OpenStack Release Bot 3dfa52833b Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

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

Change-Id: If0fae164f26aaf69ce043c93c6922377ce204ddf
2022-04-21 03:40:36 +00:00
Mohammed Naser 73499f01c6 tests: restore functional testing
At this commit, all the things are fixed again and we can restore
testing once again.

Change-Id: Iea5454973cd12626703c64b74ef3ba08fc6250f2
2022-04-20 19:21:09 -04:00
Mohammed Naser bf155a8ee7 tests: fix functional tests
Neutron introduces an additional layer of protection when it comes
to dead VLANs, however, the VPNaaS did not have that change in it's
tests which meant that traffic was not reachable inside the
functional tests[1].

This patch changes the base class of the TestIPSecBase to use the
L3AgentTestFramework instead, and does a small refactor of the
setUp() function as well to remove extra calls.

This should stop any further changes in Neutron from breaking VPNaaS
since hopefully that class will carry the fixes down.  However, there
are a lot of duplicated code from the base class into this one,
however, this patch is focused at making a simple backportable
change for now.  Long term, it would be good to drop more of the
redundant code in there.

[1]: I0391dd24224f8656a09ddb002e7dae8783ba37a4

Change-Id: I04793caeaa71adbb1abcbda58aa43e63ce51d1e6
2022-04-20 19:20:36 -04:00
Mohammed Naser 6f6a455b22 Register common config options by default
The [1] change modified the behavior Neutron had, which used to
force the default config options to be automatically set.

Neutron VPNaaS expects some of the default config options
to be set while initializing some services. If they aren not set
the initialization will fail similar to neutron-dynamic-routing[2].

This change invokes the method that sets such config options to
fix this initialization issue.

[1] https://review.opendev.org/c/openstack/neutron/+/837392
[2] https://review.opendev.org/c/openstack/neutron-dynamic-routing/+/838780

Change-Id: I5c309c1ca8a7162b2a42b60bb3ee66df2c93fbae
2022-04-20 19:18:33 -04:00