Commit Graph

56 Commits

Author SHA1 Message Date
Marc Gariepy e5d245c17d remove ansible_python_interpreter
ansible_python_interpreter is now set to auto in the tests repo.
it doesn't need to be overwritten in the test anymore.

Depends-On: https://review.opendev.org/734676/
Change-Id: I98386dde8e10e0ded820326af443aa6e70f53321
2020-06-11 15:59:12 -04:00
Dmitriy Rabotyagov 5785c68353 Cleanup after repo_build and pip_install retirement
Change-Id: I95cc52ca207ce096eb378a315e8b243fdb18d266
2020-05-12 20:51:35 +03:00
Dmitriy Rabotyagov 1c9494f4da 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

Depends-On: https://review.opendev.org/693841/
Change-Id: Ic79c4e090a841de042a3b7ce4b03681d6de9c6a5
2019-11-14 16:21:18 +00:00
Dmitriy Rabotyagov 91b2196646 Migrate aodh to use uWSGI role
This patch moves aodh-api from usage of apache with mod_wsgi
to uWSGI role, which means unification across another roles and
reduced maintenance costs

During migration period tasks that ensures apache won't listen
on panko_service_port are present, but they are supposed to be removed
after train release.

Depends-On: https://review.opendev.org/678025/
Change-Id: I9377d46b4b79f79dbf448b23c67ff21b80714b6c
2019-09-04 15:36:21 +03:00
melissaml be00665878 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I1231b4d0d0b0865eaf88d42ad3a4c69aa1c2a961
2019-07-17 11:27:53 +08:00
Jimmy McCrory abf905a211 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: Iedc250945ead1ed3ad91e7e550a134fae7f9e175
2018-10-20 15:28:29 -07:00
Zuul a192bffba7 Merge "Trivial: Fix the pep8 warning" 2018-10-06 22:50:24 +00:00
caoyuan ac625f81dd 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: Id9296d69814f3ad72fee5095893fdd7f1729aa5c
2018-09-02 15:01:40 +00:00
wangqi 4753a2203f Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: I0e03df709650d16167f45643dc615beba89fc5b1
2018-08-06 07:13:20 +00:00
Jesse Pretorius f64d1dce9b Remove unnecessary MQ vhost/user creation tasks/vars
There is no record for why we implement the MQ vhost/user creation
outside of the role in the playbook, when we could do it inside the
role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we remove the test vars and tasks which were duplicated
as they are no longer required.

Change-Id: I4901fb117ac87ce37e2d07b1691f56820e7b0f70
2018-07-30 11:53:45 +00:00
Jesse Pretorius 08b19e3b97 Move database creation into role
There is no record for why we implement the database creation outside
of the role in the playbook, when we could do it inside the role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we implement a new variable called 'aodh_db_setup_host'
which is used in the role to allow delegation of the database setup
task to any host, but defaults to the first member of the galera_all
host group.

Change-Id: I5e6a2857d14f957ef9167f90d4b2d3a4fec321dc
2018-06-12 19:25:34 +01:00
Andrew Smith 1f4a1e71a1 Update to use oslo.messaging services 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 aodh service.

This patch:
* Add oslo.messaging variables for RPC and Notify to defaults
* Update transport_url generation (add for notifications)
* Add oslo.messaging to tests inventory
* Update tests
* Add release note
* Update README and example

Depends-On: If4326a6848d2d32af284fdbb94798eb0b03734d5
Depends-On: I2b09145b60116c029fc85477399c24f94974b61d
Change-Id: I356e7256f5e8090f35dce8a02fd633638fd659fa
2018-06-04 14:26:05 -04:00
Jesse Pretorius 52d47c9fec 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: I8e2601eea877501ee74cfe8e319250b46e9e8b08
2018-03-28 10:12:58 +01:00
Zuul d3baa0001b Merge "ansible-role-requirements: Use systemd_service role from openstack namespace" 2018-03-25 17:26:01 +00:00
Jesse Pretorius efd78bffb2 ansible-role-requirements: Use systemd_service role from openstack namespace
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: I4aefaa857892bfe53755f2cc3d38c7ce7dcf986b
2018-03-25 16:18:46 +01:00
Jesse Pretorius a4309dcc22 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: I96394d6e47b97754865039e92bdac954e142d5a5
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-24 23:18:54 +00:00
Jesse Pretorius f17e88e871 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: Ifb9bdac08a43c957e857573e2280a0c5ab3a9788
2018-03-13 16:49:00 +00:00
OpenStack Proposal Bot 7547a80e96 Updated from OpenStack Ansible Tests
Change-Id: Iede36d7dd2da7f350d89e0cc86412a092a7705ff
2018-02-14 20:04:51 +00:00
Mohammed Naser b4bed542ba Update the Tempest plugin to point towards the new plugin
The AODH service has split it's tests for Tempest in a seperate
repo so this patch updates it.  In addition, it also adds an
installation of Gnocchi as it is required for the Tempest runs
to complete.

Closes-Bug: #1747610
Depends-On: I6e9f938885036d2fabc81094e01e220b09e462dd
Depends-On: I2c8e4e64c2425cd36903ae9288bd9fee29eef355
Depends-On: Ia1d7a2c664c6c11ad698a915162281c11a344067
Depends-On: I54c109b76c6414e4e289fc5e49839f8af35ec4b9
Change-Id: I3cb1c67f27cce945b84bc5923bb30820c19ff8b4
2018-02-09 10:50:30 -05:00
Jesse Pretorius fbf0aac850 Allow role defaults to determine the branch tested
Currently there's an override in place to make the tests
use the master branch. This becomes a pain when master
becomes a stable branch because this override is out of
the norm, so it gets forgotten.

The override is not necessary - we can just use the
values from the role defaults instead.

Change-Id: I9852ed94f51df494cf49e53b8aadf71b42ceac27
2017-11-03 11:28:24 +00:00
Jesse Pretorius 6deee77f9e Initial OSA zuul v3 role jobs
This patch implements an initial set of jobs intended to match
the current job execution method. It does not intend to improve
how the jobs are executed - only to replicate what is currently
in openstack-infra/openstack-zuul-jobs and provide the platform
to iterate on.

Change-Id: I9bc165a608bba3dedbf6e5d95c577550179b724b
2017-10-17 18:10:41 +01:00
OpenStack Proposal Bot f6faf12188 Updated from OpenStack Ansible Tests
Change-Id: I4a7aae3f6b6490420f43e431837f32b38c5ac7ed
2017-10-12 20:44:05 +00:00
OpenStack Proposal Bot 2d01e5f54d Updated from OpenStack Ansible Tests
Change-Id: Ic6fe9d38afd9a2f2accdb80f30cc6108f7e47fdf
2017-06-22 15:19:14 +00:00
Jesse Pretorius 416fadc9b5 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: Ie8dfa141cc05dd0f4a655dbbb60cdb23d48ec376
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:50:31 +01:00
Jimmy McCrory 8c93d5935d Standardize test vars
Move test host vars from the inventory to individual files for each
host. 'ansible_become' has been removed from localhost's vars since it
should be handled on a playbook basis.

Change-Id: Icce6dc5caa49ed4fb80845f1a2d21e2475ace6a2
2017-04-19 14:40:24 -07:00
Jenkins 9bf1c32019 Merge "Using updated tempest method for aodh api." 2016-11-22 11:01:32 +00:00
Donovan Francesco (drifterza) 58bddfd8d5 Using updated tempest method for aodh api.
Change-Id: I206a45006e075275003ce31591c6bb0f64dc4658
2016-11-22 10:00:58 +02:00
Marc Gariepy 74074a1c8c Standardize tests inventory
The config for tests inventory is based on the keystone configuration.

Change-Id: I067280d71c5bbe3885bc0ec98c47616f05fb1a7a
2016-11-17 11:41:47 -05:00
Kevin Carter 37f0f088bb Remove deprecated ansible_ssh_host variable
This changes 'ansible_ssh_host' to 'ansible_host'. The 'ansible_ssh_host'
variable has been deprecated as noted here: [0].

[0] - http://docs.ansible.com/ansible/intro_inventory.html#hosts-and-groups

Change-Id: If4515f257c9d5e0de21eb16f8faea2c249392d69
Related-Bug: #1636606
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-25 19:41:15 +00:00
Jesse Pretorius db5ac8fdfe Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: Ibcf89122939a5d70470a3fd8ad5d66c6185270b7
2016-10-05 13:01:37 +01:00
Jesse Pretorius 53bb47125f Use centralised test scripts
This patch consumes the test scripts implemented by
https://review.openstack.org/375061 to ensure that
the tests and test preparation is consistent and
more maintainable.

Change-Id: Ia677ee445239d2257c2b603256efd1fad6b67fae
2016-09-27 17:08:44 +00:00
Jesse Pretorius 260c8db60c Force Ansible to use dynamic includes
Ansible 2.1.1 introduces a regression in the way conditional
includes are handled which results in every task in the
included file being evaluated even if the condition for the
include is not met. This extends the run time significantly
for a deployment.

This patch forces all conditional includes to be dynamic.

Change-Id: Ibeca5ab5cdf3c25bd0ffe485dfb0a80ba2948cdb
Related-Bug: https://github.com/ansible/ansible/issues/17687
2016-09-22 12:36:07 +01:00
Travis Truman 33b71bad0b Ansible 2.1.1 role testing
Change-Id: I055c4fe96a2d2b2e2d991b3bd7c0258a6c0534d3
2016-09-14 15:48:50 +00:00
Jesse Pretorius 52b7dd42e8 Rename package lists (and related vars) appropriately
In order to make it easier to differentiate between the lists of
python packages, distribution packages, downloaded packages,
package pins and other similar variables the variable names are
being changed to ensure that they have a more explicit suffix
that defines the purpose and makes the naming more consistent.

This is to facilitate a lookup plugin which will be able to look
up all the package lists and present them as a consolidated piece
of data which may be used for artifact preparation.

Change-Id: I0f6e177d080da10ba3e992f1c2f1e5cd7a4262ff
2016-08-30 16:32:36 +01:00
Travis Truman d5eeadc454 Test aodh role using the aodh tempest plugin
Adding tempest testing for better test coverage
of the role.

Change-Id: I66e075a9191ea2d173b213522cfa0dd042cc4036
2016-07-28 14:13:36 -04:00
Jenkins 746767540f Merge "Remove openstack_hosts from test requirements" 2016-07-27 14:05:56 +00:00
Jenkins 3b127dad09 Merge "Define keystone region name." 2016-07-26 19:21:38 +00:00
Tim Laszlo 442fcb0645 Define keystone region name.
If multiple regions exist, keystone_authtoken should contain region_name.
This prevents the service from authenticating across regions.

Change-Id: I35771c73954fb8962bbcc7ae8963900b68ea5e5c
2016-07-22 10:26:03 +00:00
Travis Truman e25e51169a Support service-specific rabbitmq clusters
All rabbitmq connection vars are now namespaced. Namespace support
was previously inconsistent which limited deployer override options.

Deprecated configuration using oslo_messaging_rabbit has been replaced
with transport_url based configuration

Change-Id: Ic1eb3bb6346ebdaa0d3bc19a879946c527239dfb
Implements: blueprint multi-rabbitmq-clusters
2016-07-21 20:37:07 +00:00
Jimmy McCrory 1cd9e6e718 Remove openstack_hosts from test requirements
The openstack_hosts role is not used in any of the test playbooks
or required by dependent roles and can be removed from the test
role requirements.

Change-Id: Iedef38e050249cd3a2062f5a3143dddfaf4d998e
2016-07-20 18:47:01 -07:00
Travis Truman c897e48cae Remove mongodb vars from the aodh func tests
The functional tests no longer rely upon MongoDB
as of change I94a585f9c1da51c4f278f4a12e29d395a261e716

Change-Id: Ic6bd9405c0f162896bb28e672c3b6a38d34c2a0d
2016-06-27 09:13:13 -04:00
Travis Truman b7f632665f Remove duplicate usage of the galera role in aodh func test
Appears to have been introduced in I94a585f9c1da51c4f278f4a12e29d395a261e716

Change-Id: I117c05d3a4b8f65082db4bbe9dabbd1599616fe6
2016-06-24 15:44:20 -04:00
Jesse Pretorius f249d7e6a0 Clean up container cache prep in tests
This patch cleans up the container cache preparation in the tests
due to the following patches:

- https://review.openstack.org/307856 (new image build process)
- https://review.openstack.org/315114 (new apt config process)
- https://review.openstack.org/322188 (new resolver config process)

Change-Id: I7df8637e8d63e839148dc86e68102cc96bef3bfd
2016-06-17 18:24:17 +01:00
Steve Lewis ae2e55beed Convert default from MongoDB to MySQL storage
In Mitaka the default storage engine was changed and the current
storage engine (MongoDB) was deprecated. Support for MongoDB storage
may be removed upstream during the O* cycle. Now that a migration
path is possible, we should begin the shift.

Change-Id: I94a585f9c1da51c4f278f4a12e29d395a261e716
Related: change I03b5dd14160dba37c992d04275155f7d9037edb0
Related: change Ibfc47ebe0652b38dbc708d2a0ab58a4288230228
Related: blueprint only-support-sqlalchemy-in-aodh
Upgrade-Impact: db create and data migration becomes necessary
Upgrade-Related: change If0ac3e530ab007118dfd5b842826ba95613ac61d
2016-06-10 19:52:14 -07:00
Jimmy McCrory 25db7ac26b Remove pip_lock_down dependency
The pip_install and pip_lock_down roles have been merged.

Remove pip_lock_down from the role's meta dependencies and test
requirements.

Change-Id: Ide428f507dcf3537b94ac05a15b52981c3a51ba2
2016-06-07 23:42:22 -05:00
Jesse Pretorius d67499606e Remove py_from_git role
The py_from_git role is removed as it is no longer required.

Change-Id: Ic8c3607d128a2aa6e351b58e86619ada4c8c96e8
2016-05-04 09:05:35 +01:00
Jesse Pretorius a7630cb48c Switch defaults/tests to use master branch
Change-Id: Ied539b21585644171995c99bb3da588e4b7c7642
2016-04-03 12:58:13 +01:00
Jesse Pretorius 89988725ad Switch defaults/tests to use stable/mitaka branch
Change-Id: Ib7200a3cab00576605510ca8aae467c814c76d09
2016-03-25 00:05:21 +00:00
Jesse Pretorius ada59eb488 Update role for stable/mitaka testing
This updates the repository SHA's to use stable/mitaka where
available and updated SHA's where not.

It also updates all paste, policy and rootwrap configurations
to match the current contents found in stable/mitaka.

Change-Id: If8ad940eb23a08b5c29bed7e15d792c529d55189
2016-03-23 21:48:24 +00:00
Travis Truman 823cd2e92f Basic functional test of the aodh role
Ensuring that the aodh-api is responding to a basic request

Also adding human logging to the functional test to more
easily diagnose any testing failures.

Closes-Bug: #1553966
Change-Id: I93455c0eb300c29dd4dc512f43031c35f5c2c29c
2016-03-18 10:09:24 -04:00