Commit Graph

74 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 23777a3ce5 Cleanup after repo_build and pip_install retirement
Change-Id: Ic081e72dae56716c819aa014fcca0ea78c6edc20
2020-05-12 21:19:31 +03:00
OpenStack Proposal Bot 81c342a995 Updated from OpenStack Ansible Tests
Change-Id: I7d1ca774080d47ccef43954ed81dcc027452f282
2019-09-11 13:06:55 +03:00
melissaml 0fba87f983 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I81fbfa6baf0ca4382823899381b7ee378959dc04
2019-07-10 23:03:29 +08:00
Dmitriy Rabotjagov bbf9cacdfd Update role for new source build process
Packages from ceilometer_developer_mode_distro_packages were moved
to ceilometer_devel_distro_packages list.

Change-Id: Ia47c56d7fccb36d99a6368b836b48613500beea6
2019-03-27 21:06:22 +02:00
Jimmy McCrory 6966132007 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: Ib7f90af561bf97b898a125ed10a8773570ff79fc
2018-10-20 15:28:29 -07:00
Dmitriy Rabotjagov 98c3f7e51d Distro-install tests for Ubuntu and Centos are voting now.
This patch makes available to completely move to zuul templates,
by adding openstack-ansible-role-distro_install-jobs into list.

Added small fixes to make them working.
Centos has gnocchi_resources.yaml packed with ceilometer-common package,
so test was failing on db_setup task.

Also ceilometer user was not created, as it checks for existance of
ceilometer_central_container group, which was not defined in inventory.

Change-Id: I7fd7a949724f4fa52fa48534a6ef6c8a8efdc290
2018-10-17 10:01:37 +00:00
Zuul bb258c1d2b Merge "Trivial: Fix the pep8 warning" 2018-09-26 07:57:42 +00:00
Jesse Pretorius 854569cdb8 Switch to simple service test instead of tempest
It appears that ceilometer itself has no tests now that there
is no API, so we switch to simply verifying if the services
are up.

Distro installs for xenial are not working, which is not
surprising given that the service is using queens packages.
We therefore disable the test for follow up in another patch.

Change-Id: Ia06438c22430c3432f6dff523c22ec3cd7bdddf8
2018-09-18 13:48:06 +01:00
caoyuan 260ee0af3a 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: I5f7873e7093e20544ca5c5addedf76b61a2f5d57
2018-08-15 17:02:23 +08:00
wangqi 26efb0db36 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: Ieece4e2ba2238fa52093be03daafe67278036700
2018-08-06 07:19:28 +00:00
Jesse Pretorius 8160968d27 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: I0bd200f584919196e1c4066abed380bf60cd7218
2018-07-30 11:54:19 +00:00
Andy Smith 8daaa755dd 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 aure 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 ceilometer service.

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

Change-Id: Ib14a7a5ec0348933eee4fb1a151010841b29ca1f
2018-07-12 09:56:32 -04:00
Jesse Pretorius 4766a2fa14 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. As there are no required packages left, the task to install them is
also removed.

The openstack_openrc role is now executed once on the designated host, so
it is no longer necessary as a meta-dependency for the role.

Ceilometer no longer has an API service, so the service setup task for it is
removed as it is unnecessary, along with the related variables which are no
longer used.

Depends-On: https://review.openstack.org/579233
Depends-On: https://review.openstack.org/579959
Change-Id: I4072acc1770432526a8bc26ebb5833b6fdd61f0a
2018-07-03 20:00:28 +00:00
Jesse Pretorius 1d4b2fd49e Remove database configuration
Ceilometer no longer requires or supports a database. Instead
it now forwards everything it collects to the message queue
for collection by the other Telemetry services.

Change-Id: Ib8cb1ca3e0ef81c16a6483d20705fa3b237bbc48
2018-06-12 20:29:03 +01:00
Jesse Pretorius 81b5c0ab58 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: If149972b6b7ff9ea92ddc9d115697df3c5737ee6
2018-03-28 10:13:17 +01:00
Zuul 86dcdbd7a5 Merge "ansible-role-requirements: Use systemd_service role from openstack namespace" 2018-03-25 16:53:45 +00:00
Jesse Pretorius 4e6f3d6a5e 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: Ib700db2b61109d475a9cdcd46f6f843002968850
2018-03-25 16:19:05 +01:00
Jesse Pretorius 0c4a0542a7 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: Idcf3555759c30d117d2886d7a33ad5d3a06936ae
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-24 23:19:12 +00:00
Jesse Pretorius 18a7e99c17 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: I48243f5c0ee52ffead357bd5208296a18590e06c
2018-03-13 16:49:18 +00:00
OpenStack Proposal Bot e9b9f1e53e Updated from OpenStack Ansible Tests
Change-Id: I94e0eabe30b55816812265954b92279d0ddfb6c2
2018-02-14 20:05:03 +00:00
Mohammed Naser 33f5dfa7e3 Drop MongoDB installation and API file configurations
Ceilometer no longer stores any data so the MongoDB installation
playbook is not used.  In addition, it no longer has an API so
the api-paste file is useless as well.

Closes-Bug: #1747612
Change-Id: I20104cc357f78b01e2b1246a3f51d609bb2f4f24
2018-02-06 15:28:48 -05:00
Jean-Philippe Evrard bcc6ea58dc 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: Ie76b4452e58b3da82c8119b9bdb3bbb274e17137
2017-10-20 09:23:24 +00:00
Major Hayden 2905009dbf
Add dnf support
This patch adds dnf support for CentOS.

Implements: blueprint centos-and-dnf
Change-Id: Ie394469753f2358d5364728a78f53d5880bddd0a
2017-08-02 15:09:16 -05:00
ZhongShengping 4134dff247 Add ceph_client role
The role 'ceph_client' was not found in openstack-ansible-os_ceilometer,
so add it.

Change-Id: Ib3de8435097bc96ef20827bdc47e98ddbabcdd9f
Closes-Bug: #1704294
2017-07-17 09:40:13 +08:00
Markos Chandras 15ca22d4e0 Add support for the openSUSE Leap distributions
Add support for the openSUSE Leap distributions. Nothing special is
required for this except for adding the appropriate distro variables
file and also update the zypper cache before package installation.
Moreover, for tests to pass, we need to use the OBS repository to
install the MongoDB packages since they are not provided in the default
openSUSE distribution repositories for Leap < 42.3

Change-Id: Ifa3968f7f578174cf12737c758fa2bca30393fb0
2017-07-11 11:19:54 +01:00
Markos Chandras 1d25146bee tests: Provide mongodb configuration template
Newer mongodb packages (>=3) have switched to YAML syntax for
the configuration file. In order to simplify the test environment,
and support both 2.x and 3.x versions, we provide our own configuration
template file based on the CentOS7 one.

Change-Id: If126f2cf813055cfb84cdcafaadcea4f204a76ee
2017-07-11 11:19:49 +01:00
Markos Chandras 6b87f13772 test: test-install-mongodb: Do not mask mongodb_user failures
It's important to know when the creation of the admin user fails
since subsequent tasks may fail if the user doesn't exist.

Change-Id: I67bf22415a0dd2eee8bbf4811615d5b4119d35a5
2017-07-10 16:25:38 +01:00
OpenStack Proposal Bot 53ce6a2c00 Updated from OpenStack Ansible Tests
Change-Id: I96339c6d9125befa5179d5d9f5ac0321fc1dfb82
2017-06-22 15:19:18 +00:00
Miguel Alex Cantu 6ee4647b4d Remove ceilometer endpoint tasks, variables.
The ceilometer endpoint(API) has been removed per
https://review.openstack.org/#/c/437232/

Change-Id: I3ac523ff5e1c17e19b3f4dae1dec9f2e60d93dab
2017-05-24 09:33:24 -05:00
Jesse Pretorius 79d0f9c76e 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: Ie822e7b415897cbdde0bbbbe3f947847663b3944
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:50:47 +01:00
Jimmy McCrory 5713f13f8c 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: I237c550b85e4a06938591280a65ecdfb8de24e46
2017-04-19 18:37:14 -07:00
Miguel Alex Cantu 956ff6642e Fix inventory file bracket
Bracket was mistakenly removed while removing the
ceilometer api service. This commit fixes it

Change-Id: I75fb8efaaba5a3f02fa7af07790066b9b948d570
2017-04-04 17:17:46 +00:00
Miguel Alex Cantu cccafad756 Change ceilometer central container name
to match the naming convention of all of the other
containers. This is needed to properly deprecate
the ceilometer-api service in the integrated repo

Change-Id: I65c5f463fd9cbe471128595432451f3408f0e34d
Partial-Bug: 1666640
2017-03-06 14:51:43 +00:00
Miguel Alex Cantu 5e6ff1ea5f Remove Ceilometer API Service
Ceilometer API is now deprecated in favor of using
Gnocchi, Aodh, and Panko to pull telemetry information.

Change-Id: I4464fc6bd4ad3ef14e2638abcdb86180e82615e1
Closes-Bug: 1666640
2017-03-02 15:42:08 +00:00
Jesse Pretorius e8c2d3a927 Remove unused test vars
The *_requirements_git_install_branch vars are no longer
used and therefore removed.

Change-Id: I6effca932ab2c5f1146fc91e140c40da2bc0c283
2017-02-27 10:02:30 +00:00
Miguel Alex Cantu 8784e73eec Deprecate ceilometer-collector
Per https://review.openstack.org/#/c/413920/, the ceilometer-collector
service is now deprecated.
This commit removes the inventory group mappings to the
ceilometer-collector service/container. It also removes
the service from the bootstrap and testing inventory.
Gnocchi is now explicity used as a publisher in the
pipeline.

Partial-Bug: 1666238
Change-Id: I396b154d106c0afba44d57792ae6dad39b33a6f5
2017-02-22 10:42:06 -05:00
Marc Gariepy 4487698ad3 Add CentOS support for os_ceilometer role
Depends-On: Iaf51101bbaa5eba49f78e950152095913951430e
Change-Id: If002cf8f8f5c04df0dee664640ab725cea8c1a3b
2016-12-20 19:14:13 +00:00
Marc Gariepy 0593030b9d Standardize tests inventory
The config for tests inventory is based on the keystone configuration.

Depends-On: I42e01d8e591c8702a077e4510e2de67932aecf17
Change-Id: I6855362c80ebdfa2243425eb65ad9c5aff27628e
2016-11-22 15:16:45 +00:00
Donovan Francesco (drifterza) 64a1614ce2 Using updated tempest method for ceilometer.
Change-Id: I371e1569c7cc717ce00f2cf939afb004450b1823
2016-11-21 18:45:19 +02:00
Andy McCrae e0a97d3720 Standardize ceilometer testing IP range
This moves the IP range used by test containers to match up with other
hosts, and avoid possible IP conflicts that we've seen by using the
10.100.100.0/24 range

Change-Id: I25e93b088b008e6a6d855665907d9c5b2d2d2b6b
2016-11-15 13:13:28 +00:00
Jenkins 1ba5f61648 Merge "Revert the placement of the glance parts" 2016-10-26 14:41:59 +00:00
Kevin Carter c1671ea0ce 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: I9afd09d4c76febea5896cf6bf7bc284dabea38c3
Related-Bug: #1636606
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-25 19:41:41 +00:00
Jean-Philippe Evrard 2c55935c6e Revert the placement of the glance parts
Latest commit moved the glance parts into the ceilometer container
(located on openstack1 in our tests). This ensures "isolation" again.

Change-Id: I4b1bcc1a363c1dc881e345779735c944f7b4bfb7
2016-10-21 23:06:38 +01:00
Kevin Carter 2ef2b9e735 Remove 'ignore_errors: true' in favor of 'failed_when: false'
This change removes the use of 'ignore_errors: true' because it causes deployers
to see red output and a stacktrace, which traditionally means something is broken,
even when the failure is known to have a fall back option or be intentional. This
conversion will provide a generally cleaner interface.

It should be noted that the 'failed' filter will still function normally. Tasks
with the 'failed_when: false' option will still be marked as 'failed' in any
registered variable. This change simply makes the output look cleaner.

Change-Id: Ide6ae6a5ea5d2279c42003f379b3a3460e62a525
Closes-Bug: #1633438
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-20 20:08:48 +00:00
Steve Lewis 9fd56cba6c Roll-up of multiple fixes for os_ceilometer role
The ceilometer/api/app.wsgi file upstream was modified and broke the
ceilometer role such that the ceilometer api will not start. This
change fixes the role by updating the template derived from that file
to match the new invocation method.

An example of the error being remedied can be seen in patch set 1 of
Related-Change: Ieb5569982f080446295cecc33fb70c6b5d1cb9d6

Additionally, ceilometer-api is served with Apache mod_wsgi so an
init script shouldn't be created.

Also, the ceilometer_db_type now defaults to blank which will omit
the [database] group from the ceilometer.conf which matches the new
upstream default. The db type is overridden as mongodb for testing.

Also fixes an issue in inventory introduced by Change:
Ia74bbcac35c27928f7e96056b9449932253b75de

Change-Id: I48ca99ea58fbb624b8bccf205e40000115c53060
2016-10-20 10:06:04 -07:00
Travis Truman eaf1db5719 Use the rabbit vars defined in common/test-vars.yml
Simple change for consistency. No need to define new/differing
values.

Change-Id: I9415cb332576cb3793f7fb98c70615fb1d943334
2016-10-04 09:51:11 -04:00
Travis Truman ea9b864412 Cleanup test-vars handling
The tox ansible-playbook run specifies the overrides
as extra vars so they need not be referenced within the
playbooks themselves.

Change-Id: Iba0a684250724cac74aeeeef5ec3eecbf0a14533
2016-10-03 11:39:20 -04:00
Travis Truman 5ebd74f40f Add func_gnocchi scenario gate test
This gate test omits installation of MongoDB
and uses gnocchi for all metric storage

Change-Id: I15fff275b3e5eaecb36a0da01c5aafc824c5a288
Closes-Bug: #1628952
2016-09-30 14:02:15 -04:00
Jesse Pretorius 9a056e49a9 Fix git source in ansible-role-requirements
For any openstack git sources, git.openstack.org must be used.

Change-Id: I010004609f1e695eeda350be06a8001e998dad33
2016-09-30 14:40:45 +01:00
Jesse Pretorius 8a6062a0ee 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: Ia5f46e3892ee029e41a3a178d3ce82832e7f9e03
2016-09-27 18:29:03 +01:00