Commit Graph

117 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 59697ba1c5 Deprecate OpenDaylight support
OpenDaylight support has been deprecated by Neutron team in 2023.2 [1]. We remove support from
our code to address that decision.

[1] 517df91c9e

Change-Id: Iaaf87b6d5400fe88c7edf86995ea9ba891866678
2023-10-05 14:48:53 +00:00
Jonathan Rosser 4d1889a233 Remove support for calico ml2 driver.
Change-Id: I25e28c678f69a1b2f067e6ce87f1b3134e6470d2
2022-12-06 12:28:17 +00:00
Andy McCrae bdd06c8448 Implement uWSGI for neutron-api
As part of the Pike goals we are moving api services to run as WSGI
apps. neutron-server service is set up as a wsgi app, and this patch
moves it over.

Since this is just a drop in replacement for the existing eventlet
service, operators an deployers should notice no difference.

Change-Id: Ia7ebd13be9ce7834679d439b7bda242805768ef8
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/820586
Implements: blueprint goal-deploy-api-in-wsgi
2022-05-27 18:34:38 +00: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
James Denton c3cb8525f4 Test OVS/OVN deployments on CentOS 8
As OVS/OVN overtakes LXB as the preferred network driver, we must
ensure they are deployed properly across supported operating
systems. These tests should ensure OVS-based deployment(s) are
(at least) functional.

Change-Id: I12f442399ab874206a9930877ffbe325ceb902b9
2020-11-18 11:53:54 -06:00
Dmitriy Rabotyagov 4480a53b20 Fix OVN functional test
Define MTU for tempest network that will be created

Change-Id: Ib9a6f138cdc2eea6f55d34ded96f6e51184ec140
2020-11-02 07:29:53 +00:00
Jonathan Rosser 102ed48c0d Remove support for lxc2 config keys
Change-Id: Ibee85b90813696ef9ac41a2f978035fe272234e6
2020-10-06 13:10:39 +00: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
Zuul 991b3369b4 Merge "Remove neutron from tempest_plugins" 2020-05-26 08:12:09 +00:00
Dmitriy Rabotyagov 0cb02aabdb Cleanup after repo_build and pip_install retirement
Change-Id: Ic7fbee352f38d392ee47024c4c7efbb2ae119688
2020-05-25 21:51:32 +00:00
James Denton 08071049f0 Remove neutron from tempest_plugins
Pulling the neutron repo into tempest is unnecessary since tests
are run using the neutron-tempest-plugin or repo-specific plugins.
This patch removes neutron from tempest_plugins.

Change-Id: I6176c17b7261fecbca82452b7d4ad2a2c5cdeeb6
2020-05-22 18:00:19 +00:00
Jonathan Rosser 0246dd456d networking-ovn is now integrated into neutron
This is no longer a standalone repo [1] and the code used before is
now removed causing jobs to fail. Stop trying to install the old
code.

[1] https://review.opendev.org/#/c/715174/

Change-Id: I3814051395e6b99f68dca5a2afc80e7b719a09d9
2020-05-20 20:55:29 +00:00
Dmitriy Rabotyagov ab363fd2e6 Replace git.openstack.org with opendev.org
This patch replaces git.openstack.org with opendev.org as redirection
from old path was enabled.
Also we change upper constraints url due to [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I8d47a48220a3d83f1836f1b96bdd33c8f8c80342
2019-11-14 17:13:09 +02:00
Zuul 2dfb2b9957 Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-09-20 12:03:40 +00: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
Logan V 9f619e3f05 Remove LBaaS v2 plugin
The OVN CentOS 7 job is also set to non-voting due to openvswitch
RDO package installability errors which break the job.

Change-Id: Ib6246d58199a24eecef026e2689a8aa75eb9de74
2019-05-16 23:46:18 +00:00
Zuul f11b91aa89 Merge "Use the new services names for sfc" 2019-02-15 02:57:53 +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 c08e11097a Use the new services names for sfc
Since Rocky, sfc and flow_classifier can be used instead of

-networking_sfc.services.sfc.plugin.SfcPlugin
-networking_sfc.services.sfc.plugin.FlowClassifierPlugin

which looks better

Change-Id: Ie94db64abf6cba1ba76c3c3e9b614b8b0be38d0b
Signed-off-by: Manuel Buil <mbuil@suse.com>
2019-02-14 09:18:22 +00:00
Michael Vollman 93733eb7d6 Disable tempest router ping
Tell tempest to skip attempting to ping the router namespace from
localhost because the router namespace is not accessible from localhost
in the os_neutron test scenarios.

Depends-On: https://review.openstack.org/#/c/636211
Change-Id: I20a19fd614c1d67b19bd7396b8c48e6667668fbd
2019-02-12 10:34:18 -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
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
Jimmy McCrory 24cb41d08f Set container_name as host_var in test inventory
The connection plugin no longer falls back on using the
inventory_hostname as the container_name. Set container_name as a host
var for each container in the test inventory.

Change-Id: I1bf946bd8a9341c9d5030affac5779cbcbe94be6
2018-10-20 15:28:29 -07: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
ZhijunWei 2fe69b9735 use include_tasks instead of include
include is marked as deprecated since ansible 2.4[0]

Switch to include_tasks or import_playbook as necessary

[0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated

Change-Id: Ieff641e85a61b596f8a3a96820e1842d91f8f05c
2018-08-19 12:10:00 -04:00
Mohammed Naser 581075ca73 Drop checksum checks
We currently run the agents on bare metal so the workaround for
checksums is no longer necessary.

Change-Id: I683eb4a1690a6194888dbfacdd6acf7deca3c300
2018-08-17 11:43:30 -04: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
Jonathan Rosser 0d770a8b22 Add lxc3 compatibility to tests
lxc3 deprecates many legacy config keys [1].

[1] https://discuss.linuxcontainers.org/t/lxc-2-1-has-been-released/487

Depends-On: https://review.openstack.org/#/c/586898
Change-Id: I2947a633ea256460db4f43f7921d20d6dfec5aab
2018-07-30 17:25:20 +01:00
zhulingjie 84504279d9 Remove the unnecessary space
Change-Id: Id9d3e3d8419554422e7c068dd2649d102119867a
2018-07-11 23:26:59 -04:00
Jean-Philippe Evrard 1a3a0fdbf5 Fix usage of "|" for tests
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: Ie83262629060866dd0d208ed41704aef21416aa0
2018-07-13 08:59:39 +02:00
Jesse Pretorius 3bd96fecbf Execute service setup against a delegated host using Ansible built-in modules
In order to reduce the packages required to pip install on to the hosts,
we allow the service setup to be delegated to a specific host, defaulting
to the deploy host. We also switch as many tasks as possible to using the
built-in Ansible modules which make use of the shade library.

The 'virtualenv' package is now installed appropriately by the openstack_hosts
role, so there's no need to install it any more. The 'httplib2' package is a
legacy Ansible requirement for the get_url/get_uri module which is no longer
needed. The keystone client library is not required any more now that we're
using the upstream modules. As there are no required packages left, the task
to install them is also removed.

Change-Id: I2e33c4cb468e93259860b600719d87c4022d6805
2018-07-12 18:15:37 +01:00
Markos Chandras 0d833b895b Revert "Ensure LBaaSv2 deployment is tested"
This reverts commit 504c351a83.

We are not installing lbaas packages but we are still enabling the
plugin and this breaks neutron

ERROR neutron_lib.utils.runtime Traceback (most recent call last):
ERROR neutron_lib.utils.runtime   File "/usr/lib/python2.7/site-packages/neutron_lib/utils/runtime.py", line 52, in load_class_by_alias_or_classname
ERROR neutron_lib.utils.runtime class_to_load = importutils.import_class(name)
ERROR neutron_lib.utils.runtime   File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 30, in import_class
ERROR neutron_lib.utils.runtime __import__(mod_str)
ERROR neutron_lib.utils.runtime ImportError: No module named neutron_lbaas.services.loadbalancer.plugin

Change-Id: If9318a9198a5051faa2717e0527ec5e2cab6c377
2018-06-08 10:02:47 +01:00
Andrew Smith 4db9c95d6f Update to use oslo.messaging service for RPC and Notify
This introduces oslo.messaging variables that define the RPC and
Notify transports for the OpenStack services. These parameters
replace the rabbitmq values and are used to generate the messaging
transport_url for the service. The association of the messaging
backend server to the oslo.messaging services will then be
transparent to the neutron service.

This patch:
* Add oslo.messaging variables for RPC and Notify to defaults
* Update transport_url generation
* Add oslo.messaging to tests inventories
* Add release note

Depends-On: If4326a6848d2d32af284fdbb94798eb0b03734d5
Depends-On: I2b09145b60116c029fc85477399c24f94974b61d
Change-Id: I717880458f69870acf75a101481b7776d250ebf4
2018-05-23 12:11:00 -04:00
fpxie 51d336489e Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: Ie92f17fec88bf1f027214878038db269035c3b16
2018-05-08 11:58:54 +08: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 a28ef24fc0 ansible-role-requirements: Use systemd_service role from git.o.o
In order to ensure that the updated role is used for tests,
we adjust the a-r-r file to pull from the correct repo.

Change-Id: I9aafd4b24631e195b46c3935c479fa00f9b5766a
2018-03-27 19:57:58 +00:00
Jesse Pretorius 87b8584ac1 ansible-role-requirements: Add common python_venv_build role
In order to allow tests to work as the use of the common
role is implemented in the various roles, we pre-implement
the addition of the role into the a-r-r file.

Change-Id: Ibc431c82610549171be9f044ac48c4b5f1a50781
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-27 19:53:55 +00:00
Kevin Carter 39b3e9a934 Fix post up checksum script
The post up checksum script was being executed by the legacy networking
To ensure we retain the same capabilities the checksum fix script has
been moved into a systemd oneshot service.

Change-Id: I58d393eb8c78a541142a29c5e0678cbd6ec18b65
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-27 17:47:01 +00:00
Periyasamy Palanisamy 2e86cbd4d4 add networking-bgpvpn repo correctly for the tests
Change-Id: I00ec7a01e5790223d378317f2354bb78ddba5ee3
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-03-20 11:27:00 +01:00
Jesse Pretorius f6405a0edc ansible-role-requirements: Add common systemd_service role
In order to allow tests to work with https://review.openstack.org/551028
merged, add the role to the a-r-r file.

Change-Id: Ie797fec6698a9a525f5590617d069235715c03b1
2018-03-13 16:51:23 +00:00
Zuul d7050385be Merge "add ml2 config for networking bgpvpn" 2018-02-19 10:37:00 +00:00
Jean-Philippe Evrard cd580de2c2 Fix neutron upgrades
With the latest ops changes, we use the clouds.yaml
file for API testing.

We therefore need to generate it on localhost, where the
API tests are located.

On top of this, the scripts are modified to consider that
previous branch is now queens, not pike.

Change-Id: I0c1d6298cd394426b6e4acbc1859c901fdd80439
Co-Authored-By: Jean-Philippe Evrard <jean-philippe@evrard.me>
2018-02-16 13:19:48 +00: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
Zuul d5f42963da Merge "tests: test-neutron-upgrades.sh: Drop Ansible verbosity" 2018-02-05 16:40:55 +00:00
Jean-Philippe Evrard 3a47ee875d Use a venv with previous ansible version for upgrades
When doing the role upgrade, we run every playbook with current's
branch ansible. This is normal for the infrastructure bits (which
are running on current branch), but not for the installation of
the previous branch's role, which should use previous branch's
environment.

Depends-On: I7ebb045885dd645b820de2b7f75b46c755c015f6
Change-Id: I5fbf34688b8930d47cbb36866fe2436ce143ee00
Related-Bug: #1741471
2018-02-01 10:42:18 +00:00
Markos Chandras 4f08b3f0e4 tests: test-neutron-upgrades.sh: Drop Ansible verbosity
The upgrade tests are very noisy since Ansible verbosity is set too
high. This makes debugging problems very painful so drop the verbosity
level a bit and let users increase it if desired.

Change-Id: I2be538861e51af5d51159de0bce73bf78c0eaca3
2018-01-24 13:30:45 +00:00
Jean-Philippe Evrard 712a9078da Fix upgrade test
openstacksdk was updated to 0.10.0 which has a different
connection.Connection object, which doesn't take our auth_url.

We should respect the constraints, install the tooling in a venv,
and restrict to a known version of the sdk until more robust code
is written.

Change-Id: Ib3d3d14a3a6222f4362def29b4765cf5bad3d285
2018-01-19 17:03:33 +00: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
Markos Chandras 59eb7ee024 tests: test-neutron-upgrades.sh: Remove the exit trap
We are already collecting logs as part of the post-run playbook so we
don't need to do that as part of the exit trap. This avoid collecting
and compressing the logs twice.

Change-Id: I937b74179f448c3f7d5a93098fb4d2440d105550
2017-12-15 16:00:18 +00:00