Commit Graph

97 Commits

Author SHA1 Message Date
OpenDev Sysadmins 667ac863b4 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:36:14 +00:00
Ian Wienand edbafdd53f 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: Ia03c254e60c36b0723336c9330dead528a4233ec
2019-03-24 20:35:03 +00:00
OpenStack Proposal Bot f266bd3f50 Updated from OpenStack Ansible Tests
Change-Id: I814b61918a13ea08e2438e9740ee0787dce758cb
2018-09-13 11:17:16 +00:00
huang.zhiping 72c27a1499 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: Id20bd2e684a5f328eac4c39e9a6ae7e608469ad5
Story: #2002586
Task: #24319
2018-08-21 13:30:14 +00:00
James E. Blair b124496bc6 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: Ibde85013357f34d914f65fb3c92fb7fa4bf86528
2018-02-08 10:05:21 -08:00
Rick Box 6da8d26c1e 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: I5b1ac355370365a7895033e772b418b8c1db8f3f
(cherry picked from commit 7103d2bc59)
2018-01-08 10:56:18 +00:00
Jean-Philippe Evrard 6b9ed19540 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.

On top of that I am trying to uniformize what's in the
usual tests folder. This may fix what's happening in gates not
happening on my machine.

Change-Id: I78c32b740fc291b7373ffa0c19015946decaf743
2017-11-23 12:34:52 +00:00
Jesse Pretorius 8f727dd094 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: Id92a21ba6241bdb8c80ddb4ce5b99fe1cdeedf0c
Depends-On: Ia806f19e00703c53f03a2420dbac1da4ba68db6c
2017-11-06 18:24:35 +00:00
OpenStack Proposal Bot ea6559d83e Updated from OpenStack Ansible Tests
Change-Id: I7d5a81e8dd40f94deb0d49623fa8d0c62dda4c1a
2017-10-24 16:43:21 +00:00
Andy McCrae 9b24aa2890 Fix gitreview and tox requirements to use stable/ocata
Change-Id: I8caa75faf009e7b057dfec7e7bffff4ab181cb8b
2017-02-09 13:43:56 +00:00
Jesse Pretorius 3ea3a42249 Update repo for stable/ocata
Change-Id: I2ff1671f9544091941017c5c00ff57f5568a6662
2017-02-08 11:08:48 +00:00
gecong1973 e595724fe5 Use https instead of http for git.openstack.org
TrivialFix

Change-Id: Ib1bcb6ae5e2ef97579d39bceb93bf076c2492099
2017-02-06 11:39:31 +08:00
Logan V 541537405d 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: Id41f3963f4be4444dca8362e6f71f537f01429f2
2017-01-13 19:52:42 -06:00
Major Hayden e672bb29df 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: Icca27d370bb4fce00474eee57073b29c52f2d011
Signed-off-by: Major Hayden <major@mhtx.net>
2017-01-06 16:51:29 +00:00
gecong1973 f2b3ad95d3 Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them.
More details:
     https://github.com/openstack-dev/hacking/blob/master/setup.cfg

Change-Id: I04e6e910995a274960ad1f975f50dd048defdd0b
2016-12-05 09:52:09 +08:00
OpenStack Proposal Bot 5fc33428bc Updated from global requirements
Change-Id: Ia426b7e929164485879e9c1b9fd38f2200409385
2016-12-02 05:11:19 +00:00
Jean-Philippe Evrard c45bf8e267 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: Ie8857c0697350d5e51a7eab218ca6849ca068caa
2016-12-01 14:05:21 +00:00
Flavio Percoco ca07c9d2a6 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/c49c82425b9ef92d81a4b91bd3fca431

Change-Id: Ic210a59ceb30d61a659038f27a04cc10f67c885a
2016-11-25 16:30:37 +01:00
Jesse Pretorius a713e95929 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: I4ea706ac12e37c42eec41d5d734ad95cdcef9e58
Partial-Bug: #1637509
2016-11-16 09:14:46 +00:00
Jesse Pretorius fd78cdf252 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: Ifbeae6a808f6c8be34cd7bb4d3a8d8e7ba1e5c9d
2016-11-09 21:35:43 +00:00
Jesse Pretorius 038e3c1cf6 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: Ibe9d3a98e663cb1c1d7ae07aa10c9cee8e6aba3f
2016-11-07 17:39:13 +00:00
Jean-Philippe Evrard 635e3a6030 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: I8cf3404243a92578a4ac644295e7897cb5db5176
2016-11-05 00:30:45 +00:00
Jean-Philippe Evrard eee216fdc4 Fix linting issues for ansible-lint 3.4.1
Preparing this role for the ansible-lint version bump

Change-Id: I157d31811c3104a75b14521a560a04f9bd5156b2
2016-11-04 17:39:22 +00:00
Jesse Pretorius ef36c27565 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: I6784878e7a46560bebfb0be9d51b048da3774f70
2016-11-02 18:26:10 +00:00
OpenStack Proposal Bot c4d72da58a Updated from global requirements
Change-Id: Ie09f536c704f6861fb5371f786f16d4c31d320e4
2016-11-02 15:38:12 +00:00
Kevin Carter d355447d75 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: I7290dd50db66234a81a40c5613bf850f23afc938
Related-Bug: #1636606
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-25 19:43:34 +00:00
Jesse Pretorius db9561ff65 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: I3b613bad79b0a4955fac0572a969609a0fda67f4
2016-10-19 07:45:16 +01:00
Kevin Carter 6a2d0be83a 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: Iafffee89b2629643799efd1e2fa233de9ca281f6
Closes-Bug: #1633438
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-14 16:46:43 -05:00
Andreas Jaeger 87d6932d5a 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: I49375cd83b1a95e8d88f122950e783eb3ac69870
2016-10-06 20:38:57 +02:00
Jesse Pretorius 91659f0b41 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I6890f1be557b1ff5d147a1a88a55b466dade64a1
2016-10-05 12:17:38 +01:00
Jesse Pretorius 1a9de4724d 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: I3e1c158caf259c80d66b91abc183e038cd8fa5a6
2016-10-04 11:43:39 +01:00
OpenStack Proposal Bot df51acdfcc Updated from global requirements
Change-Id: If08f37cf7c064ebe675106e6c618c72ab4fbdaa3
2016-09-28 16:58:47 +00:00
Jesse Pretorius 32ab702bbf 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: I8fc46392dbbc87459e9c26e5e350e3f6bf1fd9e7
2016-09-28 11:41:06 +01:00
Jesse Pretorius e132122a84 Revert dynamic includes for inventory-based conditionals
Forcing dynamic includes for inventory-based conditionals
results in incomplete execution.

Change-Id: I2b1aba46918c262e53f46a843b6fb4669b17c367
2016-09-26 19:47:32 +01:00
Jesse Pretorius 79aec1112c 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: Id26b3f254e68f0707c6d8b23b501868213b11224
Related-Bug: https://github.com/ansible/ansible/issues/17687
2016-09-22 16:33:00 +01:00
avnish ab6f6697ad Update homepage with developer documentation page
Change-Id: I43828ad51de98fa0c0fe896445f1a0a6a06c972a
2016-09-20 12:43:47 +05:30
Kevin Carter c5f108bcb3 Update testing bits for consistency
Change-Id: I16179afcff4a3d6dc78d84b0ae5a788751dab969
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-17 17:15:36 -04:00
Kevin Carter bf8f849588
Add role linking to tox tests
Change-Id: I944d110bde6c32f196569a779252537551d36e48
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-14 11:03:20 -05:00
Travis Truman 8926a4008f Ansible 2.1.1 role testing
Change-Id: I8338e497b9779b137d960f486886c89b0fc7f0e0
2016-09-12 16:44:52 -04:00
Jesse Pretorius 58670ced78 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: Iad23c574d88885bde901c2632bcd8fe410686d6b
Related-Bug: #1620849
2016-09-09 10:51:02 +01:00
Jesse Pretorius 833d62c9fe 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: Ib607e78bd3be2f50fbfe2c7098706df7e91cd780
2016-08-30 20:02:12 +01:00
Kevin Carter 2345943971 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: Iea7ef4f1aa6827b6415cba130d7a9b42a1c00b2f
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:37:50 -05:00
Jesse Pretorius cdcd81f676 Make all linting tests use upper-constraints
As per [1] all linting tests can now use upper-constraints. This patch
removes all instances of the install_command override relating to lint
testing which were needed to negate the use of upper-constraints.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: I05db02c80a48d2395e16c7c885c66345f6d066fa
2016-08-20 16:07:10 +01:00
Jenkins b5ccf20b03 Merge "Added SNI support for os_zaqar role via OS packages" 2016-08-19 20:42:52 +00:00
Shashank Tavildar 73b6d0fa30 Added SNI support for os_zaqar role via OS packages
Some Linux distributions, such as CentOS 7 and Xenial, have trouble
validating SSL certificates when using get_url with servers
that use Server Name Indication (SNI).

This patch adds those packages to the list of required packages and
uses bindep to install them in developer test environments the same
way that the gate tests install them.

Change-Id: Ibe601b424074cd4d430c9abb303716972c4209e7
2016-08-19 14:45:43 +00:00
Jenkins 092a8ef519 Merge "Updated from global requirements" 2016-08-18 06:46:30 +00:00
OpenStack Proposal Bot 1faf73f5bd Updated from global requirements
Change-Id: I093e7e75be7514a8b11cf778b99e5a14f10b9de8
2016-08-18 06:06:07 +00:00
OpenStack Proposal Bot 45c5f628b3 Updated from global requirements
Change-Id: Ied0b67631fe38951adb843b4692e653edc809afe
2016-08-18 05:31:09 +00:00
Jesse Pretorius 5297ddba06 Add python packages for SNI support in tests
This adds python packages required for SNI support to ensure that tox
installs the packages into the venv when running tests.

Change-Id: I5a9083a8f641057f7bbbf3252ac94e88a2cceb63
2016-08-16 14:12:30 +00:00
Andreas Jaeger c5da1832a6 Move other-requirements.txt to bindep.txt
The default filename for documenting binary dependencies has been
changed from "other-requirements.txt" to "bindep.txt" with the release
of bindep 2.1.0. While the previous name is still supported, it will
be deprecated.

Move the file around to follow this change.

Note that this change is self-testing, the OpenStack CI infrastructure
will use a "bindep.txt" file to setup nodes for testing.

For more information about bindep, see also:
http://docs.openstack.org/infra/manual/drivers.html#package-requirements
http://docs.openstack.org/infra/bindep/

As well as this announcement:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101590.html

Change-Id: I7d29c8fbd20a02cada82f1d1e7a149b6a4d358d9
2016-08-12 21:02:22 +02:00