Commit Graph

22 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov e6683eac63 Deprecate os_congress role
Since congress service is no longer maintained since [1], we have no
reason to continue maintenance of the corresponding role

[1] https://review.opendev.org/721733

Depends-On: https://review.opendev.org/742515
Change-Id: I8337db363aa954e615b83f595e1c51987bc90368
2020-07-22 20:18:29 +00:00
Dmitriy Rabotyagov 3e5ffd343e Cleanup after repo_build and pip_install retirement
Change-Id: Idb9c95d9cf8e9b27f432db05f45ac74db173519d
2020-05-12 21:40:45 +03:00
melissaml dcddac5576 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I532f294faec7fea18d894e78f3f7667cbc0a9047
2019-07-10 21:29:54 +08:00
Jimmy McCrory 934727a3e0 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: If2a401e444df982c3cd79a3f2d591438f3582c2a
2018-10-20 15:28:29 -07:00
caoyuan 20f3ae971d 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: Icbc1fab92895e1f70a2aedf9507491a1b789f205
2018-08-15 17:25:15 +08:00
Jesse Pretorius 341ad85ea0 Move MQ vhost/user creation into role
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 implement two new variables:
- congress_oslomsg_rpc_setup_host
- congress_oslomsg_notify_setup_host

These are used in the role to allow delegation of the MQ vhost/user
setup for each type to any host, but they default to using the first
member of the applicable oslomsg host group.

We also adjust some of the defaults to automatically inherit existing
vars set in group_vars form the integrated build so that we do not
need to do the wiring in the integrated build's group vars. We still
default them in the role too for independent role usage.

Finally, we remove the test mq setup tasks and clean up any unused
or unnecessary variables configured in tests.

Change-Id: I97770819e9421ed27575f3fe181b4420742b0820
2018-07-27 11:44:38 +00:00
Andy Smith 28b50f04e3 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.

This patch:
* Add oslo.messaging variables for RPC and Notify to defaults
* Add transport_url generation to conf
* Add oslo.messaging to tests inventory and update tests
* Install extra packages for optional drivers

Change-Id: I96d43d5ff04254352980a2c0ba40ed7bb2e9f234
2018-07-26 09:40:24 +00:00
Jesse Pretorius b335e3c672 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
Change-Id: Ie32143ba23b964f9ceda98f00ff9cfa1c7a131d6
2018-07-06 13:49:37 +00:00
Jesse Pretorius 2b4f3a4f0c 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 'congress_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. We also document the variable 'congress_galera_address' which
has been used for a long time, but never documented. A bunch of unused
variables have also been removed.

Change-Id: Id22bb9c3c3146aee6ccd7462c4a52b0be718ad55
2018-06-28 14:35:27 +01:00
fpxie d6e2baaf0c Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: If60685c794b4897dc11704dc419ce91553b14832
2018-05-07 11:15:13 +08:00
Jesse Pretorius 6a02d4861a 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: Ieb3bcb72eed259eaabe6c60a3a67288722976de5
2018-03-28 10:13:42 +01:00
Zuul 79a739c4d4 Merge "ansible-role-requirements: Use systemd_service role from openstack namespace" 2018-03-25 17:08:55 +00:00
Jesse Pretorius af835ae117 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: I15e838991cce879abc24c934d60cd7e62512ab53
2018-03-25 16:19:30 +01:00
Jesse Pretorius 739e72e0dd 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: Ib92beffc4ea14a7192c81e5ed244a2ecf5834ea9
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-24 23:19:35 +00:00
Jesse Pretorius ea207b1473 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: I1ec9d02e1772a38a71991ab2706b83fb465c1477
2018-03-13 17:33:20 +00:00
Taseer Ahmed 96de343ac5 Congress role enhancements
- Remove needless file "tests/test-repo-clone.sh"

Change-Id: I7a6e60798544f6fc4a9ca44f4b5c8ab0847331b2
2018-03-05 14:24:52 +05:00
OpenStack Proposal Bot deb49a6499 Updated from OpenStack Ansible Tests
Change-Id: Ice7bb57beebb98d973c9edd3f165f5e87afe4f40
2018-02-14 20:05:22 +00:00
Jean-Philippe Evrard 39477ea148 Introduce os_congress role in gerrit
This commit makes possible to contribute to the os_congress role.
It ensures the roles follows the minimum testing, in order to
be improved later with further testing.

The minimum testing is a local API test that's currently not
passing and will be improved by the community.

Co-Authored-By: Taseer Ahmed <taseer94@gmail.com>
Co-Authored-By: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
Change-Id: Iffe98a040b93b1101fe3339edc84d6197e5a5da7
2018-02-14 10:17:23 +05:00
Taseer Ahmed 2caa428933 Remove Tacker related things
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-10-27 13:33:06 +05:00
Taseer Ahmed 895ca3a7fe Address comments
- remove env-upgrade
- remove lxd-test
- indent properly

Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-10-20 15:14:13 +05:00
Taseer Ahmed 5f014121aa Complete testing requirements 2017-10-19 15:40:11 +05:00
Taseer Ahmed 84048fcc14 Initialize congress role for OSA
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-09-12 15:53:49 +05:00