- bumps ansible-lint to 5.0
- updates our custom rules to make them compatible with 5.0
- replace custom module mocking with native ansible-lint ones
- remove custom call of ansible-playbook --syntax-check as now this
is done by ansible-lint
- assured molecule vars are hosted under a vars/ folder in order to
avoid confusing linter detection.
- replaced custom rule for loop var names in role as now this this an
optional core feature of the linter (see config)
- replaced custom rule no-same-owner with opt-in one (see config)
Change-Id: I233fae8c9036d295968a97ee80e07fde8846c633
- moved vars file under vars to avoid failure to load file (newer
version raise error if you try to put vars outside vars/defaults as
it will assume they are broken playbooks.
- added missing file-modes on few tasks
Change-Id: I7217469d089b655ee16cd038391cffa4197c8c83
Part-Of: https://review.opendev.org/c/zuul/zuul-jobs/+/773245
The init command was removed from helm with v3, no initialization is
needed anymore. So only run the init task if the version is <= 2.
Change-Id: I59b0c6efa0a2e6b94267fd3bb7a9701bc4c51048
This prepared for ansible-lint v5 which no longer has exceptions
for task naming, requiring all to be named.
Change-Id: I5e761d1e3836fa270d7afdcf01780320001f820d
Part-Of: #773245
Google keeps changing the with_scopes method signature. We need to
override that method in order to keep our path attribute around when
it re-instantiates the object. As long as we always call refresh
after the object is created, we can drop our custom constructor and
then change with_scopes to use generic arguments. This should keep
up with any further minor API changes without needing further local
changes.
Also, a minor inconsistency in command line arguments (used only for
local manual testing) is corrected.
Change-Id: Id41dfc464eb86429771a78c1fefae006e0915cb9
This reverts commit 862ae3f5d6b1c0e94bb24cfebf0b6b71e680e878.
We did not consider the effoct on the quick-download link that
is generated in opendev:
http://paste.openstack.org/show/802839/
Change-Id: I9702f8f1c0155ee3b13c74baaf2c09db72e690fd
Add zuul_log_storage_proxy_address variable attempting to replace
storage endpoint address with.
The usecase is when the storage proxy is positioned infront of storage
endpoint.
Change-Id: I353cd50b76683212b0319a1e28f34901267c08e4
Added default variables to customize the repo name to download
the chart testing helm chart and config files
Change-Id: I37f8db66bdfef7d64e59a89ca8d99b12f95c1be2
This change adds a new attribute to setup zookeeper TLS.
It also adds support for Debian-derived distros.
Change-Id: Ifb5fc51f3b66be0b2dd1b8003507e21d8afe16fc
This change shortcirtcuits openshift repository installation to avoid
pulling the ansible26 repository.
Change-Id: I912a03e6502627340d002b419514f1ebdffb61e5
It is perfectly valid to want to add a value to a file that
does not exist yet, even the path may be missing.
This fixes last night regression when installing docker no longer
creates the /etc/docker folder, causing our MTU update to fail.
Change-Id: I0f037d1d6664de3c3b777aaf6da9cd7c3e8bb15f
Reference: https://review.rdoproject.org/zuul/builds?job_name=tox-py36-ci-config&project=rdo-infra/ci-config
Change Iba195e7c5cec372c6ba4daf7059da5b6fb6740ec implemented
collection of output for `df -i` (inode counts) and `df -m`
(megabytes data) in validate-host, but did not add them to the
report file template. Correct this oversight so that the collected
information will be included in that file.
Change-Id: I8c2c4a90f18394a04fde84355a89a15bf5aa66b4
Include calls to `df -i` (inode counts) and `df -m` (megabytes data)
in validate-host, to aid in troubleshooting build failures where the
builds start out with too little free space. This way the initial
capacity and utilization of all available filesystems will be
recorded with other basic node diagnostic data.
Change-Id: Iba195e7c5cec372c6ba4daf7059da5b6fb6740ec
This can cause problems where set_fact isn't able to override the
variable when bindep is used with include_role and bindep_file is set as
a variable in the include_role task.
Change-Id: I3099f1802f2d30df1265a9abc11a53c923ed4832
When checking out repo to Windows environment, some files in test
fixture file trees do not get checked out. By setting renaming those
files with an urlencoded name, and populating a temporary directory
with corresponding file structure and decoded filenames during test by
a fixtures script, this will not cause checkout problems for those who
want to read the repo in Win environment
Change-Id: If354eaf3f0bf2e86ddc05e3750aa5f0067dd9e21
For CentOS we are currently using default values for "wheel_mirror" from
roles/configure-mirrors/defaults/main.yaml, which means that the URL
uses the full distribution version, which is wrong, we should be using
the major version instead.
As an example, centos-8 jobs are trying to use
https://mirror.bhs1.ovh.opendev.org/wheel/centos-8.3-x86_64
When they should be using
https://mirror.bhs1.ovh.opendev.org/wheel/centos-8-x86_64
Which makes some jobs fail to find alembic wheel files and then they
fail to build from source because the CI was expecting the wheel mirror
to have it.
This patch fixes this by creating a Centos specific "wheel_mirror"
variable.
Change-Id: I11199cf943a3070fd62bf486fe2b06381db4b04d
(cherry picked from commit c9cad38eebf1bdabb10b79699598d6ba0f098f54)
If the checkout failed the mirror-workspace-git-repos must fail the
job. Otherwise this can lead to a broken gate because a different
state than the state that should be tested can be tested silently.
Change-Id: I98e948776ec4b749bc1475ee3a17e37007591118
The zuul-jobs-test-base-roles-gentoo-17-0-systemd job isn't passing
at the moment because Gentoo now needs Python 3.8 to install
pip/wheel, but the images are still using 3.6. A change has been
merged to correct this, but OpenDev has been unable to build new
Gentoo images since May 2020, so that will need to be solved before
the job will work again. In the meantime, stop running it so our
changes aren't indefinitely blocked. We'll need to apply extra
scrutiny to (or simply hold) any Gentoo-related changes for now
until we're testing that again.
Change-Id: I276bc596c50e7185fae828afa79c73ca9d955ec5
As of version 3.21.0, tox now throws an exception if an environment variable
used in config is missing. We now need to pass the variables also to the task
"Get tox envlist config".
Change-Id: I4073f55b6ba3456f3d2db40cafb692efbb478914
These changes allow to store reno reqs in a dedicated place.
Indeed some projects just want to build release notes without other
documentation.
The releasenotes playbook will use the ensure-sphinx role so I think it
make sense to allow this specific use case (no doc dir available).
Change-Id: I1d244bb47fb6b0b35df130f34007ff51047cd2f1