Commit Graph

30 Commits

Author SHA1 Message Date
Ghanshyam Mann 53e0cdf310 Cleanup the retired repo
This repo is not properly retired. Retired repos can only have two files:
- README.rst
- gitreview

To cleanup the retirement of this repo, keeping these two files only and
removing the other remaining files if there is any.
Detail: https://etherpad.opendev.org/p/tc-retirement-cleanup

Change-Id: I42dab317ef0ffdafe406e14c6caf117487986e4e
2020-08-05 19:59:37 -05:00
Guilherme Steinmüller 9e3bd3f320 Retire openstack-ansible-os_monasca
Change-Id: Ie8da46562c150885010b47980a1ee26bff4d3bc5
2019-06-11 20:22:23 +00:00
tonybrad e4cee5cf66 Change the tests source to opendev
Change-Id: Id2995214941e4647980a288607b14f2142c3af6f
2019-05-21 08:48:40 +00:00
ZhijunWei d70b99cfcb 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: I4bc3b952a87ff0351070f87746ee4b63e590aa2d
2018-08-22 11:43:22 -04:00
kaiokassiano 6682c56a38 Upgrade zookeeper repository
Since the old repository is not maintained, this patch aims to change
to a repository that can be maintained for now, providing faster way
to make changes as necessary like we did in [1] and [2].

[1]: https://review.openstack.org/#/c/587173/
[2]: https://review.openstack.org/#/c/583634/

Change-Id: Ib125743b3ddc336da245bd77fa444f004f7e30c4
2018-08-08 12:00:50 -03:00
Guilherme Steinmüller ab9ca00b2a Upgrade kafka repository
Since the old repository is not maintained this patch
aims to change to a repository that can be maintained
for now, providing faster way to make changes as necessary.

Change-Id: I4e66f9293e0b1148540bad69254c3cbfc4f80a59
2018-07-30 14:22:12 -03:00
Guilherme Steinmüller 567843eb9c Upgrade storm repository
Since the old repository is not maintained and
we have an issue with storm v1.1.1 [1] this patch
aims to change to a repository that can be maintained
for now.

[1]: https://review.openstack.org/#/c/583554/

Change-Id: I773e622d5bcc81152a27ac3fe3071fb13e27902e
2018-07-18 11:41:37 -03:00
Jean-Philippe Evrard 0e4da819fd Fix monasca
This ensures the dependencies on the monasca roles are deployed
after the initial deploy steps of monasca. This allows us to
install on the host the packages required for the extra roles,
until they are fixed. Moreover, the grafana-ansible role is being
moved to ansible-grafana from cloudalchemy repository.

Change-Id: I9381c4994e38933fd12c02c673bfe409daf2a59c
Co-Authored-By: Guilherme Steinmüller <guilhermesp@lsd.ufcg.edu.br>
2018-07-17 17:47:46 -03:00
Jesse Pretorius 4b46ce34a7 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: I673a465863559d6fc72e4fdcd5da2ab788e561ab
2018-07-12 18:03:14 +01:00
Jesse Pretorius 356317735b 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 'monasca_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 'monasca_galera_address' which
has been used for a long time, but never documented. A bunch of unused
variables have also been removed.

Change-Id: I42fe26054aec078a7a7ef66c20416af2cfb65811
2018-06-28 16:24:35 +01:00
fpxie e987b4f9ec Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: Ica4e1888cc5e7c0f552044ff06c6719694e039c8
2018-05-07 11:19:14 +08:00
Jesse Pretorius 917fe543f6 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: I0a216b43c95efd2912c8702a214f73899a5833eb
2018-03-28 10:15:02 +01:00
Zuul edbcd44d13 Merge "Updated from OpenStack Ansible Tests" 2018-03-26 10:34:01 +00:00
Jesse Pretorius 84c8d6d0f5 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: Ib43a06a646d1d7037651ce4fe2f82cf61fc6dd5d
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-25 20:09:31 +01:00
Jesse Pretorius ac670dbc93 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: I89e0a54dc5b6924b103252349389fe302d72daef
2018-03-25 19:04:13 +00:00
OpenStack Proposal Bot 990cc64e30 Updated from OpenStack Ansible Tests
Change-Id: Ie4adff90a465c8efe720684e2f47886696c22d93
2018-02-19 09:13:14 +00:00
Jesse Pretorius 407c893b0a Update monasca testing overrides
The monasca_git_install_branch is already defined in defaults,
and the override of it causes some confusion and is unnecessary.

The tests used have moved to a different repository.

Change-Id: Ie87b40e438a713a7cc88d2a4a53831f023586f7a
2018-02-16 14:37:35 +00:00
OpenStack Proposal Bot b5bff549c8 Updated from OpenStack Ansible Tests
Change-Id: Id295d0a6b393121c265457c74d9760e268bd8592
2017-11-10 20:08:27 +00:00
Flávio Ramalho b884927071 Monasca role refactoring[+docs]
This patch refactors the whole monasca role by bringing consistency
with the other openstack-ansible roles. Main changes include:
  - Install services on its specific cointainer;
  - monasca-thresh, monasca-notification and monasca-persister was
    not being installed/configured, now it is;
  - Tempest tests are ran for the whole monasca-api;
  - The service should be fully functional;
  - Added documentation.

The extras directory contains the changes necessary to openstack-
ansible to setup monasca.

Change-Id: Ib53d4311c4b4aa722c7cdf7b18632e23b8639a56
2017-06-19 14:45:02 -03:00
Jesse Pretorius 8bd891f359 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.

Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
Depends-On: I5da7802d61d2ab6b03908138e3a3ed2db22e3d29
Change-Id: I2fff63afb27266c2ade1ab70d86a423cc5235f21
2017-05-17 18:12:00 +00:00
Jesse Pretorius 20b74b2098 Fix role gate tests for Ansible 2.3
Add 'become' and root 'user' options to the playbook instead of using
'ansible_become' through an inventory variable.

Change-Id: Id5018a0cf8f0190655cd6a6b0a342e7918c29dd0
2017-05-16 12:10:44 +01:00
Donovan Francesco (drifterza) 3b46be0ef6 Using updated tempest method for monasca api.
Change-Id: I4bca2ad287f0bf431add62d62022c399cd7a5663
2016-11-17 09:43:40 +02:00
Donovan Francesco (drifterza) cfd94f19a2 Addressing grafana external role's required variables.
- https://review.openstack.org/#/c/394562/5/tests/test-install-monasca.yml

Change-Id: I816d2c830046c49db20487f85c0dc6acf6c2eebe
2016-11-09 16:59:04 +02:00
Jenkins d97cd7637e Merge "Removing include roles and preferring meta includes." 2016-11-08 16:45:09 +00:00
Donovan Francesco (drifterza) 57eefc0f84 Optimizing monasca role.
- Making role more compatible with keystone v3
 - Replacing variable names with more OSA aligned styling

Change-Id: I5b7230301faedfdfa63f12e51ccadcc16c26639a
2016-11-08 16:57:51 +02:00
Donovan Francesco (drifterza) 3363519acf Removing include roles and preferring meta includes.
- This patch is to prefer the galaxy meta file and not duplicating
   the logic in the install role.
 - One advantage when using the meta galaxy file is when using external
   roles like this we can make use of the tags: skip_ansible_lint which
   doesn't seem to work well in the tests of the role.

Change-Id: I20f5b784a02bed34352cc4a7180154f9d57a13dd
2016-11-08 14:09:30 +00:00
Donovan Francesco (drifterza) a67b4c9673 Better functional tests for monasca-api.
- This patch returns status code 200 if keystone auth token is
retrieved.
 - Minor adjustments to the keystone middleware sections.
 - Adjustments in user naming in service endpoint creations.

Change-Id: Ifbb356634b29f1586c44e1135a761bf1f6adddb0
2016-11-03 15:27:57 +02:00
Donovan Francesco (drifterza) 524a052417 Refactoring Monasca role to align more with OSA.
- This patch is to provide monasca backend services and monasca api,log-api
 - Adding the use of dictionary for service group mappings.
 - Switching to use tested external roles for backend services.

Change-Id: I7f6335f12a4b3a13acf6b644f16587ab1b46745f
2016-11-01 20:03:18 +02:00
Jesse Pretorius 5cad16706a 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: Ibf9dda810f366b03c393ea6106c89e6ec49c5ee1
2016-08-30 19:04:17 +01:00
Travis Truman 641fab33a4 Role skeleton for os_monasca
So we can generate release notes, run tests, etc.

Change-Id: I3fcdd1ab92ac43393ab70117b228b7847f20da4a
2016-08-25 09:15:23 -04:00