Commit Graph

173 Commits

Author SHA1 Message Date
Zuul 553b23e9aa Merge "Remove translation sections from setup.cfg" 2024-04-05 23:44:18 +00:00
Takashi Kajinami 8549c88e8c Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can generate
translation files without them.

Change-Id: I7eb99b96ea1e9a1a96e28c53760d9d747670d6e4
2024-01-20 18:52:11 +09: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
sunxifa b4519b3bbb 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: If3a6ae3ae3d8d4e87fcb864ba2edf4d1aba6b25e
2022-06-04 09:59:39 +08:00
Ghanshyam Mann 1b4a84527c 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: Ib04b560408ccf22c86e899e15fbcbe86b53f636e
2022-05-11 22:18:19 -05:00
ZhouHeng a9f26b81e2 revive neutron-fwaas project
This reverts commit caae7b6a6f.

Reason for revert:
Many users still need L3 firewalls and Inspur team wants to maintain
this project.
Neutron drivers team discussed the topic of the maintenance of
neutron-fwaas, and agreed to include neutron-fwaas again to Neutron
stadium[1].

Some updates have been made:
Remove use "autonested_transaction" method, see more [2]
Replace "neutron_lib.callbacks.registry.notify" with "registry.publish"
Replace rootwrap execution with privsep context execution.
Ensure db Models and migration scripts are sync, set table
firewall_group_port_associations_v2's two columns nullable=False

[1] https://meetings.opendev.org/meetings/neutron_drivers/2022/neutron_drivers.2022-01-28-14.00.log.html#l-14
[2] https://review.opendev.org/c/openstack/neutron-lib/+/761728

Change-Id: I14f551c199d9badcf25b9e65c954c012326d27cd
2022-03-01 01:01:47 +00:00
Slawek Kaplonski caae7b6a6f Retire neutron-fwaas project
Governance change is proposed at [1] and project config patch is
proposed at [2]

[1] https://review.opendev.org/735828
[2] https://review.opendev.org/#/c/735812/

Change-Id: I561504160e5548c54d1af31821c3366ab34cf0ec
2020-06-16 12:38:31 +02:00
caoyuan feb290fa19 Drop Python 2 Support
1. It's Ussuri. We can *finally* stop testing Python 2 [1]. Time to party.
We don't attempt any cleanup but simply stop testing with Python 2,
indicate that we only support Python 3 via 'setup.cfg' and remove any
Python 2 only dependencies.

This should free up a significant amount of resources from the gate and
let us start using Python 3 idioms in our code. Win-win.

2. Cleanup basepython from individual testenv sections

3. From this point on the codebase will be incompatible with python2

[1] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html#python2-deprecation-timeline

Change-Id: Ia08c363263aaa406d0bf55e10ce8258695387578
2020-01-22 10:53:44 -05:00
caoyuan f51b475062 setup.cfg: Cleanup
- pbr hasn't need the hook configuration since forever [1]
- Remove the 'wheel' group

[1] c84876dc0f

Change-Id: Ic448d7d0f4fb906a4ded14aadaf119dce7ab43d7
2020-01-03 01:34:41 +00:00
Nate Johnston 77e462428e Complete move of neutron-fwaas tempest tests to tempest plugin
As discussed in the neutron_ci meeting [1] the QA team would like to
move the tempest tests for the stadium projects from their repos to
repos specific to being tempest plugins. This is the second part of a two
stage move, by removing the tempest tests that were copied to the
neutron-tempest-plugin repo [2].

[1] http://eavesdrop.openstack.org/meetings/neutron_ci/2019/neutron_ci.2019-03-12-16.01.log.html#l-94
[2] https://etherpad.openstack.org/p/neutron_stadium_move_to_tempest_plugin_repo

Change-Id: If97f3fd7d105f12b69d41017de2d2ed4192ac223
2019-08-16 08:02:44 +00:00
Corey Bryant 9f990bf566 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

Change-Id: I41a3562284d472408cbcfb7f6c3b1d261ea385b0
Story: #2005924
Task: #34225
2019-07-05 13:52:31 -04:00
Ghanshyam Mann d93801789e Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
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

Change-Id: If1cf1c73bf695ed89c5ec4a2107a722fa9d26d3a
2019-05-22 09:06:45 -06:00
Slawek Kaplonski 4a8687e3f3 Add new upgrade check
This patch adds upgrade check which will test if fwaas v1 service
plugin is still enabled in configuration and will then return error
as this plugin is now removed already.

Depends-On: https://review.openstack.org/637204
Change-Id: Idcb60128295fd26da5adb348b59f51a1c2c227a6
2019-03-15 09:27:26 +00:00
malei 2860abca27 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: Id847dab46ec0cba922d1e13a0c78cef82671764a
2019-03-07 11:35:33 +00:00
Adit Sarfaty e7f2f781ee FWaaS v1->v2 DB migration
FWaaS V1 is expected to be deleted on the Stein cycle.
This patch introduces a new tool the DB migration from FWaaS v1 to FWaaS V2.

Run this tool using: neutron-fwaas-migrate-v1-to-v2 --neutron-db-connection=<neutron database connection string>

Change-Id: I663c173a594137056c96ad4c4b60e810059fb6fa
2019-02-03 08:13:56 +00:00
Nguyen Phuong An 0e968fa0c7 Removing FWaaS v1 source code
As German Eichberger's email at
https://markmail.org/message/2kva4b3lwgddyeau. So This patch intend to
removes source code related FWaaS V1.

Change-Id: I4e440c854e5aa11193d38946e659481f4fefded2
2019-02-02 02:27:14 +09:00
Akihiro Motoki 3288743827 Convert policy.json into policy-in-code
This commit converts the existing neutron-fwaas policy.json
into policy-in-code.

policy.json for testing is also removed. As a result, setup_config()
in neutron_fwaas.tests.base.NeutronDbPluginV2TestCase is no longer
required now (as the content of setup_config() is now same as that
in neutron).

Partially Implements: blueprint neutron-policy-in-code
Change-Id: I67be3a21f19e3f793312d64d358452ee4531c080
2018-12-27 15:31:04 +00:00
Cuong Nguyen 507392be7d [log] FWaaS L3 Logging driver based iptables
This patch implements logging driver in L3 for firewall group
base discussed on the patch [1]

[1] https://review.openstack.org/#/c/509725/

Co-Authored-By: Nguyen Phuong An <AnNP@vn.fujitsu.com>
Co-Authored-By: Kim Bao Long <longkb@vn.fujitsu.com>
Partial-Bug: #1720727
Change-Id: I1194a622c546068991f44559e3f9e343430fd6f9
2018-08-09 17:47:47 +07:00
Nguyen Phuong An 3b1590ff69 FWaaS v2: L3 logging agent extension
This patch introduces L3 logging agent extension for firewall group.
It also configures the extension for devstack when log plugin is
enabled.

Co-Authored-By: Kim Bao Long <longkb@vn.fujitsu.com>
Partial-Bug: #1720727
Change-Id: I4d9af5325f157fbb35ea6fdb25723268856a0db4
2018-08-07 22:27:39 +09:00
Édouard Thuleau 9b353afde4 Implements a plugable backend driver
This patch removes all related DB code from the FWaaS service plugin v2
and creates service driver interfaces that can be used by different
backend drivers.

The default backend driver still based on the Neutron DB model
and agent RPC interface (for l3 and l2 agents) and was moved
to 'service_drivers.agents.agents.FwaasAgentDriver'. It inherits from the
firewall backend driver DB interface
'service_drivers.driver_api.FwaasDriverDB' to maintain the DB. It
is in charge to implement all RPC API and messages.

If we need to implement a backend driver which depends on the Neutron DB
but not on the agent RPC service, we just have to inherit from the DB
interface and if we like to develop a backend driver which not depends
on the Neutron DB model, we can inherit from the base driver interface
'service_driver.driver_api.FwaasDriver'.

That patch only modifies the service plugin 'firewall_v2', it does not
modify the Firewall v1 service plugin.

The backend DB driver provides an interface composed to a pre and post
commit hooks for each FWaaSv2 API actions which permits to the driver to
be warn anytimes. All that commit hooks methods does not do anything by
default and the backend driver needs to overide needed hooks.
The driver does not needs to implements all of them,

Closes-Bug: #1702312
Change-Id: I4ebd24f1b13eb823c4d63452fd37cace5bcf5481
2018-04-26 17:15:46 +02:00
Nguyen Hai e4b6f60b53 Follow the new PTI for document build
- Follow new PTI for docs build
- Add sphinxcontrib.apidoc to replace pbr autodoc

REF:
[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
[3] http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Depends-On: https://review.openstack.org/#/c/559330/
Change-Id: I36051485854bdf88719335f280f5562c3a0dbd4a
2018-04-06 14:34:41 +00:00
Chandan Dutta Chowdhury 3b7093bfe8 OVS based l2 Firewall driver for FWaaS v2
This driver is based on neutron ovsfw driver.
Current implementation forks neutron code from commit
917063a0ce3638dafb80f29da2b0c1f0c4165306

Co-Authored-By: Yushiro FURUKAWA <y.furukawa_2@jp.fujitsu.com>
Co-Authored-By: Inessa Vasilevskaya <ivasilevskaya@mirantis.com>
Co-Authored-By: Nguyen Phuong An <AnNP@vn.fujitsu.com>

Partial-Implements: blueprint fwaas-api-2.0
Change-Id: If89e29bac3bc4167c7caf602fb5e3133cc93255f
2017-11-27 14:15:55 +07:00
Yushiro FURUKAWA dbac4b8922 FWaaS v2 extension for L2 agent
This patch adds L2 agent extension for FWaaS v2 to handle
create/update/delete firewall groups on ports. It also
handles applying firewall group on port, when a port is
added/created/deleted.

DocImpact

Depends-On:  Ifd6758617ab8fd49e69ad1a0483fefa479d7b8e7
Co-Authored-By: Paddu Krishnan <kprad1@yahoo.com>
Co-Authored-By: Chandan Dutta Chowdhury <chandanc@juniper.net>
Co-Authored-By: Nguyen Phuong An <AnNP@vn.fujitsu.com>¬
Co-Authored-By: Inessa Vasilevskaya <ivasilevskaya@mirantis.com>
Partial-Implements: blueprint fwaas-api-2.0
Change-Id: I9f172be46ee590b99313106fa262019a2583774a
2017-11-27 14:15:33 +07:00
Nguyen Phuong An c27a945768 Introduce firewall l2 driver base
This patch introduces firewall l2 driver base class and also
implements noop driver.

Some unit tests added to make sure all methods are there and
a driver class can be loaded.

Change-Id: Ifd6758617ab8fd49e69ad1a0483fefa479d7b8e7
Co-Authored-By: Yushiro FURUKAWA <y.furukawa_2@jp.fujitsu.com>
Co-Authored-By: Inessa Vasilevskaya <ivasilevskaya@mirantis.com>
2017-09-26 21:05:42 +03:00
Jenkins 6333963920 Merge "Fix genconfig in neutron-fwaas" 2017-07-28 08:18:42 +00:00
Akihiro Motoki 004cb8fa3b Update the documentation link for doc migration
Change-Id: Ibe2acaea1a16dc0dbf660acf5e8622dcc690f4f2
2017-07-20 07:15:27 +00:00
Akihiro Motoki ab1d2507b5 Fix genconfig in neutron-fwaas
Previously namespace neutron.fwaas was defined in
etc/oslo-config-generator, but there is no corresponding
definition in the code.
This commit adds appropriate entries.

Change-Id: I8f50ee3f25a52a78792154905d0ecc21974b3287
2017-07-16 17:38:52 +00:00
Akihiro Motoki dbb47f5b8a rearrange content to fit the new standard layout
Change-Id: Iaa7583223650ff4bd0e91995c21497c62a84f334
2017-07-07 10:05:37 +00:00
Akihiro Motoki fe7cd58a5d Enable warning-is-error in doc build
Clean up python build warnings to enable warning-is-error.
Part of doc-migration work

Change-Id: Iee76a112945a3619de41000e5022eaba195b96c0
2017-07-05 04:52:49 +09:00
Cuong Nguyen ec9d37183a ConntrackNetlink driver to delete conntrack entries
This patch proposes ConntrackNetlink driver to delete conntrack
entries.
Using Netlink will save about 90 percent of time that used by conntrack-tools.
For detail information, visit: https://goo.gl/3tm9Fx

Partial-Bug: #1664294
Change-Id: Id9a3b7c3f8fedbd91ced1a5b359dbf568cd26653
Co-Authored-By: Nguyen Phuong An <AnNP@vn.fujitsu.com>
2017-04-17 16:41:54 +07:00
Cuong Nguyen 8f6a1b90af Enable to configure conntrack driver
This patch enables to configure conntrack driver.
Initially, "conntrack-tools" is being used to manage connection,
however, it's costly and down performance[1]. The alternative can be
found here[2] with need to improve reliability and stability.

[1] https://bugs.launchpad.net/neutron/+bug/1630832
[2] https://review.openstack.org/#/c/389654/

Partial-Bug: #1664294
Co-Authored-By: Nguyen Phuong An <AnNP@vn.fujitsu.com>
Change-Id: Id0597f74bef67b85776445e7bc591eb085f55acc
2017-03-31 17:33:50 +07:00
Cao Xuan Hoang 3aeee36bc7 Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: I483587d1a53696ff406cdb59081e1274ff8c5dc0
2017-02-15 13:33:39 +07:00
Reedip 4ba3f5c094 TrivialFix: Added link for modindex
The documentation build does not generate any module index, therefore
modified setup.cfg to create module index.

Change-Id: I140cb219a8524e25a7735e0e0f5f9914afcfb962
2017-01-26 23:58:53 -05:00
Cao Xuan Hoang bdcaef8f42 Fix duplicated python version in classifier
This patch fixes the duplicated python version in classifier

Change-Id: I53ff0068c6c063af6b4b95af0333726ccedba400
2017-01-18 12:47:42 +07:00
Ha Van Tu 27b0fff119 Privsep configuration for neutron-fwaas
This patch adds fwaas-privsep.filters to FWaaS repository to be
easier to maintain. It also helps avoid making Neutron be inversely
depended on FWaaS when perform privsep configuration as in
https://review.openstack.org/#/c/392014/.

Change-Id: I71308130fbcc861a167371339c89a47410b8d09a
2017-01-04 18:10:47 +07:00
Cao Xuan Hoang 4fe93bbbf4 Changed the home-page link
Set the correct url link for home-page

Change-Id: I68da3089fb4ef88ff0873529835dbdf03d866354
2016-12-09 10:02:31 +07:00
Tony Xu fa1db21075 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim
support for Python 3.5 in the classifier.
This patch also adds the convenience py35 venv.

Change-Id: I58187d7e1e8a2d2118ac5f824a7f67c88c9103da
2016-10-25 22:52:11 +08:00
Margaret Frances 6718fd8560 FWaaS v2 utilize L3 Agent Extension framework
This updates the FWaaS v2 L3 code to move away from an inheritance-based
model and use the new L3 agent extension framework.

This change rolls back [1] which is the inheritance-based model.

[1] https://review.openstack.org/315826

Partial-Implements: blueprint fwaas-api-2.0
Co-Authored-By: Nate Johnston <nate_johnston@cable.comcast.com>
Co-Authored-By: Chandan Dutta Chowdhury <chandanc@juniper.net>
Depends-On: I85f89accbeefd820130335674fd56cb54f1449de

Change-Id: Ib29b96e73d09530cbf627a98180fb1a591e42e3f
2016-09-01 17:34:08 +00:00
Nate Johnston 91a2f22f3b Add FWaaS v1 and v2 entrypoints to setup.cfg
This migrates the FWaaS entrypoints from neutron's setup.cfg file to the
FWaaS one.  See [1] for the removal from neutron's setup/cfg.

[1] https://review.openstack.org/361774

Depends-On: I94b224813c85b7e611e9681323a2f0d2806e0d41
Change-Id: I6eb3a39bf2cfb8b11b692f4dcaea6c0144b4c782
2016-08-30 10:33:34 +00:00
Sridar Kandaswamy ca7c5c2b72 Remove vendor driver: vArmour from community repo
Vendor drivers are being removed from the community repo and
they can continue to be hosted in respective vendor repos. This
has been discussed and communicated during the Mitaka release
and time given until the Newton release.

Change-Id: Id60a2cdb225a2acfa28efcf54f5bcae8cf9cf55a
2016-08-25 21:40:31 -07:00
Jenkins 01d243f9b5 Merge "Add python 3 classifiers" 2016-06-28 15:40:06 +00:00
Sirushti Murugesan a7b5abca6e Add python 3 classifiers
This will allow devstack to install neutron-fwaas w/ Python 3

Change-Id: I8192142369600c31d85f8189ff44565c06d17244
2016-06-24 14:11:39 +05:30
Kyle Mestery b26f9f46af Add entrypoints for iptables and varmor drivers
Change-Id: I816df2e3c86d933587e7e69259466470e38ad430
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2016-06-23 18:30:50 +00:00
Armando Migliaccio debc359559 Fix broken tempest tests
This is step two to recover from Tempest failures. Fork is
deplorable, but this is a temporary fix until the extension
framework for L3 is put in place.

The fix is predicated on the fact that we can get to override
the l3 agent entry point reliably; alternatively the Tempest
job must explicitly call a 'new' forked L3 agent as stop-gap.

Change-Id: I8ec7a9361d42525bd2f7c2c634c89d6aabc95c3f
2016-05-12 20:41:04 -07:00
Akihiro Motoki a398e1f33a Update translation setup
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.

This basically renames
neutron-fwaas/locale/neutron-fwaas.pot to
neutron_fwaas/locale/neutron_fwaas.pot. For this we need to update
setup.cfg.

Prepare _i18n.py to have proper domain name.

The project has no translations currently, let's remove the outdated
pot file, the updated scripts work without them. So, we can just
delete the file and once there are translations, an updated pot file
together with translations can be imported automatically.

Change-Id: I836f7a11943a3d76fb0a119b401ead112680d7a7
2016-01-29 07:09:03 +09:00
Martin Hickey 6713d0ac33 Remove Neutron FWaaS static example configuration files
Oslo config generator was introduced in patch [1] to
automatically generate the sample Neutron FWaaS configuration
files.

This patch removes the static example configuration files from
the repository as they are now redundant.

[1] https://review.openstack.org/#/c/251974/

DocImpact: Update the docs that FWaaS no longer includes static example
configuration files. Instead, use tools/generate_config_file_samples.sh
to generate them and the files generated now end with .sample extension.

Change-Id: I31be3295606ba25929e9af9f40a035ff2b615234
Partially-Implements: blueprint autogen-neutron-conf-file
Partial-bug: #1199963
Depends-On: Ic8208850a27408c8fbeed80ecdb43345aa7dfaa4
2015-12-08 20:02:33 +00:00
Martin Hickey 93883c17db Automatically generate neutron FWaaS configuration files
This adds a new tox environment, genconfig, which generates sample
neutron FWaaS configuration file using oslo-config-generator.

Partially-Implements: blueprint autogen-neutron-conf-file

Change-Id: I8e9113dfb88e5290f6eedd012d1a52fc35c3c88c
Partial-bug: #1199963
2015-12-07 10:50:11 +00:00
Kyle Mestery ac755ea6dd Remove version from setup.cfg
Per email from the release team [1], we are moving to using only
tags and removing verisons from setup.cfg.

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-November/080692.html

Change-Id: I51afc4900877e2eae975b60bc5312430cbc8c429
Depends-On: I19e888fc403aa2d95b769ed1730721eba29e68ea
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2015-12-01 10:46:15 -06:00
YAMAMOTO Takashi a8bcc8f05a Add tempest scenario tests
Closes-Bug: #1507522
Change-Id: I8f894cd11a789013d5b94c58cdccbf6a6b846112
2015-10-19 19:19:04 +09:00
Kyle Mestery 28315a080e Open Mitaka development
Bump preversion to mark the start of the Mitaka development branch.
The liberty release branch will be cut from the previous commit.

Change-Id: Ib6c5e4bd2a3c00bc10c208f9b6836f4a28be0526
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2015-09-23 17:57:48 +00:00