Ussuri is the last release that openstack-ansible supports Centos-7.
Remove support for Centos-7 for Victoria.
Depends-On: https://review.opendev.org/742166
Change-Id: I3e3cda925b9bf8361f2c3a8d6b2a226e50974001
Added some more support to the vagrant file and tried to keep it in
line with the Ansible-Hardening README.
Change-Id: Icab7aefe50afc3ba78b643cd0bfb8e3569a56853
Signed-off-by: JJ Asghar <awesome@ibm.com>
- Update ZUUL_TESTS_CLONE_LOCATION path to new OpenDev path
- Update location of clones repos
Co-Authored-By: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk>
Change-Id: I3968602b5ddf8a7d3f4292bbc8744d8d6daf1395
Our Vagrantfile is rsync'ing the role to /vagrant. This breaks the
role test since the $WORKING_DIR no longer matches the name of the
OSA project. As such, when we are using vagrant to test the plugins
tests and ops repositories we end up using the HEAD of the repositories
instead of our local copy. We fix this by introducing a new
OSA_PROJECT_NAME and then we test against this to determine the actual
OSA project we are testing
Change-Id: Ic8b99b4f2d241144e1200ddf7c33742e9bc91c5b
This patch adds support for running run_tests.sh on Gentoo by
extending the package install functionality. It also switches git to
only be installed if not already available.
Further, there were some escaping issues that needed to be fixed and are
now fixed.
Change-Id: I89c2fe488ead4721f8b55b285ce932c26e05401b
Current run_tests.sh executes another script (tests-repo-clone.sh)
to clone the tests repo. That script therefore has to be replicated
out to all the other repositories too.
In order to try to reduce the footprint of things that need to be
replicated out to the repositories, we fold the tests repo clone
into run_tests.sh and move the clone of the previous tests repo
into the common test script. We also remove the conditional for
the previous test repo clone as it does no harm to always have it.
To reduce the maintenance when creating new branches, we key the
branch to be cloned by run_tests.sh to the content in the .gitreview
file. This way as soon as a branch is created and that file is
updated, the right branch is cloned and the system becomes self
maintaining.
Some extra comments are added to explain the purpose of variables/
commands and the install_pkg_deps function is changed to just be
in line script as the function is no re-used anywhere else.
We change the set vars in the common script to add x and remove v
to reduce the output verbosity and only output the useful stuff.
Finally, the linters job definition is changed so that it uses
run_tests.sh to execute the lint tests. This simplifies the job
definition and also ensures that zuul runs tests in the same way
that humans do.
Change-Id: I9f26f4f438715ce6361cc9960f58f2d256c5a839
The additional case for Fedora isn't needed since the RHT_PKG_MGR
variable will be populated with yum or dnf properly.
Change-Id: I1adc684b5d15ca0701a3fa9167c96acb3ce45be2
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: Iafe9f3622037d7ba71f9ba8b73217f9e2070f246
In order to properly test changes to the tests repo
when using run_tests.sh, we symlink instead of clone.
Change-Id: Ia5aee41debc357f95709e9d004788998c5ce5065
Rename the 'main' run_tests.sh script to run_tests_common.sh and add
the run_tests.sh script which should be copied across all the OSA
repositories. This script prepares the host for executing the tox
tests and then calls the main 'run_tests_common.sh' script from the
openstack-ansible-tests repository.
Change-Id: I1a53eb835ed07614e1d2a27d7cb8d7c652f8b691
Newest bindep supports the 'redhat' and 'suse' platforms to group
together the CentOS, Fedora, RHEL and openSUSE, SUSE distributions
respectively. As such, update the bindep.txt file to use these
platforms and always require bindep>=2.4.0 which added support for them.
Change-Id: I5490c12db46afc6ad4ec359f9274df9551881219
We need to use 'sudo' when installing packages with pip since we don't
use the --user option otherwise the script will fail if executed as a
non-root user.
Change-Id: I6572825f66fc2a5fb040ab165395b2c385a327b7
Users of run_tests.sh may execute it in a tox environment so we should
not remove the '.tox' directory midway through as that will break
the running tests.
Change-Id: I8f82363a700d94e8d44951599323bbcc07cf7fec
Add support for testing ansible roles against openSUSE Leap 42.1.
This also improves the run_tests.sh script and also adds support for
openSUSE bindep dependencies. Finally, it adds a new BINDEP_FILE
variable which can be used to set an alternative bindep.txt dependency
file.
Change-Id: I57357b119eb1d8eb7726401b8feb48d1ae08c470
This patch implements test scripts intended for use by all
OpenStack-Ansible role tests.
The intent is to simplify the role tox.ini configuration
and ensure that as many changes to role testing configuration
can be managed from the centralised tests repo instead of
individually in each repository.
The common tests repo target location when cloned is changed
from 'tests/playbooks' to 'tests/common' to better reflect
the content and purpose.
Change-Id: I1a93329ada24670c87588ce5a07f92c9bce4e50b
For test repo we should build out keystone + infra services, as they are
the most commonly used roles/tasks.
We still need to add some funcitonal tests but this should give a good
base. The test repo will consume it's own test plays in the same way as
other repositories would. We use a "git clone ." to avoid a situation
where we clone the old repo containing the errors we are trying to fix.
Additional fix, we don't need a "when" clause on the rabbit/db creation
tasks - since these are already delegated and a "run_once" will suffice.
This fix is required for the tests to pass.
Change-Id: I482500872f9e29a71e1576f67a0ad390be2a3ece
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: Ibc90483b4d47e43c675f6696d8e0e6089d108f98
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
- gitignore to avoid bad files
- git review to enable git review/gerrit integration
- Vagrantfile like the other repos, but not useful (yet!)
- dummy inventory file
- setup.* files because docs use pbr
- requirements files
- tox.ini for test launcher to match openstack standards
- scaffolded docs and release notes for gates to pass
Change-Id: Iaf78c8fd3c2138e1d7d4384fb83c90cb7ddd6d10