Commit Graph

65 Commits

Author SHA1 Message Date
Boden R 9c2e55cf8e
use object common_types from neutron-lib
Switch over to neutron-lib for OVO common_types.

Also update lower constraints and requirements to pass gates

Depends-On: https://review.opendev.org/#/c/664646/
Change-Id: I8d3175f95f567a4ca4ae9d06de09a57ea4656b6a
2019-12-03 18:08:24 +01:00
Sara Nierodzik 8a18025b1e Update README.rst
This patch includes an updated README version.

Changes include:
 - update of description paragraph
 - addition of feature
 - addition of background on the subject column

Change-Id: Id95c90e63dc74aeaba4d4d6b59dd79646020cad1
2019-08-13 09:31:02 +00:00
Sara Nierodzik 1603f200d7
Functional Job fix
This patch includes various changes in order to get the functional
job gate for the neutron-classifier to work as expected.

Previous patch includes changes made to openstack tox py36 and py37
jobs. Link to merged patch: https://review.opendev.org/#/c/672725/
Due to the dependency on neutron-lib the patch had to remove
the failing functional job from the gate in order to get merged.

Changes Include:
 - removes files that were used by the Zuul v2 functional test
and are not needed anymore.
 - adds dsvm-functional tox.ini changes as carried out by
 https://review.opendev.org/#/c/674336/ patch.
- remove unneeded extra job variables, the defaults are just fine
  and include these settings
- make test_path overridable in .stestr.conf
- make job voting

Change-Id: I180ac6df807864a4fd2b129ab525c7e78bca67c0
Co-Authored-By: Andreas Jaeger <aj@suse.com>
2019-08-08 15:21:56 +02:00
Andreas Jaeger 8ea676b562 Replace constraints job with global template
The template openstack-lower-constraints-jobs-neutron does exactly what
the neutron-classifier-lower-constraints job does, so use the global
template.

Change-Id: Ic23bd6fd3ce60681a71502754b4cee80d52e0f33
2019-08-02 16:28:10 +02:00
Zuul e0f030ea00 Merge ".Zuul.yaml update for Neutron Classifier" 2019-08-02 13:43:14 +00:00
Sara Nierodzik abda8f1064 .Zuul.yaml update for Neutron Classifier
This patch updates the neutron classifier zuul yaml file.
Part of neutron-sibling setup. [1] Changes based on x/vmware-nsx
project. [2]
Changes include:
- Removes dsvm from functional job.
- Removes devstack and devstack-gate from required-projects.
- Adds glance, placement and nova to required projects
- Makes neutron-classifier-functional-dsvm non-voting.
- Changes the openstack-python3-train-jobs to project template
with neutron.
- Moves the tox_install_siblings to under "vars:" in .zuul.yaml

[1] https://etherpad.openstack.org/p/neutron-sibling-setup
[2] https://review.opendev.org/#/c/670134/

Change-Id: I031d7bef6587f0392a0416c0a29dc8caf72e98bd
Co-Authored-By: Boden R <bodenv@gmail.com>
2019-08-01 15:30:23 +00:00
Zuul 951de0d277 Merge "fix gitreview file" 2019-07-25 12:52:58 +00:00
Boden R 09b3f77953 fix gitreview file
The current .gitreview file incorrectly points to the openstack
namespace for neutron-classifier, but it should be in the 'x'
namespace. This patch fixes the issue and also it updates the host
for opendev.

Change-Id: I8bcb94e232c3bb721be9e8d8a8aeb0ef26fca5cf
2019-07-24 14:43:48 -06:00
Boden R 7e3ae0075a Update Neutron Classifier for Zuulv3
This patch updates the testing of the neutron classifier
repository to be zuulv3 compliant. Changes include:
 - Added lower-constraints.txt file.
 - Added clarifying comments to requirements.txt including
   neutron-lib-current update.
 - Removed playbooks/legacy yaml files.
 - Modified coverage package version.
 - Added to testenv, testenv:dev in tox.ini

 This patch is part of the neutron-sibling-setup
 as documented in [1]. Changes were also based on zuulv3
 opencontrail patch [2] as well as updates made to
 x/vmware-nsx project.[3]

[1] https://etherpad.openstack.org/p/neutron-sibling-setup
[2] https://review.opendev.org/#/c/624782/
[3] https://review.opendev.org/#/c/670134/

Change-Id: I46ac45d97a5af24ae234f11952d6883cd3088ff7
2019-07-18 11:02:21 -06:00
Zuul 103c2022ca Merge "Neutron Classifier bug fixes" 2019-07-08 16:51:01 +00:00
Sara Nierodzik 30906ec3ff Neutron Classifier bug fixes
Changes include:
 -Replace openstack.org link with opendev.org
 -Delete pylint
 -Change way of adding neutron in the requirements.
 -Replace common_db_mixin with 'object'. [Reference:] 957eca96f4
 -Update Sphinx requirement version

Change-Id: Ie4eaa32819e04ec8c486e71430b29912e06fab29
Signed-off-by: Sara Nierodzik <sara.nierodzik@intel.com>
2019-07-05 15:51:46 +00:00
OpenDev Sysadmins 6bfe199bde OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:14 +00:00
zhulingjie e1fd1b0d6e Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8,
the old version of hacking won't work with Python 3.8

Change-Id: I266ec8d7428f896c4dd51892f374b7ba3df1b237
2019-04-09 17:18:03 +08:00
Zuul 6d4e321ad5 Merge "Add python 3.6 unit test job" 2019-04-08 13:42:57 +00:00
98k 4b56ba9525 Add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I5fa0535ba31933233998cafeccabca9077e44cb3
2019-04-06 05:39:20 +00:00
Ian Wienand b441e74a9c Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I41d32ea87e77b5181e266f56b083c74df275d2fe
2019-03-24 20:34:37 +00:00
Zuul a0446759a8 Merge "Updates to Openstack CLI to reflect Database." 2019-01-30 10:25:27 +00:00
David Shaughnessy 30b9277229 Updates to Openstack CLI to reflect Database.
Updates to Openstack Client to reflect current
state of Neutron Classiifier classifications
and comply with pep8 standards. Tests included but incomplete
until further changes to core code takes place.

Change-Id: I33165dcf3519912cdbb975366cdc5324d91f3fd7
Co-Authored-By: Nakul Dahiwade <nakul.dahiwade@intel.com>
2019-01-29 19:08:36 +00:00
Vieri f04ab613ab Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I4d872465ab389bd433a6c7ac182605d559021b47
2018-12-04 18:03:48 +00:00
Zuul 71446c348b Merge "Removed older version of python added 3.5" 2018-11-05 16:42:06 +00:00
98k e1b8b7b922 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I12da130a87f9dd6688ce21812e4c628ad4f0ae0e
2018-10-09 21:22:32 +00:00
qingszhao 6f59f9eec0 Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added
In tox.ini the python 3.5 is added

Change-Id: Ibe5a2e3db791d87cfa3546f9e7b22876c67bf52a
2018-09-29 17:24:01 +08:00
Thaynara Silva 133d5be638 Version 0 Patch
- All classification types expressed in a single
   resource.
 - Classifications can be grouped inside classification
   groups resource which can be consumed by other
   neutron resources.
 - A list of supported classifications exists through
   classification type list resource.
 - Switch to stestr

Change-Id: I05acaf6419c294692ff270ad4a488a5e68749d67
Co-Authored-By: David Shaughnessy <david.shaughnessy@intel.com>
Co-Authored-By: Nakul Dahiwade <nakul.dahiwade@intel.com>
2018-08-21 17:37:40 +00:00
Thaynara Silva 28f020f592 Add Database Models and OVOs for classifications
- Introducing database models and oslo versioned objects for
   classification resources used by the common classification
   framework service plugin.
 - Add playbooks, post_test_hook, gate_hook,
   modify requirements, .zuul.yaml for gate.
   Add migration test, fix models and migration scripts.
 - Change ClassificationType decorator to NeutronObjectRegistry,
   add get_objects method.
   Remove ClassificationType from object version test,
   Add get_bound_tenant_ids to ClassificationGroups
   Add openstack-python35-jobs-neutron to zuul.
Change-Id: I41d5b399352b47d74000596e6518e199d36709a7
Co-Authored-By: David Shaughnessy <david.shaughnessy@intel.com>
Co-Authored-By: Nakul Dahiwade <nakul.dahiwade@intel.com>
Co-Authored-By: John Hinman <john.hinman@intel.com>
2018-06-07 21:10:29 +00:00
Andreas Jaeger c9eb004689
Avoid tools/tox_install
We do not need to install neutron anymore, this repo only uses
neutron-lib.

Remove tools/tox_install.sh and adjust tox.ini for using it.

Change-Id: I3a91fc221f2103a66f20ff2387974c88f8bd8a23
2018-03-12 11:10:07 +01:00
Zuul d215248cb5 Merge "Devstack plugin to perform Database migrations." 2018-01-31 17:44:30 +00:00
Deirdre O'Connor cf533d1c4b Devstack plugin to perform Database migrations.
Small devstack plugin to ensure Database migration is performed during
stacking.

Change-Id: Ic4931a25248c63701ee3c4d3dcf3aca6ce5710e4
2018-01-31 14:55:13 +00:00
James E. Blair 9b9beed610 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: Ifabca1c7f682bcaba3964b728c6ed18bad0571ff
2018-01-28 05:22:09 -08:00
shangxiaobj e88886c05c Replace the old or invalid http doc links
Replace the old or invalid http doc links with the lastest ones
according to the official OpenStack website.

Change-Id: I4a0f7d8a06dce7ada20cb84aa335a5b30c61ca2f
2018-01-19 10:18:17 +00:00
david shaughnessy 61b187d768 Functional Tests and Gate stub
- Adds modifications to tox.ini to enable functional testing
- adds the functional sub directory to the tests folder
- adds .zuul file to enable the Gate to start functional testing.

Change-Id: Id40c0feba1741328027bd285e10aa8899b4a12b9
2018-01-09 16:59:10 +00:00
Thaynara Silva d73e2bafa4 Add Database Migrations Classifications
- Introducing database migrations for the neutron common
   classification framework.

Change-Id: Iceca7c10aaec7a8566d994ed1acd057818e54d5d
Co-Authored-By: David Shaughnessy <david.shaughnessy@intel.com>
2017-10-13 14:07:31 +00:00
Igor Duarte Cardoso cf18edfa63 Add tox wrapper to fetch neutron
This is a clone of networking-sfc's tools/tox_install.sh
that allows the optimal version of neutron to be installed
when running tox.

Related commit: 10cecb9837d5f8563b5a2f0de6d1081cbde05bdb

Change-Id: I28230acb499c8aa04033fa552da660ec80c4fd03
2017-08-15 15:05:39 +00:00
Igor Duarte Cardoso b945ada11f Update the neutron-classifier repo
This is essentially a maintenance patch to make the neutron-classifier
repo pass the gate again, and add a few bits and pieces before the
Common Classification Framework starts to be applied.

Change-Id: I6f075363aeb06820c3ba3262454c5820b1c16bef
2017-07-04 14:06:19 +00:00
Henry Gessau 6a48760faf Enable DeprecationWarning in test environments
Many deprecations are triggered early (on imports, for example)
before the warnings are enabled by the WarningsFixture in the
base test class.

To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.

Change-Id: I5084e0ee77f9d84c3110974343b823cb5c78d98f
2016-08-09 20:02:06 -04:00
Ramanjaneya 10b2eb3127 Validation for classification attributes
This patch validate classification attributes for
security-group and firewall rules create.

Co-Authored-By: Mohankumar <mohankumar.n@huawei.com>
Change-Id: Iad3bb9792dbb08d21b5072f6740c2f622f5b706d
2016-04-14 09:42:15 +00:00
Ramanjaneya fb482eb6d5 Support dependent changes to import neutron-lib
Make changes for importing neutron-lib to reuse NeutronException
in the patch set https://review.openstack.org/#/c/256355/.

Co-Authored-By: Mohankumar <mohankumar.n@huawei.com>
Change-Id: I124646a8f8cd190272a5d4afa3c8a0925bb444e2
2016-01-28 18:12:57 +05:30
Ramanjaneya ce02c2d101 Implement Firewall conversions
This patch implements API's for
* Saving firewall rules in common classifier model.
* Retrieving firewall rule from the common classfier db.

Change-Id: I64ff4ce875fd909d57375d1c601dc61e86c79f40
Co-Authored-By: Mohankumar <mohankumar.n@huawei.com>
2015-12-11 16:38:22 +05:30
Sean M. Collins 7b2c6a7ce6 Create unit tests to test v4 and v6 security group rules
The branch for if classifier_type is model.Ipv4Classifier was
not covered by a unit test, so a typo slipped through. My bad.

Change-Id: Id1ec95d6131226ee8a0055e35f98c24b846499a4
2015-12-11 16:38:22 +05:30
Jenkins 0b0fbc413c Merge "Remove CLASSIFIER_TYPES constant - it was never used" 2015-12-06 09:39:07 +00:00
Sean M. Collins 2413003cfd TransportClassifier - change params to __int__
* For clarity, don't abbreviate destination to dst.

* Add support for source_port_range_max and source_port_range_max kwargs

Change-Id: I2ed3bc273a08fe0ec6529432c2416fff409fd309
2015-12-04 12:04:23 -05:00
Sean M. Collins 4216d79ef1 Revert "Only call create_all once"
Since this database is in memory there seems to be an interaction with
tox and how it sets up and runs tests. So let's just create it each time

This reverts commit b32284e787.

Change-Id: I56be0354eae2028f50efe6d5e8034dcdb1766b54
2015-12-04 12:00:28 -05:00
Sean M. Collins 4d7daaa32e Implement ClassifierGroup and Security Group conversions
* The Security Group Rule ethertype only has two values: 4 or 6, but the
  actual Ethernet protocol specifies Ethertype as a two-octet field. So
  lets fix it up and handle the conversion.

* Create a DirectionClassifier that can store INGRESS, EGRESS
  and BIDIRECTIONAL directives

* Add get_classifier_group API method to query the DB for a
  ClassifierGroup

Change-Id: Ib7d5d83b0c06ad326d100d55a506262dbfc520b3
2015-12-03 12:28:18 -05:00
Sean M. Collins ae689c9de6 Remove CLASSIFIER_TYPES constant - it was never used
Change-Id: Ia6ba4453f6bc9b9de0da1e83d2dc75147fb91882
2015-12-03 10:46:36 -05:00
Jenkins 5663af1ea8 Merge "Fix Ipv4Classifier protocol field declaration" 2015-12-02 18:08:33 +00:00
Jenkins 6f689d6e9c Merge "License header for constants" 2015-12-02 18:08:09 +00:00
Sean M. Collins 137cd5f9b6 Fix Ipv4Classifier protocol field declaration
Change-Id: Ica659e9b61328dc2838db4d7367efd75b21521e4
2015-12-02 12:43:15 -05:00
Sean M. Collins c2f27c7775 License header for constants
Change-Id: I85d04c395ef1e89ba59d6328bc625f53675e12cb
2015-12-02 12:41:56 -05:00
Sean M. Collins 4e8772668f Fix up ethertype and next_header declarations
Change-Id: I7ce9948e40bf9bbf2830d4e4d7a14f0e8e2a69ca
2015-12-02 11:25:43 -05:00
Sean M. Collins 5812ab6217 Reorder model classes to be alphabetical
Change-Id: Ide16dd1c71d228b8a0c2bbad35bcf2404fc1ff6b
2015-12-02 10:35:34 -05:00
Jenkins ae69881d4c Merge "Docs: Classifier example for a Security Group Rule" 2015-12-01 18:32:19 +00:00