Commit Graph

70 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 924e290af9 Define constraints file for docs and renos
Right now we are not using any constraints for docs and releasenotes builds.
This has resulted in docs job failures once Sphinx 7.2.0 has been released.

The patch will ensure that constraints are used an we should not face
simmilar issue again.

TOX_CONSTRAINTS_FILE is updated by Release bot once new branch is created,
so it should always track relevant constraints.

Some extra syntax-related changes can apply, since patch is being passed
through ConfigParser, that does not preserve comments and align indenting.


Change-Id: I877b57ba117a820be7ca05d01037069295099f06
2023-08-17 16:32:23 +02:00
Jonathan Rosser 4d1889a233 Remove support for calico ml2 driver.
Change-Id: I25e28c678f69a1b2f067e6ce87f1b3134e6470d2
2022-12-06 12:28:17 +00:00
Marc Gariepy 15ead2f6d0 Cleanup setup.py config
Change-Id: I3042c925fe3f1cd907dd9f9aadd4ccde714c5b63
2022-03-31 10:40:14 -04:00
likui ffb4a81461 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: I21e5c3a33241c1f06148445326b2483de5e79147
2021-07-03 21:20:46 +08:00
James Denton 69845d63a0 Add integrated tests various Neutron deployment scenarios
This patchset implements an integrated test for various deployment
scenarios, both metal and lxc, where applicable. Some test cleanup
has been performed.

The basic server ops tempest test is also included. Expectations are that
the deployed cirros VM will be reachable behind a floating IP internally
for testing purposes (in most cases).

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/778008/
Change-Id: I0bdcdef7938183a82ca249f1c95592aea683cf98
2021-03-03 17:13:13 +00:00
zhoulinhui 27f8e9aa20 Replace deprecated UPPER_CONSTRAINTS_FILE variable
Change-Id: I60d74d15e7090ad6f01dc304e66ce0075f738896
2020-11-10 13:11:59 +08:00
Jay Jahns 18468787b9 Add Initial NSX Integration
Default variables are established to add NSX integration to OSA,
as well as documentation on how to implement the integration.

Change-Id: I9843fedf2463251f7663d4607932f029f86dbda2
2020-08-28 20:21:07 +00:00
gugug 5fb6ef370e Remove the neutron-fwaas since it retired
Depends-On: I561504160e5548c54d1af31821c3366ab34cf0ec
Change-Id: I7c2f011ea36b6ea4f8d1854a87df160034c6dcc6
2020-06-17 13:30:15 +08:00
jacky06 dfdea7cd1e tox: Keeping going with docs
1. Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
2. Remove the unnecessary blank line for tox.ini

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Depends-On: Ie837d376bb1a1d93367369d25140dd8a9d5ac14e
Change-Id: I1acccd7222c8b824d37fe4c753b4f31e8caa5294
2019-12-21 00:48:57 +08:00
Jonathan Rosser a26cf01fb0 Use python3 for functional test tox environments
Depends-On: https://review.opendev.org/697847
Change-Id: Ibbb308c88dbf5d6250c0bf86f9fcf00da8470b1e
2019-12-07 19:52:33 +00:00
Dmitriy Rabotyagov 2f1b789e06 PDF Documentation Build tox target
This patch adds a `pdf-docs` tox target that will build
PDF versions of our docs. As per the Train community goal:

  https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html

Add sphinxcontrib-svg2pdfconverter to doc/requirements.txt
to convert our SVGs.

Change-Id: I3435e2ec962b8cc06d520cd818adc3bb9c7173ea
Story: 2006105
2019-10-18 18:52:31 +03:00
pengyuesheng 77b56d1aad Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: If7fb18ce2f0264598c6ae6d1df5f82cb86d33a70
2019-09-23 16:04:57 +08:00
melissaml f7d5690c2b Replace git.openstack.org URLs with opendev.org URLs
Depends-On: https://review.opendev.org/676996
Change-Id: I94f1a1d0d87d6d23e33ea82bbab7f3ec2a0668d3
2019-08-16 21:05:52 +00:00
James Denton 41bd86b7bd Enable functional deployment of FWaaS v2
This patch updates various vars and templates to enable a functioning
deployment of FWaaS v2 on an Open vSwitch-based OSA cloud. A test is
also included for verification.

Change-Id: Ibfa2cbafd19f6870139c4ea3e9dfc80cf8c574e1
Closes-Bug: #1811070
2019-02-14 11:22:29 -05:00
Manuel Buil 297b15df24 Provide support for ovs-sfc
Currently we could only deploy odl-sfc, this patch provides support for
sfc created through the ovs agent

Change-Id: I41bb95385255cb5b445e1a8a4388ddef509dbad7
Signed-off-by: Manuel Buil <mbuil@suse.com>
2019-01-14 12:05:15 +01:00
Zuul 9d061dd113 Merge "fix tox python3 overrides" 2018-11-22 11:07:37 +00:00
huang.zhiping 254615c41f fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ic0bbba6789598db4531df8a56091f17784c2628a
Closes-Bug:  #1801657
2018-11-08 13:42:56 +00:00
Jesse Pretorius 78bb29230c Remove dragonflow ML2 driver
Dragonflow is no longer maintained as an OpenStack project [1]
and has therefore been removed from OpenStack-Ansible as a
supported ML2 driver for neutron.

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

Change-Id: Ia7042e5dd697611ef4d9148b6f345d5da887b2c5
2018-11-06 12:06:21 +00:00
Zuul 03451da7e8 Merge "fix tox python3 overrides" 2018-09-29 17:44:11 +00:00
Doug Hellmann 7263c6fbb2 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I5b3b1100ce98b5de88cf48f6a76b3e1120faed3b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:44:04 -04:00
huang.zhiping 47ba1fbc00 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs 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

Fix doc8 failures. Move doc8 to pep8 environment following PTI.

Change-Id: I5e236be20940ae6840eff804804b99f42cd6fcb2
Story: #2002586
Task: #24319
2018-09-22 13:23:58 +02:00
Jesse Pretorius 2c847b53cb Clean up role tests
Now that we're using the general templates, we can slim down
the role test definitions. We can also remove tests which are
not being watched, or which are fundamentally broken. With
this we can also remove unused scripts/plays.

We do the following:

1. We remove the 'ssl' job, given that the person working on
   that is no longer doing so, and no-one else has picked up
   the work.
2. We remove the 'upgrade' job, given that it's been broken
   all cycle due to the way the job executes and we need to
   regroup to figure out another way to do it.
3. We promote the jobs which appear to be reliably working.
4. We rename the tox target for 'func_ovs' to 'ovs' and
   'func_ovn' to 'ovn' as the 'fun_' prefix is pointless.
5. We rename the '-nv' jobs to without that suffix, and move
   the non-voting argument to the projects file to make it
   more obvious and easier to change later.

Change-Id: Ic2f8a999cc084da76fade0000d2e6198b025c38a
2018-09-07 18:36:33 +01:00
Zuul 28fe66f1fd Merge "Use the TESTING_BRANCH env var for constraints" 2018-08-22 08:46:39 +00:00
Jesse Pretorius 0ea7baba11 Use the TESTING_BRANCH env var for constraints
The TESTING_BRANCH environment variable is provided by the
run_tests.sh script and is derived from the .gitreview file.

This ensures that once the master branch becomes a stable
branch, the constraints from the stable branch in the
integrated repository will automatically get used once the
.gitreview file is updated.

To ensure that the required environment variables are present
we export them appropriately in run_tests.sh and modify the
tox configuration to pass them into the tox test.

Change-Id: If187e7d76d3b9e918debdf78a189e8bd87a8fb31
Needed-By: https://review.openstack.org/579371
2018-08-16 18:23:26 +01:00
James Denton bc9e068f6c Adds networking-ovn support
This commit provides baseline changes to the os_neutron role
to support Open Virtual Networking (OVN).

Change-Id: I9af0a1d70d3381f1e5e074aaf21b15cfb40a7b60
Implements: networking-ovn support
Partial-Bug: #1782625
2018-08-14 17:37:08 +00:00
Nguyen Hung Phuong bc922c6995 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ifd00a3b9e803a5cf4fa13b6c8abfe48c113aacb8
2018-07-05 16:46:36 +07:00
Heba Naser 5b40083621 Use tests repo for common role test requirements
Using tox for requirements management requires in-repo
requirements files for all our repositories. Rather than
do that, we make use of the tests repo to capture our
common requirements and use this to install them.

This reduces our review requirement rate and simplifies
maintenance for us for the tox config. It also makes it
usable with 'Depends-On', which is marvellous!

The tox requirements definitions for docs/releasenotes
builds are left in-place as those are standard entries
across the community. If that changes at some point, we
can re-assess those entries too.

Depends-On: https://review.openstack.org/579208
Change-Id: I84c8ba7952b15772d9b070dee9ba704cc9de8339
2018-07-02 11:16:02 -04:00
Markos Chandras 43df5ed2ab tox.ini: Use common vars file for distibution installations
Change-Id: I97fd122150b8cb936c4aa97910315839e7f6609c
Implements: blueprint openstack-distribution-packages
2018-06-14 14:53:58 +01:00
Markos Chandras 20b66c9e4f Add support for using distribution packages for OpenStack services
Distributions provide packages for the OpenStack services so we add
support for using these instead of the pip ones.

Change-Id: I5bfcaff1bdc6ce74fb9f4839ecb73bf01d448280
Implements: blueprint openstack-distribution-packages
2018-06-11 13:21:17 +01:00
Jesse Pretorius cdc4f32b79 Remove tests-repo-clone.sh
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.

Change-Id: I42534d5d975f11056ae55fe6313002602adc0513
2018-03-28 10:15:22 +01:00
Jesse Pretorius 914ccd11ff tox.ini: Expose USER environment variable to execution environment
In order to allow the use of the environment variable which informs
Ansible which user executed the playbook, we pass the USER env var
into the environment that tox builds.

Change-Id: Id9ab34138410563f2e5b7339cc7745ad601ecd35
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 18:00:50 +00:00
ZhongShengping d145916539 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ib840b67e7ad3729fe1fd914f0f231c15c31d0c69
2018-03-09 12:01:27 +08:00
Periyasamy Palanisamy ced7cb81e9 add ml2 config for networking bgpvpn
- provides an option to choose ODL BGVPN
- installs networking-bgpvpn driver
- configures neutron to use ODL BGPVPN driver
- add bgpvpn scenario as a non-voting zuul job
- run networking-bgpvpn tempest

Change-Id: I29b3da7d29399708b2edef2328b174434d081259
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-02-12 10:50:27 +01:00
Manuel Buil 5818eafe60 Provide support for SFC deployments
This patch allows to deploy SFC capable deployments when deploying OSA with
ODL. It does the following:

- Installs the neutron networking-sfc project
- Adds SFC to the features which ODL activates
- Incorporates SFC options to neutron.conf

In order to use it, you need to have ODL running and you should add the next
items to the neutron_plugin_base when executing it:

networking_sfc.services.flowclassifier.plugin.FlowClassifierPlugin
networking_sfc.services.sfc.plugin.SfcPlugin

Depends-On: I49c01fb63054e45bae5ae45a89cce986579959de
Change-Id: I6bf2be1aef1bb612640f5d8cc101136f618fabd8
2017-12-20 15:14:57 +01:00
Jimmy McCrory 7dce3277b0 Add MySQL connection SSL support
When 'neutron_galera_use_ssl' is True, use an encrypted connection to
the database using either a self-signed or user-provided CA certificate.

A new non-voting test has been added to verify that the role remains
functional when enabling SSL features.

Change-Id: Id576553bd481ed786ff0ed4948ce79bb74544000
Partial-Bug: 1667789
2017-12-14 09:30:26 -08:00
Dimitrios Markou db404dc4c8 Add OvS-NSH support
To be able to perform SFC through NSH
protocol special Openvswitch packages are needed.

Blueprint: https://review.openstack.org/#/c/476121/

Change-Id: Id0e22067ac5d2a33aa2150dd65ac3fb9ae7c7542
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
2017-12-01 12:17:39 +02:00
Juan Vidal Allende 7dce6e2b07 Add option to deploy OpenDaylight SDN Controller
- This commit adds a new ML2 backend that uses OpenDaylight SDN
 Controller and networking-odl to handle neutron networking.

 - Installation of OpenDaylight uses the official ansible-opendaylight
 Ansible role.

 - It requires OpenvSwitch as traffic forwarder.

 - New test scenario for OpenDaylight

Change-Id: I67083992660a1aca4b6edd5ecf4f28113c0e547f
2017-08-18 09:19:21 +02:00
Jesse Pretorius 621cafa10f Ensure that role tests pin pip/setuptools/wheel
Currently the role tests use whatever versions of pip,
setuptools and wheel are already installed on the host.

When a version of these tools changes it often causes
problems for our testing.

This will ensure that we use a known good set of pins
which is maintained in the general SHA bumping process.

Change-Id: I30f2fc95a59ca30b8f93e0cdfbeedc4ac51a7646
2017-06-04 11:22:06 +01:00
Jesse Pretorius 6dc4ecc354 Use zuul-cloner for tests repo in OpenStack-CI
When executing the tests repo clone in OpenStack-CI,
use zuul-cloner instead of git to enable cross-repo
testing. This ensures that if a dependent patch from
the tests repo is noted using 'Depends-On: <change-id>'
in the commit message, that patch will be included.

Change-Id: If382dd9ddd415ca16f144e23b2aceebb301267f8
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-08 18:38:37 +00:00
Jenkins 9db287a1ba Merge "Update upgrade test to use stable/ocata" 2017-02-09 17:37:26 +00:00
Jean-Philippe Evrard 9eef229c0b Implement Dragonflow deployment
Add a deployment for Dragonflow, when neutron_plugin_type is ml2.dragonflow.

Change-Id: Id5184845d18461c6c37a560cdc0404c8a487c020
Co-Authored-By: Omer Anson <omer.anson@toganetworks.com>
2017-02-09 15:33:57 +00:00
Jesse Pretorius 2c08043db7 Update upgrade test to use stable/ocata
Change-Id: If6249acbba97d38090ca0352ebd0814ab742c554
2017-02-08 14:26:23 +00:00
Cao Xuan Hoang b38033d27b Use https instead of http for git.openstack.org
Trivialfix

Change-Id: Ia4654adfe176445266db78b6cadfa60e95da4d54
2017-02-06 16:32:06 +07:00
Andy McCrae 72f21662a2 Split out neutron upgrade test
The upgrade test causes issues with the regular tests because the module
is evaluated and used from the previous_neutron version. This causes the
module to fail when not running upgrades.

Change-Id: Ifaeb26de5dc9392df4a65f58033b95659998f40d
2017-01-20 15:02:05 +00:00
Andy McCrae 15d00f7e63 Fix tox.ini to work with ansible 2.2.1.0
Ansible 2.2.1.0 requires included vars files to exist even if the
task/play that includes the file is never run (based on a conditional).

This patch fixes that by ensuring the "upgrade" previous version of
test-vars is fetched for every test.

Change-Id: I81ff74782b34090b29dfd49b04e511178ed1914f
2017-01-18 17:37:35 +00:00
Andy McCrae de861315e2 Neutron upgrade testing.
Implement upgrade testing for os_neutron role.

This patch adds an upgrade testenv, which configures a previous version
of Neutron, and the test-vars from the previous stable branch to be used
by the previous version of Neutron.

We don't run functional tests after the initial stable/newton deploy
because a working stable/newton branch is already tested, and it's
assumed it worked if the upgrade works too - which is more
efficient.

This follows the pattern setup for Keystone in:
https://review.openstack.org/#/c/384269/

Change-Id: Id4b2cf8197ca902ab5b3d925175c3d7c698ec802
Implements: blueprint upgrade-testing
2016-12-07 10:55:14 +00:00
gecong1973 c39e7c63c4 Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them.
More details:
     https://github.com/openstack-dev/hacking/blob/master/setup.cfg

Change-Id: Ia73f04cda1770b9a78176cd0fcab1bc62a55dee5
2016-12-04 10:17:40 +08:00
Jesse Pretorius 935539c8c8 Use upper constraints for all tox targets
With the implementation of https://review.openstack.org/388087 all
tox targets may now use upper constraints.

Change-Id: I1e9dfe8e137e8f7c96ec1e048a3a980334c3eef2
2016-10-19 07:43:44 +01:00
Jesse Pretorius 6ab8f43a7a Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: Ia7faf310deabfaea32feb400ca7f8886b5cca7ff
2016-10-05 11:49:29 +00:00
Jesse Pretorius 320d326d33 Remove install_test_packages variable
With https://review.openstack.org/381479 merged, setting this
variable in tox.ini via an extra var is unnecessary.

Change-Id: Iccff155b386617c7f806d0043e88a1a3d51070f2
2016-10-04 11:42:16 +01:00