Commit Graph

48 Commits

Author SHA1 Message Date
OpenDev Sysadmins 38339454a1 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
Ian Wienand dbdbe32709 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: Idabf52310d3df157a549727006953b0a02844f56
2019-03-24 20:35:03 +00:00
OpenStack Proposal Bot c6b32238ab Updated from OpenStack Ansible Tests
Change-Id: I2204a5359458db4ef4aa86a929c75706f133d039
2018-09-13 11:17:03 +00:00
huang.zhiping 8397d90580 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: I30e7ac2052b0b247275a50d471db19a971ff9da6
Story: #2002586
Task: #24319
2018-08-21 13:30:04 +00:00
James E. Blair 8573fbea66 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: Id34aa0961b411ca5a634e07cecbe100096847011
2018-02-13 06:29:50 -08:00
Jesse Pretorius 1ca0a8aaea 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: I594b754a3bd915f56cf386b77c1bb0d5f3b6575e
Depends-On: Ia806f19e00703c53f03a2420dbac1da4ba68db6c
2017-11-07 12:36:25 +00:00
Jean-Philippe Evrard 1ef73535ed Initial 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: I7ec2caab755d972215c770a983976b4d48ba32a5
2017-10-23 12:58:26 +00:00
OpenStack Proposal Bot 1bc991d414 Updated from OpenStack Ansible Tests
Change-Id: I0b8940c55e73ced59e4b001ef255dba45015768a
2017-08-25 11:28:16 +00:00
Rick Box 21f3ef0e40 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: I290fd1e5763bc89028bb9207dbd0bba33bacaa06
(cherry picked from commit 4e4600ef93)
2017-05-16 15:31:40 +00:00
Kevin Carter e916db3ad8 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: I1edfb6bd1896f8c2b6f26c77ba02923e69fb2f37
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
(cherry picked from commit 539cc073ee)
2017-04-26 15:22:06 +00:00
Andy McCrae e857c3e999 Adjust gitreview, tox and test-vars to use stable/ocata
Change-Id: Id95a7b854e9a6d297b203add6b735e3bf93fd6bd
2017-02-09 13:39:18 +00:00
Jesse Pretorius 9497b61583 Update repo for stable/ocata
Change-Id: I23a51f3d57dea8791910c31665ca79f8333d4ece
2017-02-08 11:09:18 +00:00
Cao Xuan Hoang 48fe4b2f5e Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I2d515e089c79c28680c122de59b54c4cf1da133c
2017-02-06 17:17:19 +07:00
Logan V dadc21ff4e 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: I4f0ad47547ef9c85dda33ec93de186125323bc9f
2017-01-13 19:52:42 -06:00
Major Hayden 689c3608ac 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: I4955094aaffe6d0aa712b465ab344cc0d97d06de
Signed-off-by: Major Hayden <major@mhtx.net>
2017-01-06 16:51:46 +00:00
ZhongShengping 84e224aec6 Remove pki support
Change-Id: Iffa4f0e4a8f3dc43bb898827ad4fcec6fc428ae2
Implements: blueprint remove-pki
2016-12-29 13:49:33 +08:00
Andy McCrae 4abac1d294 Update repository with reference to role git location
Change-Id: I156b467ae78e9413c2ce8fc3e321c3f8138b2679
2016-12-22 14:26:23 +00:00
OpenStack Proposal Bot aa3338114a Updated from global requirements
Change-Id: I1c69e295fc2e3a0a4e00a13278ad7dd672ffdfc5
2016-12-02 05:11:17 +00:00
Jean-Philippe Evrard cc690f6ae2 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: I8a4693c8169df651dc20ea6bd7ee86f0fba3537f
2016-12-01 14:08:34 +00:00
Flavio Percoco 34e1fd8131 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/8fe8b0cef5dc0e131fa5bf2f0dba2060

Change-Id: Iee72b8f49ccdcb76ae93c922397637bf2b745623
2016-11-25 15:57:44 +01:00
Jesse Pretorius 28c8fda049 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: I791eddf84e91773042b0f8c956c9884e97add591
Partial-Bug: #1637509
2016-11-16 09:14:36 +00:00
Jenkins cea2964d7d Merge "Remove join filter from pip module tasks" 2016-11-10 09:55:27 +00:00
Jesse Pretorius 79b573451a 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: I22304c2d6b019fae8e4234548c3811cb8b1eb02f
2016-11-09 21:54:44 +00:00
Jesse Pretorius c4315fcfce 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: I57d8e2852bd9144e04d614b567222b6950563d92
2016-11-09 21:53:32 +00:00
Jesse Pretorius ba39fc1731 Fix linting issues for ansible-lint 3.4.1
Preparing this role for the ansible-lint version bump

Change-Id: Id2e037949562796d2608626ed8b1be7e004c099a
2016-11-09 21:50:56 +00:00
Jenkins 0767a7b026 Merge "Remove ansible<2.2 apt cache hack" 2016-11-04 14:54:49 +00:00
Jean-Philippe Evrard 99f4e5f877 Remove ansible<2.2 apt cache hack
Now ansible apt module correctly behaves, so it's time
to deprecate these cruft tasks for apt.

Change-Id: Ifb2da4d8f269c2c983c552ec98bb7a7935433dda
2016-11-03 23:39:47 +00:00
Jesse Pretorius 66e90e0f03 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: If468740e7ce07c272f982c2d09709bf0bb2cdfbe
2016-11-02 18:26:42 +00:00
OpenStack Proposal Bot 17235be11e Updated from global requirements
Change-Id: I55de6dce2bb1f83628100d20c95378045294eedc
2016-11-02 15:38:10 +00:00
Jesse Pretorius 1f36f696e8 Use upper constraints for all tox targets
With the implementation of https://review.openstack.org/388087 all
tox targets may now use upper constraints.

Change-Id: I9f247a79bf89bc55d063bbe2aad4c9e5344480c5
2016-10-19 07:45:08 +01:00
Kevin Carter eaac2a2ecc 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: I9f973a7ab43d12eb002b0843552bf20b38d8cc6d
Closes-Bug: #1633438
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-14 16:46:38 -05:00
Andreas Jaeger 0f843464a6 Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: I6615ddb83300b3db578c6ba45e6eb02888cc8937
2016-10-06 20:38:50 +02:00
Jesse Pretorius 9cdd0ca5b5 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I0a7eb08b0c040d6de40eee36f5aaad9d56da025c
2016-10-05 12:17:27 +01:00
Jesse Pretorius 4c8764ff89 Remove install_test_packages variable
With https://review.openstack.org/381479 merged, setting this
variable in tox.ini via an extra var is unnecessary.

Change-Id: Idf76e76c0f481dccfc8f5de9b729bd1c7e89a611
2016-10-04 11:43:29 +01:00
OpenStack Proposal Bot 5868f9b8c8 Updated from global requirements
Change-Id: If69d4ad07f4708f4dba052872045add53f12162c
2016-09-28 16:58:45 +00:00
Jesse Pretorius 00f1555bbb 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: I15440dfae38ad9f1f6f44c5115cb08adda57e453
2016-09-28 11:38:40 +01:00
OpenStack Proposal Bot 7799479151 Updated from global requirements
Change-Id: I92bad1ba1127169881f173746ecaec77f116589a
2016-09-27 10:05:33 +00:00
Jesse Pretorius 13c904bc75 Revert dynamic includes for inventory-based conditionals
Forcing dynamic includes for inventory-based conditionals
results in incomplete execution.

Change-Id: I185ff25bea1b9c23d780203da1b571f6ad1dd854
2016-09-26 19:45:07 +01:00
Jesse Pretorius d74a847fc6 Force Ansible to use dynamic includes
Ansible 2.1.1 introduces a regression in the way conditional
includes are handled which results in every task in the
included file being evaluated even if the condition for the
include is not met. This extends the run time significantly
for a deployment.

This patch forces all conditional includes to be dynamic.

Change-Id: I8ebc3b5f627c3f5fa1f0b20aece10e49ce6220cd
Related-Bug: https://github.com/ansible/ansible/issues/17687
2016-09-22 16:34:00 +01:00
Jenkins 09c6e17e24 Merge "Ansible 2.1.1 role testing" 2016-09-20 15:54:47 +00:00
avnish b64b1e54df Update homepage with developer documentation page
Change-Id: I5f6af9b16225a265e854ceaddac88a09dd20ba56
2016-09-20 13:00:38 +05:30
Major Hayden 3992b860e1 Ansible 2.1.1 role testing
Co-Authored-By: Major Hayden <major@mhtx.net>
Change-Id: I850e7573a279ea317ee6743eae03e23940163453
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-19 15:31:35 -04:00
Jesse Pretorius 968bcf84eb Compress test execution logs
The volume of logs we collect in CI jobs are extensive. This
patch ensures that the logs collected are compressed to reduce
the space taken in CI systems.

PYTHONUNBUFFERED is also set to ensure that the console log
from the CI jobs is recorded in the exact order of execution.

Change-Id: I518a677dff2722c2fd9f343fa67a801252edea1d
Related-Bug: #1620849
2016-09-09 10:50:24 +01:00
Jesse Pretorius 164d780731 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: I4e87b0e30d9c26f664b499a786009b4f60357a03
2016-08-30 20:01:21 +01:00
Kevin Carter 330430c3f9 Enable log collection after functional testing
This change enables log collection within the gate so that further analysis
on gate tasks can be performed post build. This is very useful when
debugging problems.

Change-Id: I93d849ad20517ae09f0b01bb6d3721d498b155cd
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:37:45 -05:00
Travis Truman 574c4e912a Replace references to lxc_hosts role in Makefile
Change-Id: I32dfc2f71079ecd22f21534353924d7cf34a5949
2016-08-25 07:59:00 -04:00
Michael Gugino c62beb2372 Add scaffolding for OpenStack-CI tests
Change-Id: I760a5af77f6baccbc7ac87e001223b3f06233449
2016-08-24 10:38:52 -04:00
Michael Gugino 76a013f814 Initial commit
This is the initial commit for the watcher role.
2016-08-22 13:37:00 -04:00