Commit Graph

64 Commits

Author SHA1 Message Date
OpenDev Sysadmins f25f7d3d9b OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:34:29 +00:00
Ian Wienand c37d16bdd1 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I34c278e2b5047b729c5449a5cbce19431d3bf34f
2019-03-24 20:34:59 +00:00
OpenStack Proposal Bot 2f6c11e520 Updated from OpenStack Ansible Tests
Change-Id: I34a513adf42fd7409c10c1990dbd43a060670c2b
2018-09-13 11:14:42 +00:00
huang.zhiping 50eb26d21c import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ia3836199666bd8d81492cfa9487cdfcdf6483921
Story: #2002586
Task: #24319
2018-08-21 13:28:30 +00:00
Zuul b57bf412ad Merge "Initial OSA zuul v3 role jobs" into stable/ocata 2018-04-22 13:14:56 +00:00
Jesse Pretorius b9f73850dd 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.

This also removes the duplicate openstack_hosts role from
the ansible-role-requirements.

Depends-On: https://review.openstack.org/556281
Change-Id: I4f4c9541d80d3c1cdaae7e9ab7f839aac92663b0
2018-04-19 13:45:06 +02:00
Jesse Pretorius 39237726e7 Used cached git sources and enable depends-on
Many, many patches have gone into the master branch to
enable the use of depends-on for role tests and to make
use of the git clones put into place by zuul. This patch
ensures that this functionality is now available for this
branch too.

The primary benefit for doing this would be to make use
of the cached git clones provided by zuul to improve test
reliability.

The secondary benefit would be to have the ability to
use depends-on to test patches together.

However, this will come at the cost of requiring a tox
configuration change, and the implementation of the
tests/tests-repo-clone.sh and run_tests.sh scripts
across all repositories.

Change-Id: Iebc4c4043b20356da259cf3c17e541264d6edb3c
Depends-On: Ia806f19e00703c53f03a2420dbac1da4ba68db6c
2017-11-06 18:23:15 +00:00
Jean-Philippe Evrard fcf53b00cf Add OpenStack-Ansible metadata
We need to add openstack ansible information in the role
metadata to be able to track role maturity. With it,
we can create a role maturity table and take decisions about
role deprecations.

The role maturity state is "incubated", conformly to our
role maturity guidelines. This role work has been started in
ocata and can therefore still have the incubated status in Pike.

Change-Id: Ia2ca7803115547931b452eee778afd02d3e54137
2017-11-01 11:27:59 +00:00
OpenStack Proposal Bot fb1c36ce0b Updated from OpenStack Ansible Tests
Change-Id: Icf5f062668f06f1a547ee94919bc3852699e1c4d
2017-10-24 16:42:49 +00:00
Rick Box 4ce1e4bb9a Fix for lookup and get_url occuring in different places
We use an SSH bastion host which we do our deployment through. The
deployment host doesn't have direct access to the same network as the
host. As a result the venv local checksum lookup fails.

I have described this here:

https://bugs.launchpad.net/openstack-ansible/+bug/1689283

This is a simple fix for this problem, assuming everything is good it
will need repeating in multiple places in the code base.

Change-Id: I240605a8cd76b6ee2dfebde8eb47d577c4f93c95
(cherry picked from commit 72d2de8437)
2017-05-17 20:40:44 +00:00
Kevin Carter 896ca17fc0 Ensure the components are isolated from the system
This creates a specific slice which all OpenStack services will operate
from. By creating an independent slice these components will be governed
away from the system slice allowing us to better optimise resource
consumption.

See the following for more information on slices:

* https://www.freedesktop.org/software/systemd/man/systemd.slice.html

See for following for more information on resource controls:

* https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html

Tools like ``systemd-cgtop`` and ``systemd-cgls`` will now give us
insight into specific processes, process groups, and resouce consumption
in ways that we've not had access to before. To enable some of this reporting
the accounting options have been added to the [Service] section of the unit
file.

Change-Id: I619ab58574eedece7e00e323f91aeaec4c5b5a6e
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
(cherry picked from commit 2746142b68)
2017-04-26 15:22:26 +00:00
Jesse Pretorius a50afe40b8 Update repo for stable/ocata
There are no new tags for the 3rd party repositories, so for now we will
have to use master branch. This should be fixed once we can get tags
or branches created for these repositories.

Additionally, the mirror that is used by default in the upstream
ansible-kafka role is not currently working, we can overwrite this with
a var in the meta/main.yml file.

Change-Id: Ia7dfb8f87bd65ccc20564b31bad991b4136a9815
2017-02-17 16:45:11 +00:00
Andy McCrae 420cfad787 Fix .gitreview and tox to use stable/ocata
NB the ansible-role-requirements are not changed, since we are waiting
on a stable/ocata branch for monasca-api upstream role.

This is being handled in: https://review.openstack.org/#/c/430767/

Fixing gitreview is important for right now though.

Change-Id: I7b2793ef61b6d16b35c07deea36a0f32b286ebff
2017-02-09 13:57:38 +00:00
Cao Xuan Hoang 1797aea3bf Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I3cb4e567eec7798872799144427c980168b9fda2
2017-02-06 17:04:04 +07:00
Jenkins ad4ba7e31e Merge "Update and clean up run_tests.sh" 2017-01-16 14:17:57 +00:00
Jenkins d0c59a4556 Merge "Clean up developer mode logic" 2017-01-16 14:17:52 +00:00
Logan V c2f3c075af Clean up developer mode logic
Fixes the ability to deploy a venv in cases where:
1) developer_mode is not enabled
2) A cached venv is not downloaded from the repo server

Additional cleanup to the developer_mode venv deployment
logic is implemented by adding a *_venv_download var
which is used to decouple developer_mode from the
cached venv extraction process so that a deployer
can force venv builds in-place (disable cached
venv usage) without enabling developer mode
constraints.

Change-Id: I0280dce05e9f20b035e64b85750c72895e83a4b7
2017-01-16 12:55:31 +00:00
Jean-Philippe Evrard 56f560f26a Bring consistency to tags
Some tags were not applied on the highest level and forced duplication.
We apply here our practices to have role_name-(config|install) [1].

[1]: http://docs.openstack.org/developer/openstack-ansible/developer-docs/contribute.html#ansible-style-guide

Change-Id: Icaea5c3ed1a0bbdb664e136b36169fb328a54cff
2017-01-16 12:25:03 +00:00
Major Hayden 45ea8774a1 Update and clean up run_tests.sh
The run_tests.sh script fails when it is run multiple times on CentOS.
The `bindep` run returns an empty list of packages and then `yum`
exits with an error since no packages were provided to install.

This patch checks the length of the `bindep` output and skips the `yum`
installation when the package list is empty.

The patch also cleans up some of the old cruft left over from previous
scripts and avoids repetition.

Change-Id: If25cb0859b59d6b4bb7a7b9906e6c4d49edeabe0
Signed-off-by: Major Hayden <major@mhtx.net>
2017-01-16 10:55:48 +00:00
Donovan Francesco (drifterza) 44111f49f1 Updating paste ini files for new middleware.
Change-Id: If79de2f3500ffcdc5890c4bd8ca26899c24f3542
2017-01-16 12:16:52 +02:00
ZhongShengping d4f2d111df Remove pki support
Change-Id: I428d59e55c6c7d03c1fa7f12d4476fb0245605f2
Implements: blueprint remove-pki
2017-01-04 10:24:18 +08:00
Jean-Philippe Evrard ce8c38afbd Fix the token cache_time
There was a typo in token cache time that prevented the token
cache time to be set.

This should fix it.

Change-Id: I4765c4b29b1bb6f8db67adec93adb8cb5844c167
2017-01-03 11:16:12 +00:00
Andy McCrae e4f81e24a9 Update repository with reference to role git location
Change-Id: I93379c324be254b8f6d8fe9636f152c364c571d1
2016-12-22 14:26:22 +00:00
OpenStack Proposal Bot 6670b44802 Updated from global requirements
Change-Id: Ibad590499f242c2eaf10660a11d6dabce83ae884
2016-12-02 05:11:00 +00:00
Jean-Philippe Evrard 929f552b9d Point roles docs bugs to openstack-ansible LP
Currently when clicking on the small bug in the roles'
docs, we land on openstack-manuals launchpad.

This should solve it.

Change-Id: I92f414b5b811bd936fc9b42d9f04859a95d43f8f
2016-12-01 14:17:27 +00:00
Flavio Percoco 38b7aa6e86 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/b90a093da795afbcdba072f1fa361c14

Change-Id: I1dc1e378b42fd88164c8461a4531ecc61d4eb899
2016-11-25 15:56:58 +01:00
Donovan Francesco (drifterza) 3b46be0ef6 Using updated tempest method for monasca api.
Change-Id: I4bca2ad287f0bf431add62d62022c399cd7a5663
2016-11-17 09:43:40 +02:00
Jenkins 18c5d9f1dc Merge "Adding required monasca roles so users can query the apis." 2016-11-16 13:12:34 +00:00
Jenkins d7666d7ca1 Merge "Reinitialize venv upon install" 2016-11-16 13:12:29 +00:00
Donovan Francesco (drifterza) 7f1c7d8c52 Adding required monasca roles so users can query the apis.
Change-Id: Id225d81b2d24b0e952ca6fb95c77d72ba189fd69
2016-11-16 13:46:49 +02:00
Jesse Pretorius f5a066b36f Reinitialize venv upon install
Reinitializes (copies python, etc binaries) into the venv when
dropping a new venv into place. This is needed because the Python
binary packaged with the venv may not match the Python running on
the host it is being installed to. (ie. in the case of a Xenial
repo container and a Trusty target host.)

Change-Id: Ibedc836cbab89d82d59c90165cbe064775164742
Partial-Bug: #1637509
2016-11-16 09:14:26 +00:00
Donovan Francesco (drifterza) 649eb279fd Removing duplicate monasca_bin variable.
Change-Id: I3c5a51a17af445b4bd83ad1d1e9a11f3bb60678f
2016-11-16 09:51:14 +02:00
Jenkins 9ce2f1c49e Merge "Fix tmpfiles.d when multiple service are running." 2016-11-10 10:21:01 +00:00
Jenkins bfb45472f1 Merge "Use ansible_service_mgr fact" 2016-11-10 10:03:16 +00:00
Donovan Francesco (drifterza) d93457eaf7 Use ansible_service_mgr fact
This patch removes some extra tasks for detecting systemd and uses
the  fact instead.

Partial-Bug: #1640125
Change-Id: I630b9543d6f57292f523b39b9f862ecea9f87439
2016-11-10 08:15:53 +00:00
Jenkins 98d63eca61 Merge "Remove join filter from pip module tasks" 2016-11-10 07:27:44 +00:00
Donovan Francesco (drifterza) 5523577ffe Fix tmpfiles.d when multiple service are running.
- adding {{ monasca_lock_path }} for the monasca lock dir.

Change-Id: I4b6f1e72873b8e11ab805467d59cb45ba9a55af3
2016-11-10 08:39:41 +02:00
Jenkins 25fa6661ae Merge "Addressing grafana external role's required variables." 2016-11-10 02:24:07 +00:00
Jesse Pretorius afa2fba42b Remove join filter from pip module tasks
Ansible 2.2 now treats the 'name' argument for the pip module
as a list, removing the need for us to implement the join
filter to optimise the install execution.

Change-Id: If930f4ac68cb48148c0962338a5bd346ebea3dbc
2016-11-09 21:34:06 +00: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
Donovan Francesco (drifterza) 8ea0b5118d Simplify pip options/constraints mechanism
The current constraints generation for the
installation involves multiple tasks and multiple
variables.

Using multiple tasks extends the installation time
unnecessarily and the additional variables are
unnecessary.

This patch aims to simplify the mechanism and
hopes to speed it up a little.

Change-Id: I213c955f832fd7bd0bc3497d8d8005985ecb04bd
2016-11-09 16:22:42 +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
Jesse Pretorius 86b05c62fe Use updated get_url module checksum functionality
Starting in Ansible 2.0, the get_url [1] module provides the
ability for a checksum to be provided to the get_url module
which will be verified against the local destination file
and the task skipped if it matches.

[1] http://docs.ansible.com/ansible/get_url_module.html

This patch implements the use of this functionality.

The ability to ignore a venv download failure is also removed
as this is not necessary or desirable. It is better for the
download to fail and the playbook execution to stop immediately
so that the failure point is exposed.

Change-Id: I26a6f2ade69d7e85340a37cdb373d7564f41b507
2016-11-07 17:57:50 +00:00
Donovan Francesco (drifterza) 57e026fccd Fix linting issues for ansible-lint 3.4.1
Preparing this role for the ansible-lint version bump

Change-Id: I8bfa56de4f69f121cdec419d3135153dc26edfbd
2016-11-07 18:45:22 +02: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
OpenStack Proposal Bot 8b86e74dd7 Updated from global requirements
Change-Id: If7edfde04715e8d0545a44a77ff04b8104ff43ba
2016-11-02 15:37:53 +00:00
Jenkins 982082cb49 Merge "Refactoring Monasca role to align more with OSA." 2016-11-02 13:45:39 +00: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