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
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
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
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
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
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
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
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
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>
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
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
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
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
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
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
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>
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853
Change-Id: Ibcf89122939a5d70470a3fd8ad5d66c6185270b7
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
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
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
If multiple regions exist, keystone_authtoken should contain region_name.
This prevents the service from authenticating across regions.
Change-Id: I35771c73954fb8962bbcc7ae8963900b68ea5e5c
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
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
The functional tests no longer rely upon MongoDB
as of change I94a585f9c1da51c4f278f4a12e29d395a261e716
Change-Id: Ic6bd9405c0f162896bb28e672c3b6a38d34c2a0d
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
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
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
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