Commit Graph

2268 Commits

Author SHA1 Message Date
OpenStack Release Bot 64d7cd2d60 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: If74eaf7f7d10994ec91e2ec676bb6eb4b2f484a6
2024-03-14 06:17:57 +00:00
Zuul 293df0f63f Merge "tox: Drop envdir" 2024-02-13 19:30:59 +00:00
elajkat 625b6526ca Bump hacking
hacking 3.0.x is too old.
Try to synchronize pylint ignore and extension list with
other Networking projects.

With new pip the order of packages is not relevant, so the
related comment from requirements.txts is removed, see pip
documentation:
https://pip.pypa.io/en/stable/cli/pip_install/#installation-order

Change-Id: I99a2d30149088d3d71d56351d180e665c38686ef
2024-02-09 09:58:16 +00:00
elajkat fef2d9ee78 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: I069f590d873ea7a0e689936664c07843c2706fd5
2024-02-06 11:46:56 +01:00
elajkat 3fe92291f2 Update python classifier with py3.10 & py3.11 in setup.cfg
Change-Id: I6b9cc03d902e36f51b31ad2e39ae13a7acbb1b62
2024-01-11 13:22:37 +01:00
Takashi Kajinami 75228edb41 Remove usage of LBaaS constants
This removed usage of LBaaS constants from unit tests. LBaaS was
retired some time ago and these constants will be removed.

Change-Id: I2951c866cdfbd88bcba9fb8d299f592cd6a44dff
2023-11-30 11:01:52 +09:00
elajkat 9c6df04c78 py311: Add py311 job and sqlalchemy-main job to weekly
As an extra rename dsvm-fullstack to dsvm-fullstack-gate

Change-Id: Ib9627a46f95dec0727ccba1d819b84f6ef00041a
2023-10-13 16:44:24 +00:00
Rodolfo Alonso Hernandez cfa0b34476 [sqlalchemy-20] Replace the context writer/reader
This patch replaces the old DB contexts and removes the subtransactions.

Change-Id: I9ac48eeba9f7d5d01153edb4b2f3341008ac2e01
2023-10-16 09:17:29 +00:00
Rodolfo Alonso Hernandez a4284e4ee6 Remove the "sitepackages" in the extra arguments
This option is not needed since [1], Also set
tempest_plugins var to setup neutron-tempest-plugin
in tempest venv.

[1] https://review.opendev.org/c/openstack/devstack/+/558930

Change-Id: I595f81ac10443b6484b8b0bc0a12b5b58e75044f
2023-10-16 11:17:56 +05:30
OpenStack Release Bot 960530916d 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: I5f7c8b7b019852558289e94dd18d4867b033b3cb
2023-09-15 13:55:02 +00:00
Zuul 3fcf1b8246 Merge "Firewall group associated with ports is not allowed to be deleted" 2023-09-12 14:20:58 +00:00
Xing Zhang 193d1e2766
Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py38 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I009b6e65424ba3b662949baa1226fbf0ff14af80
2023-06-27 11:15:24 +08:00
Zuul a3efd32a86 Merge "[alembic] Alembic operations require keywords only arguments" 2023-06-02 18:49:44 +00:00
Zuul 768937b0d7 Merge "Remove Exception Definition in fwaas_v2 Extension" 2023-06-01 11:07:08 +00:00
Zuul 52539bc578 Merge "notify the plugin only on status updated" 2023-06-01 11:05:00 +00:00
Rodolfo Alonso Hernandez 925b31f6fc [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: Iedf9a47a80a2775f73e7873ce3e55c4152d0f564
2023-06-01 10:05:56 +00:00
zhouhenglc 72ad4f96db notify the plugin only on status updated
If the status of the firewall group is consistent with the status
to be updated, there is no need to notify the plugin to update the
status.
The processing of the agent requires a certain amount of time. If
firewall group is updated during this period, updating the firewall
group status at this time may cause the firewall group to be in an
incorrect state.

Partial-Bug: #2021457

Change-Id: I316827259367d78d7dbb57888ad41408d44c43f6
2023-05-29 16:14:15 +08:00
zhouhenglc 5b56eaf3b0 Firewall group associated with ports is not allowed to be deleted
Currently, we determine that the firewall group is in use based on
its ACTIVE status. But the firewall group may have just updated
the port and is currently PENDING_UPDATE status, deletion should
not be allowed at this time.
This patch changes the judgment method for deleting firewall
groups, no longer based on their status. But like other neutron
resources, based on whether or not they are associated.

Closes-Bug: #2018967
Depends-On: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/883826

Change-Id: Ib7ab0daf9f6de45125ffc9408f865fc0964ff339
2023-05-29 16:04:32 +08:00
zhouhenglc 85c2966903 Remove Exception Definition in fwaas_v2 Extension
These exception definitions are already in neutral-lib.
And it has already been directly referenced in neutron lib
in the code.

Change-Id: I9f0d5efc3d86bdab97a188ea880780b19e2a7e43
2023-05-26 10:47:06 +08:00
liushy 3b4e1bdda1 Support standard_attrs for fwaas resources
Now, this patch will support standard_attrs for
firewall_group/firewall_rule/firewall_policy.

Closes-Bug: #1986906
Change-Id: Ib7b06d604a0950a104215bcf4386e14b77d20d12
2023-05-24 16:24:14 +00:00
Rodolfo Alonso Hernandez e479c1a1d6 Fix issues due to recent RBAC changes
Neutron recently merged a commit enabling secure rbacs by default
[1], breaking several unit tests of networking-fwaas.
This patch changes the necessary test calls to be admin and
requires neutron >= 23.0.0.0b2.

[1]670cc383e0

Related-Bug: #2019097
Change-Id: I60ad379f9fc94919581f461fd6a731cfe4baba30
2023-05-23 05:37:56 +02:00
Nurmatov Mamatisa 70d3174f8c Use neutron-lib policy rules
Change-Id: Iac29a8dd4888eaaf5ff833d840953a5b92bd56e8
2023-03-09 11:38:53 +03:00
OpenStack Release Bot bc64e84851 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: I63a4a2131a6d569a120346dc20e8a413cdae93f4
2023-03-01 09:33:31 +00:00
Zuul 230e9bf38c Merge "Use upper-constraints in docs job" 2023-02-28 00:25:47 +00:00
elajkat 9aef6c4e03 [sqlalchemy-20] The Connection.connect() method is considered legacy
Change-Id: I5eaf60426e10c15ac16800ce1962d6690ff80f92
Related-Bug: #2008227
2023-02-24 17:02:17 +01:00
Zuul c5882990f6 Merge "Make tempest-multinode job voting" 2023-02-17 02:25:52 +00:00
yatinkarel f23379938e Use upper-constraints in docs job
Since we use usedevelop=True, as a result neutron-fwaas
installation happens at 'develop-inst' phase and it installs
requirements from requirements.txt without considering
tox constraints, This can lead to issue where broken
requirements are installed in docs job and as a result
it will fail.

In order to get constraints be considered for this case, add
requirements.txt to deps for docs env(same as [1]).

[1 https://review.opendev.org/q/Ic8f6472fe708d12f8fc129729465367083e1095a

Change-Id: Iea9556f6f025ad2f3dfa38fd401aa64414bd561f
2023-02-16 13:51:11 +05:30
Zuul a88c4922c9 Merge "Add CONTEXT_WRITER to _get_default_fwg_id" 2023-02-16 00:41:02 +00:00
Zuul e18ff58141 Merge "Remove the convert_to functionality" 2023-02-15 12:07:11 +00:00
elajkat 054275813e Add CONTEXT_WRITER to _get_default_fwg_id
Change-Id: I8cc90dc564e9d4fb5637216619ea972bf9a4c417
Closes-Bug: #2006683
2023-02-15 11:52:41 +01:00
zhouhenglc 9ea7f54163 Make tempest-multinode job voting
Change-Id: I7a7f644ddea3794290b27a99419a470a0af0be73
2023-02-15 09:58:05 +08:00
elajkat fc5531e978 Add get_firewall_groups_count method
In some logs before other SqlAlchemy tracebacks the missing of
this method is reported.

Change-Id: I36b2083ab3432080857d8ce97ea96f9b5acc87fe
Related-Bug: #2006683
2023-02-10 15:49:30 +01:00
elajkat a68f489163 CI: add neutron and neutron-lib to docs required-projects
Change-Id: Ic88902271fa84c8e8f73d5b34808a0ac43a45200
2023-02-10 15:49:30 +01:00
elajkat e7518f6fcf tox4: Add ignore_basepython_conflict = True to tox.ini
With latest tox (>4.0.15) python version conflicted with base
python. Adding ignore_basepython_conflict = True solves this
issue.

Change-Id: I4711cdb1741c0348bc81049be53a5480945e7e12
2023-01-09 11:15:36 +01:00
sunxifa e5b3ca7924 Fix tox.ini with tox4
skipsdist setting breaks the docs environment

Change-Id: I191efbec1240ebadee2f030ea45fe09d03fde99e
2022-12-24 05:52:05 +01:00
Sławek Kapłoński 9326c70da5 Remove note about migration from lib/neutron-legacy to lib/neutron
In [1] we finally got rid of the unfinished lib/neutron module and kept
only lib/neutron-legacy. It's renamed to lib/neutron now and it's the
only neutron related module in Devstack.
So this patch removes left over todo comments about things to do when
migration to the new lib/neutron module will be finished.

[1] https://review.opendev.org/c/openstack/devstack/+/865014

Change-Id: I7913f4b0426624c1486efd027d6c412dfa296a06
2022-12-20 11:13:55 +01:00
Zuul d248ef3694 Merge "Remove reference to 'all-plugin' tox environment" 2022-10-24 08:51:19 +00:00
elajkat 11f6ca6cb0 CI: Add openstack-tox-py39-with-oslo-master to periodic weekly queue
Change-Id: I15c110ff549c33258f3bb53f6634fd8d5aa908da
2022-10-20 14:07:04 +02:00
Lukáš Piwowarski c94a4fb3b4 Remove reference to 'all-plugin' tox environment
The 'all-plugin' tox environment was deprecated by this patch [1].
Instead of the 'all-plugin' it is recommended to use the 'all' tox
environment.

[1] https://review.opendev.org/c/openstack/tempest/+/543974

Change-Id: I8981592bf8c4e812c72b446e9d9fdeaaaa8c4537
2022-10-07 16:04:57 +02:00
OpenStack Release Bot a343e4f56f 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: I7847ca8d6760745ae6fc85748de7248fb3e05c52
2022-09-14 13:43:45 +00:00
OpenStack Release Bot e629c35656 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: I37f7771e52e7f6d624bedca57b8c5186bf6be0cb
2022-09-14 13:43:44 +00:00
elajkat 553e6b6411 Adopt to latest VlanManager and oslo.db changes
The work for making routed networks work with multiple segments per
host, introduced new signature for VlanManager.get, requesting
segmentation_id, make neutron-fwaas code compatible with it.

With oslo.db 12.1.0 some unit tests started to fail, with using the
CONTEXT_R/W session we can fix it.

Adopt dsvm-functional target name as [0] changed in Neutron, so the new
name of the target is dsvm-functional-gate.

[0]: https://review.opendev.org/c/openstack/neutron/+/856262

Change-Id: Ie7459974f6f2358c8d9c37e66aa9cda530ecefc0
Related-Bug: #1956435
Related-Bug: #1764738
2022-09-09 17:10:00 +02:00
Zuul 965ac6bcdb Merge "Use ovs constants from neutron-lib" 2022-08-09 11:12:07 +00:00
Zuul a1c6c7c1c6 Merge "Cleanup py27 support" 2022-08-09 10:02:37 +00:00
Zuul 6fe8024fb6 Merge "Bump pyroute2 version to 0.7.2" 2022-08-09 05:58:53 +00:00
yatinkarel 8233224338 Use ovs constants from neutron-lib
ovs constants are being dropped from neutron repo[1] as
those are available in neutron-lib since 2.19.0.
This patch updates minimum required version of neutron-lib
and switch to use ovs_constants from neutron-lib.

[1] https://review.opendev.org/c/openstack/neutron/+/797121
[2] https://review.opendev.org/c/openstack/neutron-lib/+/822131

Change-Id: Ida899e6fc709d3a946934e3ad5e20499380189de
2022-08-09 11:20:03 +05:30
Zuul 1a73c60ea6 Merge "Add libczmq4 to bindep for testing on jammy" 2022-07-29 11:06:56 +00:00
zhouhenglc c70dcb965d Bump pyroute2 version to 0.7.2
pyroute2 version 0.6.x instead of one monolithic package pyroute2
is broken down into several, minimizing requirements of each
package[1]. but verion 0.7.x goes back to one monolithic package.
Avoid using version 0.6.x, bump pyroute2 version >=0.7.2(version
0.7.1 contains bugs[2]).

[1] https://github.com/svinota/pyroute2/discussions/786
[2] https://review.opendev.org/c/openstack/requirements/+/850295

Change-Id: I3149804aacf013292bd6e6559bb1e8ceb2d7a6f2
2022-07-29 08:27:23 +08:00
elajkat eed9348789 Add weekly jobs
Add jobs to the weekly periodic pipeline (see [1]).
Current jobs to be run weekly: openstack-tox-py39,
neutron-fwaas-functional and neutron-tempest-plugin-fwaas.

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

Change-Id: I28c707d1a0c633563dab1de8a69c823f6d445bc1
2022-07-28 14:59:44 +02:00
elajkat e1e496d337 Add libczmq4 to bindep for testing on jammy
py310 job is failing for fwaas on jammy, adding libczmq4 to bindep can
solve the issue.

Change-Id: Ie23b9dee179d11cee34f892b9eb86be36d71aab0
2022-07-28 14:51:15 +02:00