Commit Graph

40 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 5f36cec6e4 Cleanup after repo_build and pip_install retirement
Change-Id: I12dfb95eadba335e8b9086ec7c158991a99be959
2020-05-12 21:58:35 +03:00
Dmitriy Rabotyagov 83d643947f Start using uWSGI role
Move service to use uWSGI role instead of iternal task for uwsgi
deployment. This aims to ease the maintenance of uWSGI and speedup
metal deployments as the same uwsgi environment will be used
across all services.

Change-Id: If539762d5de0730ce97d8f8aaefb4c096d850902
2019-09-04 19:41:09 +03:00
melissaml fceb0d2f7b Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I0df7b690d75ab2812d3bde8dec41f72d63fdaed5
2019-07-10 19:38:44 +08:00
Jimmy McCrory 14f508d470 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: Iecdf744d45b4bbec3c7907bde62f1b0801ba9268
2018-10-20 15:28:29 -07:00
Zuul d1ceda285b Merge "Trivial: Fix the pep8 warning" 2018-09-13 10:29:53 +00:00
caoyuan 6170df0834 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: I0d5e63a6bb72ac292a27b677ef32a2f1daf47550
2018-08-15 06:30:34 +00:00
wangqi 3c6ec95e63 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: I1fb4bdd1b12ec8b4786c872b9369193592a9c5e6
2018-08-06 07:33:14 +00:00
Jesse Pretorius 86d1369e19 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.

With the dependent patches, the openstack_openrc role is now executed once
on the designated host, so it is no longer required as a meta-dependency for
the role.

Depends-On: https://review.openstack.org/579233
Depends-On: https://review.openstack.org/579959
Depends-On: https://review.openstack.org/580156
Change-Id: I261a49e374d34d00d0be1863da701b7a13ceb3c6
2018-07-06 13:55:08 +00:00
Andrew Smith 34ddb73f03 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 heat service.

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

Depends-On: If4326a6848d2d32af284fdbb94798eb0b03734d5
Depends-On: I2b09145b60116c029fc85477399c24f94974b61d
Change-Id: I4ee0a94028e7390b319d4e1ceb4ab7f7c28ad9ba
2018-05-30 14:57:57 -04:00
Jesse Pretorius ae6955ba7e 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: I14162d6d1c597cb3ad08618807385f35c0af6732
2018-03-28 10:14:09 +01:00
Zuul f2be8c36dd Merge "ansible-role-requirements: Use systemd_service role from openstack namespace" 2018-03-25 17:19:00 +00:00
Jesse Pretorius 3cdad87b37 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: Ic426d6fe42f9b409d3d18affb112dd7f1e1ad07d
2018-03-25 16:19:54 +01:00
Jesse Pretorius 90d5b28570 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: Ifa401202a334ea15f724c7ac35ac7b9d0ffc1348
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-24 23:19:58 +00:00
Jesse Pretorius 094f0a4011 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: I2e1cc1b2967c7f2fdb87c3af632c518a173ecf42
2018-03-13 16:50:22 +00:00
Zuul 0762ae53ca Merge "Updated from OpenStack Ansible Tests" 2018-02-17 04:27:48 +00:00
Jean-Philippe Evrard 294df3bb56 Remove CloudWatch API
It has been removed upstream, so we follow the trend.

Change-Id: Ic377c5dc8e4941b1a96516c99dcf8166cfe688f0
2018-02-16 10:06:35 +00:00
OpenStack Proposal Bot 844c348c25 Updated from OpenStack Ansible Tests
Change-Id: I37d869f2617a5b0fd734f3504a15a13efe4b85da
2018-02-14 20:05:45 +00:00
Jean-Philippe Evrard dfb3a91663 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: Iee88a28032645e5d2ba7d7a4959963f34a086bdb
2017-10-17 20:09:53 +00:00
OpenStack Proposal Bot 1d980c7d5a Updated from OpenStack Ansible Tests
Change-Id: Ic4330509123dc9c45ac61a3cb8d644f4362cff7f
2017-06-22 15:19:32 +00:00
Jesse Pretorius 0d2f66fc55 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: I73f69b0f168ee7f8f7ea1a473102c12c3afdc878
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:51:39 +01:00
Jimmy McCrory acfb5cc3a1 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: Iac43677546a62798772c09350f52ce3712d5425e
2017-04-19 17:16:25 -07:00
Marc Gariepy 340290cf0b Standardize tests inventory
The config for tests inventory is based on the keystone configuration.

Depends-On: I24a6b34b4e308ae16347b6da7577b9f9891b49d2
Change-Id: Iaf518ffc9ea750c2ec43edfe592bf7dc67bc30c6
2016-11-18 13:51:21 -05:00
Qin Wang 4c21c435cd Add os_heat role functional tests for gate
The Heat functional tests simply validate the
heat APIs are reachable. Tempest testing would require
installation of glance, nova and neutron so it is
reserved for the integrated gate.

Co-Authored-By: Travis Truman <travis_truman@cable.comcast.com>
Change-Id: I619dcc085c1a2c5d23c685cc63dc2e70b1bd530e
Closes-bug: #1624518
2016-10-05 19:41:02 +01:00
Jesse Pretorius 6b17fffaa5 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: I6a84d8d24353f1fe5eccd16ef2b573050122e1af
2016-09-28 08:32:50 +01:00
Jesse Pretorius 93f96641f3 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: Ia72f89adc8a85e3b9b62392f24b63ede24898dc0
Related-Bug: https://github.com/ansible/ansible/issues/17687
2016-09-22 13:43:26 +01:00
Travis Truman 4b4403c118 Ansible 2.1.1 role testing
Change-Id: I3192fd09069ff7747135823821c45f475d4a8e46
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-19 13:01:35 -04:00
Jesse Pretorius 8878e8c44d 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: Iae52d01acd33f6caa91a526f6c19c2ac19161702
2016-08-30 17:10:53 +01:00
Tim Laszlo a8a3d6a142 Define default region name.
If multiple regions exist, keystone_authtoken should contain region_name.
This prevents the service from authenticating across regions.

Also set default for all services to the region heat is installed in.

Change-Id: I14b2d145b52c1d396ac22c724a5b9ecb8fa7929e
2016-07-25 13:16:00 -05:00
Jenkins 049ce8125c Merge "Support service-specific rabbitmq clusters" 2016-07-22 10:21:55 +00:00
Travis Truman 683b0966f4 Support service-specific rabbitmq clusters
All rabbitmq connection vars are now namespaced. Namespace support
was previously inconsistent which limited deployer override options.

Introduced new variables so the transport_url values
used for RPC and notifications can vary. By default
they will remain the same.

Change-Id: I0a3d7130493d8a0c46cf0695cbe98a94657ca0a7
Implements: blueprint multi-rabbitmq-clusters
2016-07-21 17:09:49 -04:00
Jimmy McCrory ebb8de789c 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: If7bf75319f42525999967ddf826d407db52c6476
2016-07-20 18:47:01 -07:00
Travis Truman 69023f32f0 Remove references to unused vars
heat_profiler_hmac_key and heat_cfn_service_password
are no longer referenced within any tasks or templates
within this role and should be removed.

Change-Id: I42ca62a64a6985b37d73f7f14093207d02fefb5d
2016-06-24 10:35:26 -04:00
Jimmy McCrory aa04e70502 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: If6f57db0acbb08dd062230d40705bd9650c7da9a
2016-06-07 23:38:07 -05:00
Kevin Carter 47702dbe38 Removed the db create tasks
The db create tasks have been removed from the role and have been
relocated into the playbooks.

Change-Id: Id545604a4e15316bf4cc7c55bc6245b45dd97d27
Depends-On: If58e482034a65c0e50241448dbe298a73c1ae71b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-05-13 10:48:02 +01:00
Jesse Pretorius 75c2484d99 Remove py_from_git role
The py_from_git role is removed as it is no longer required.

Change-Id: I83486554e90e052982715c241dc9c5efc849cfed
2016-05-04 09:13:56 +01:00
Jesse Pretorius e6112a8eab Switch defaults/tests to use master branch
Change-Id: I16346e30a327d52901354079a7a8e0ef2bff96d4
2016-04-03 12:58:59 +01:00
Jesse Pretorius 10301fbab4 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: Ifd95483bf26d492ceec5466d6dc20ea61c6834e0
2016-03-23 21:55:02 +00:00
Travis Truman 1d1d573a58 Remove dependency on the Keystone admin auth token
Now that auth token usage is deprecated, prefer the admin
user and password for all heat setup tasks run against
keystone.

Change-Id: I0f51ce6531bc9c52317a8727f9815de86f5a50de
2016-03-17 10:47:53 -04:00
Travis Truman 57ab18ca3e Enable functional testing
This commit updates tests/test.yml to deploy rabbitmq, galera,
keystone, and heat in a functional test.  Note that we point at
a non-existent memcached server, but this can be adjusted to build
memcached if deemed necessary.

Note that we also have to install openstack-ansible-plugins in the
ansible-lint job as test.yml uses string_2_int filter which is
included in openstack-ansible-plugins.

Closes-Bug: #1553969
Change-Id: I650120b1605220b4d79c35db9c06c416b241da92
2016-03-15 14:20:21 +00:00
Matt Thompson 1b4683e2bb Implement base configuration for independent repository
This is a first pass at bringing in the necessary bits for the gate to
successfully pass.

Change-Id: Ic0bd764da1224e46cf88cac795b15771539647f9
2016-03-02 07:29:57 +00:00