Commit Graph

180 Commits

Author SHA1 Message Date
Guilherme Steinmüller 1f61130240 Retire openstack-ansible-os_watcher
Change-Id: I0dfd5318a7b953618673eb4ffd17f89a1cf900c4
2019-04-24 16:51:54 -04:00
Zuul b5085246f4 Merge "missing document start "---"" 2019-04-24 19:27:29 +00:00
OpenDev Sysadmins d351076acb 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:29:55 +00:00
OpenStack Proposal Bot 3583db9eee Updated from OpenStack Ansible Tests
Change-Id: I39cfb0a3e6b2711f34c20c794856729b84a769a7
2019-04-17 19:12:26 +00:00
OpenStack Proposal Bot c396977e9b Updated from OpenStack Ansible Tests
Change-Id: I94f27bcc6a6bedcedc6d9953bcdfb4257837d4e3
2019-04-17 07:26:09 +00:00
OpenStack Proposal Bot 19b5b7a492 Updated from OpenStack Ansible Tests
Change-Id: Iaccabb7a6415ceccb1a3ea758858fb2c11d8b76b
2019-04-13 20:24:02 +00:00
OpenStack Release Bot e15cec56c2 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I9dc3fc12a7d0c02a60268700aa9c1eb8e3058f90
Sem-Ver: feature
2019-04-08 09:22:11 +00:00
Mohammed Naser 15ae123713 docs: drop sphinxmark
sphinxmark is no longer compatible with the latest release of Sphinx
which is causing all of our documentation jobs to fail.  This patch
removes it as our current usage of openstacktheme for documentation
already provides watermarks for current branch and notices for which
branch the documentation covers.

Change-Id: I205f8e402d6dffb99870b4d7bc71ecae4714acdc
2019-04-04 05:06:11 +00:00
OpenStack Proposal Bot 181cffb42f Updated from OpenStack Ansible Tests
Change-Id: I56f63321a47802856e1e6bb388de2fb13e362281
2019-04-01 13:19:34 +00:00
OpenStack Proposal Bot 513283c0dc Updated from OpenStack Ansible Tests
Change-Id: Ia7edbc60fc3d8afc270f688c667a6b432002aea5
2019-03-22 22:06:40 +00:00
OpenStack Proposal Bot 12154f248b Updated from OpenStack Ansible Tests
Change-Id: I44deb55fa2a54a203814c3f8f367402aa70d6ba0
2019-02-27 06:07:03 +00:00
ZhongShengping d293922640 Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: Ia0bf4cce5765d097996acd1e87544295c0cb36d7
2018-12-05 09:14:57 +08:00
Zuul 343dd71d47 Merge "Add bugs url link to README" 2018-11-30 21:30:08 +00:00
Jesse Pretorius 723eb345ea Enable overriding the service setup host python interpreter
In order to enable the service setup host python interpreter to
be changed easily, we make it a variable. This will be useful
when someone sets the service setup host to be the utility
container, because we'll be able to set this var by default.

Change-Id: I25e6d1a047423b719a5f77bb46b529a667dbfa7a
2018-11-30 16:57:34 +00:00
wangqi fa4ee68cec missing document start "---"
Change-Id: I2a9755f43aaafedbdcf659f5f5a55fd6d469fd5a
2018-10-30 07:47:22 +00:00
Jesse Pretorius 0aed681fb8 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: Iab5c434cd40b909b8b43f52cd9f50cae83c1c715
2018-10-23 10:07:09 +01:00
OpenStack Proposal Bot 26457834d8 Updated from OpenStack Ansible Tests
Change-Id: I5257ffcefefe51b3b911362f39e344987a0df9dd
2018-10-02 14:55:28 +00:00
OpenStack Proposal Bot 71b1234cd0 Updated from OpenStack Ansible Tests
Change-Id: Ib6c8bdc16428b0f67b4d7b6af8b71a314283f964
2018-09-29 04:56:26 +00:00
OpenStack Proposal Bot 4d5feaf59c Updated from OpenStack Ansible Tests
Change-Id: I11283a8f1364641794b7cb1de7a2d1f5c6724dc3
2018-09-28 06:22:19 +00:00
Zuul deb4659e30 Merge "Add the project source code repository in README" 2018-09-27 03:21:12 +00:00
ShangXiao d8da053676 Add bugs url link to README
Change-Id: I36c9806b64137f8beaac5d7ec385ed4a66a62eed
2018-09-27 03:10:44 +00:00
Jesse Pretorius ac1d8f6f0a Remove galera_client meta-dependency
Given that pymysql is pure python and has no C binding
dependencies, we no longer need the role to install the
MariaDB client libraries.

Change-Id: Ibdc4cb8c00eeaf5c642d42b09bb311c3124e3de6
2018-09-15 16:45:43 -06:00
jacky06 f3a2bbbc19 Replace Chinese punctuation with English punctuation
Curly quotes(Chinese punctuation) usually input from Chinese input
method. When read from english context, it makes some confusion.

Change-Id: If78e42f9ba169019dc67d0727311b55d19548817
Closes-Bug: #1792131
2018-09-12 13:09:01 +00:00
zhulingjie dfa8ff82ed Remove the static when use include_tasks feature
Change-Id: I36c1bd6c72d56f704e6e838a5b43b6e08b4124fc
2018-09-01 22:31:07 -04:00
Zuul 81677875b3 Merge "Remove the unnecessary =" 2018-09-08 13:46:23 +00:00
Jesse Pretorius 308665677c Use a common python build/install role
In order to radically simplify how we prepare the service
venvs, we use a common role to do the wheel builds and the
venv preparation. This makes the process far simpler to
understand, because the role does its own building and
installing. It also reduces the code maintenance burden,
because instead of duplicating the build processes in the
repo_build role and the service role - we only have it all
done in a single place.

We also change the role venv tag var to use the integrated
build's common venv tag so that we can remove the role's
venv tag in group_vars in the integrated build. This reduces
memory consumption and also reduces the duplication.

This is by no means the final stop in the simplification
process, but it is a step forward. The will be work to follow
which:

1. Replaces 'developer mode' with an equivalent mechanism
   that uses the common role and is simpler to understand.
   We will also simplify the provisioning of pip install
   arguments when doing this.
2. Simplifies the installation of optional pip packages.
   Right now it's more complicated than it needs to be due
   to us needing to keep the py_pkgs plugin working in the
   integrated build.
3. Deduplicates the distro package installs. Right now the
   role installs the distro packages twice - just before
   building the venv, and during the python_venv_build role
   execution.

Depends-On: https://review.openstack.org/598957
Change-Id: I1c2f5d7ef1bb6913f3809c7fd9d9a36cacd0ab4a
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-09-03 18:01:50 +01:00
huang.zhiping aafe20c60f switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

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

Change-Id: I6b2f6e168e19664a00bc09459a678d87a1d76c8a
Story: #2002586
Task: #24319
2018-08-21 13:22:06 +00:00
huang.zhiping 9daf68b85d 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: Ic74a53d79da98a53c84e7d81bc5a2f6184962d44
Story: #2002586
Task: #24319
2018-08-21 13:19:03 +00:00
OpenStack Proposal Bot 7543cc9edd Updated from OpenStack Ansible Tests
Change-Id: Ibc56c3bb84d1713de32a29bf451b1cd44b8e40db
2018-08-20 10:50:50 +00:00
Zuul 3b78c4f9d6 Merge "Trivial: Fix the pep8 warning" 2018-08-17 05:19:37 +00:00
Zuul cd39b5581b Merge "Use the TESTING_BRANCH env var for constraints" 2018-08-17 05:10:38 +00:00
Zuul bdeaf82179 Merge "Add the project source code repository in README" 2018-08-17 04:39:12 +00:00
Zuul 0574b9c845 Merge "Use include_tasks instead of include" 2018-08-17 04:06:41 +00:00
Jesse Pretorius b3200b7388 Use the TESTING_BRANCH env var for constraints
The TESTING_BRANCH environment variable is provided by the
run_tests.sh script and is derived from the .gitreview file.

This ensures that once the master branch becomes a stable
branch, the constraints from the stable branch in the
integrated repository will automatically get used once the
.gitreview file is updated.

To ensure that the required environment variables are present
we export them appropriately in run_tests.sh and modify the
tox configuration to pass them into the tox test.

Change-Id: I219a7890ff7bfd62820ecd454644cfb80461a03f
Needed-By: https://review.openstack.org/579371
2018-08-16 18:28:17 +01:00
OpenStack Proposal Bot 3ce1f7fe5b Updated from OpenStack Ansible Tests
Change-Id: I967d719e0bb21f68741b0b3273fbf38ba44c8d53
2018-08-15 13:42:26 +00:00
caoyuan ffd4d551ee 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: I144d570555780b46ed132e4895d9f640f2d95555
2018-08-15 06:28:28 +00:00
jacky06 3f08d3af2d Add the project source code repository in README
Change-Id: I76ce29555ddba6ae183a9c97187b22efea55c79a
2018-08-15 04:02:24 +00:00
OpenStack Release Bot 489aaff27e Update reno for stable/rocky
Change-Id: Iac976a8fa1b248a8e26713f2a4dab5d73306f98a
2018-08-10 16:48:49 +00:00
Zuul a59b45fb9b Merge "Add bionic to galaxy_info metadata" 2018-08-08 17:57:22 +00:00
Zuul a3fa7c1971 Merge "Allow tags to be used for MQ tasks" 2018-08-08 13:39:32 +00:00
Jesse Pretorius 69e0732b92 Allow tags to be used for MQ tasks
The use of 'include_tasks' and a loop of variables creates
a situation where a user is unable to use tags to scope the
inclusion of only the MQ tasks when running the playbooks.

The use-case this is important for is when the rabbitmq
containers are destroyed and rebuilt in order to resolve
an issue with them, and the user wishes to quickly recreate
all the vhosts/users.

Ansible's 'include_tasks' is a dynamic inclusion, and dynamic
inclusions are not included when using tags. The nice thing
about dynamic inclusions is that they completely skip all
tasks when the condition does not apply, cutting down deploy
time. However, given the use-case, we should rather take on
the extra deployment time.

This patch changes the dynamic inclusion to a static one,
adds a 'common-mq' tag to cover all MQ implementations,
and re-implements the 'common-rabbitmq' tag for the tasks
that relate to RabbitMQ specifically.

It also implements conditionals for each task set so that
the rpc/notify tasks can be skipped if a vhost/user is not
required for that purpose (eg: swift does not use RPC, and
most roles will not use notifications by default).

Depends-On: https://review.openstack.org/588191
Change-Id: I43b13a1c4eda4a8742227380c3fbc1ca9a489408
2018-08-07 15:08:12 +01:00
Jonathan Rosser a85445521f Switch to using project-templates
In order to have more centralized configuration, switch the role
to use the project-template instead.

Mark newly introduced failing jobs as non voting.

Depends-On: https://review.openstack.org/588962
Change-Id: Ib62f45b912659ea5b152287ee17341ea3ef32ab9
2018-08-06 16:44:13 +00:00
wangqi c52377c3f3 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: Ia92c1536f41d2927b66a926d9fe4eecf47e1cdfd
2018-08-06 07:58:26 +00:00
Jonathan Rosser 5bf0a5b963 Add bionic to galaxy_info metadata
Depends-On: https://review.openstack.org/#/c/587534/
Change-Id: I6bce3d0d777eb9c065676a0333fa0a31e31cc990
2018-08-02 20:32:31 +00:00
root 2f5c023f45 Add the project source code repository in README
Change-Id: If3e88b34f0df05a269149e02e53596ac8ddae8b9
2018-07-28 14:18:31 +00:00
Jesse Pretorius 2ab1b99446 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:
- watcher_oslomsg_rpc_setup_host
- watcher_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: I6b781cde4e075dee9d79cf28a55eeda00460c37d
2018-07-27 12:24:39 +01:00
Andy Smith cbe8947272 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 template
* Add oslo.messaging to tests inventory and update tests
* Update readme
* Install extra packages for optional drivers
* Add release note

Change-Id: Ie43bcf4c5a8414072f1917ab8b30a034a514c51b
2018-07-26 09:16:46 +00:00
ZhijunWei 73249b6d11 Remove the unnecessary =
Change-Id: Ic887d41919bab7689fc5fb03886bfda238edc8bb
2018-07-18 00:59:49 -04:00
Jesse Pretorius 4bffc1e91f 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: I32752523e9ed484bf0864be4db146bb333f9f55e
2018-07-14 14:43:20 +01:00
Jean-Philippe Evrard f3ba0f0be6 Fix usage of "|" for tests
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: I595862a7cbee4c10ea0744055391754536b7f312
2018-07-12 16:54:31 +02:00