The openstack/openstack-ansible-tests repository holds various test
files which are duplicated in every openstack-ansible project. Files
are often end up out of sync so we add a new 'propose' job in order
to try and keep all these files in sync.
Change-Id: Ic46cf859c8a6e0eae2576cb11e2798f49ce87b23
Because the job runs against Ubuntu and CentOS7 hosts, we need to ensure
that the task won't fail on an Ubuntu host. This patch changes to a
conditional so the exit code is 0 rather than 1 when running on Ubuntu.
Change-Id: I4ab7194db9ded8190dca209f284e5195e526b695
EPEL is enabled on a per-transaction basis only when required as
part of the playbooks (ex: [1][2]).
By enabling EPEL for the purpose of installing packages out of
bindep and not disabling it afterwards means EPEL is effectively
"bleeding" into every yum transactions, not just the ones where it
is explicitely enabled.
This patch prevents such bleeding by disabling EPEL right after
bindep has finished installed packages.
[1]: 09406de86b/vars/redhat-7.yml (L67)
[2]: 1db27456b9/tasks/pre_install_yum.yml (L53)
Change-Id: Iab82082d24f4edddeedd28964871dafc0379cd44
A few projects used excess '' for node declarations, remove them.
We had 17 'ubuntu-trusty' and 285 ubuntu-trusty,
and 25 'ubuntu-xenial' and 744 ubuntu-xenial.
This changes all node names for consistency, thus making search easier.
Change-Id: I0cf565d1e31ea246f3b9d93bbd8de9980df4c684
We do not need gerrit-git-prep anymore, zuul-git-prep works on all our
slaves and has the advantage of using zuul-cloner so that the local
cache is used and Depends-On works.
Remove gerrit-git-prep and use zuul-git-prep instead everywhere.
Change-Id: I2f106af58f78fceaf3c497fe43e6f5a002695645
The majority of these fedora jobs are non-voting. There is no issue
moving the ansible roles and windmill to fedora-25, as I can clean up
issues as they are found.
Change-Id: Ifc2a000858808438b394a1959d7e89700fb41f00
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We've confirmed the following ansible roles work correctly on Fedora
24, so we can make them voting.
Change-Id: Ifbd3946a065c2d0c3ebbdbfea6a38e6c0b2c2f06
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We have now some rather long job-template names, shorten them with
replacing job-suffix with suffix.
Before this change we had 1500 usages of job-suffix and 700 of just
suffix. This change therefore unifies to one setting.
Note that this does not change any job names at all, they are unchanged,
it changes and shortens only the names of job-templates.
Change-Id: I514df039a848d9f6619bca3adc05dfb84a761fc9
This is a noop change to reduce some duplicate code.
Change-Id: Ib116d64e2035ef65d9fe6feb00b23dcaf67431ec
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Currently the UPPER_CONSTRAINTS_FILE environment variable
is set, but there is no file. This patch ensures that the
file is on the test node too.
Change-Id: I34af5505e9f3f1744134428f03e96d3446e5c2a0
This is part of our effort to migrate from ubuntu-trusty to
ubuntu-xenial.
Change-Id: Ifc69d2b5bb487f4b41bc9a04daec7f265e7463ab
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
In order to facilitate better debugging abilities in check results,
this patch adds the log publisher.
Change-Id: I936a221644d0ac28a64855739934f8359b33ed52
This moves members of the python-jobs group over to using xenial by
default on >= Newton. We continue to run on trusty on older branches.
Change-Id: Idba3883443e53567435c36dcc833b5f3988d8670
This adds the project being tested to PROJECTS var,
so it gets cloned and placed on /opt/stack/new.
Change-Id: I86fb99d913cc7e3fcdf41f70e12b5843a304c944
Otherwise it shows 'openstack/$PROJECT', making tests to fail as
the path does not exist.
e.g.
https://review.openstack.org/#/c/342099/ , patchset 18.
{name} just contains the project name being tested, so just use it.
Change-Id: Ib41e31eba87c863723ede7b89ca81a4c871ad5e5
The job is missing the post_test_hook function export.
This makes the job to bail early, as there's no post test hook
and the cleanup routine is called immediately.
This causes an issue on DevStack, as the cleanup calls the
stackviz installation code which makes a pip install -U, upgrading
underlying libs needed by DevStack like pytz and oslo.context, which
breaks subsequent tests as the latest versions of these libraries
do not work properly with Nova code.
e.g. https://review.openstack.org/#/c/342099/
The tox kickoff script should be in project repo, rather than
relying on the tox macro. The path expected is
tests/hooks/post_test_hook.sh.
Depends-On: Icfe3d5a4f4226d36885664bb95a370ada13c630f
Change-Id: Ie56f41884253d1ab97a205fdb9fbde88963c5fe7
In order to allow the same ansible role jobs to be used for multiple
scenarios, this patch implements an optional job setting which gets
used to modify the tox environment used.
The intent is that the tox configuration used in the target repository
can be specified in the job in order to implement alternative
scenarios.
Change-Id: I2e9c49b6d8181feb24c963d88b2f08e46e8a18c4
The bindep macro installs mysql, which sets the password for root
user.
However, devstack *also* installs is with preseed data with
the default password 'secretpassword', which makes the job
to break in Ubuntu.
Change-Id: Ia81a065a7f02eafda5f0d7b107c88484ddc20d75
The Ansible cloud launcher needs to run with DevStack running
to test that it actually can launch clouds and do anything useful.
Add this job to the ansible role jobs family prior to enabling it
on the cloud launcher project.
Change-Id: I0dc8936929ce7654b16ec1e8e0c7025fcf94b8da
In order to facilitate the execution of the release announcements for
OpenStack-Ansible repositories (which don't publish tarballs), this
patch sets up the announce-release post job for a selective set of
repositories.
Also included is a small fix to the experimental jobs for the os_aodh
repository.
Change-Id: Ia56d236d3a952f9370a0c23622ec08d62f0e287b
Some of the OpenStack-Ansible (OSA) roles construct enough of
an OpenStack environment and execute enough functional testing
for the job to easily reach the 30 min default time limit.
This patch implements a higher limit to cater for these jobs
to ensure that OSA can properly execute functional testing in
the roles without having to compromise o quality to accommodate
a short job timeout.
Change-Id: I780b735de54c23cfea14ddafa8ad39aff16e92eb
This patch adds experimental Ubuntu Xenial jobs to all the
OpenStack-Ansible roles. The jobs are '-nv' jobs so that if
the 'ansible-role-functional-jobs-xenial' is switched from
the experimental queue to the check/gate queue then these jobs
are not affected. It keeps things more flexible.
Change-Id: I23a5dafed406436ecf4299ae269c6eabe2fa07a5
We'll only enable it for ansible-role-zuul to start.
Change-Id: I477d5080967f0ee83bfbe71b981a80c9d402b1bf
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Confirmed by the non-voting jobs, we can now move the voting jobs off
devstack-centos7.
Change-Id: I9b09a45f36fc34323ffe818a471491e7f8d8635c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We are in the process of retiring the devstack-centos7 image. Moving
the non-voting jobs will allow us to smoke test the centos-7 dib
before moving on to voting jobs.
Change-Id: Icbe24ea402be06254b710e504cd2a5f5743876b0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We are having problems retrieving the entire ansible role job console
logs from swift via our logs.openstack.org wsgi service. While we debug
this problem switch these jobs to copy the console log to the disk based
server.
Change-Id: Ia9e89d79016e3fe782505343174b4e9f4a4e57eb
Here we are switching to ubuntu-trusty as our base image, this will
allow us to retire the bare-trusty node.
Change-Id: I80648a9176d6adb759dffb7545ec0cd100d2d60b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Currently openstack ansible project names are pretty long and we need
to do our best to keep below the 128 char that jenkins creates for
directory names. Otherwise, tox explosed.
Change-Id: I4e5b292fcaaffbdfe08331d80c51d40f10fa0e79
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This will be an experimental job to validate bindep works as expected
with ansible-role-jobs.
Change-Id: Ibe787704470e3fb7c2c989055bd986c2df263e56
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This patch implements a change from individual pep8/ansible-lint/etc
lint jobs to using a unified 'linters' tox target.
This reduces nodepool usage across all OpenStack-Ansible and some
other Ansible role repositories.
Change-Id: If9979dc0cad8418bedf7a342754ab68394e0a214
ansible-lint was fixed and should work with ansible 2.0
This reverts commit e15930bcc65d07195197d0b11a1d0481ebff7181.
Change-Id: I2f7caa135c44aad7514bd1c325ddab6136519f9a
New ansible 2.0 doesn't support ansible-lint
This is shown on https://github.com/willthames/ansible-lint/issues/75,
and is breaking our ansible-lint tests.
Change-Id: I3eef420084104eead1fb24eb537723214296fa5d
Rename {pipeline}-{name}-dsvm-functional-{ostype}{job-suffix} to
{pipeline}-{name}-dsvm-ansible-functional-{ostype}{job-suffix} as
jenkins job.
Add print-template-name to it to job-template.
In zuul setup:
- Rename existing template ansible-role-functional-jobs to
ansible-role-functional-jobs-centos7.
- Introduce new template ansible-role-functional-jobs-trusty.
- Use the new template when appropriate.
- Rename jobs for renamed functional jobs.
Change-Id: I34b6bbe1230fa08c3e17d904792d58e2d5c69644
Here we are generating SSH keys for the jenkins user. This give the
ability for Ansible to SSH to localhost to provision functional tests.
We do not want to use root hence the reason for not using the existing
macro.
Change-Id: I2c0283c7547cfd1c98b8cc6bbafbe4a75f2b98bb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This patch switches the Ansible role checks to use the
'dsvm-functional-trusty' job so that it has sudo access.
Change-Id: Ic8d6afd2d72ac8d6bd4290a39a57ec6d8706207b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
In an effort to reduce duplicate code, we've created an
ansible-role-jobs templaste. Any new ansible module should use this
template.
We still have a few projects not using this, but will be converted
once their local tox.ini files have been updated.
Change-Id: I20012637ee0fa04ff910c13630b3b3aa5ce230eb
Depends-On: I1815c42f74df237e810332b55c0e890d80ebada9
Depends-On: I83ae3bb426c1a951216e2ca0509d1b5ab5020ecc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Since we only have a single module right now, we don't need to full
ability to zuul-clone. We are also running into a 127 char shebang
limit with execve so this will reduce our directory name.
Change-Id: I024f414ddae85621a861b21d284ea1e417c4438d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>