Support for ansible 2.5 was dropped 5 months ago:
https://review.opendev.org/#/c/650431/
Let's bumb the supported version in zuul-jobs to 2.6.
Change-Id: If0df7ddadcadbd744d50f7d6e5f87622dddf3e8e
Adds yamllint to the linters with a minimal configuration, some
rules are disabled to allow us to fix them in follow-ups, if
we agree on them.
Fixes invalid YAML file containing characters inside block.
Fixes few minor linting issues.
Change-Id: I936fe2c997597972d884c5fc62655d28e8aaf8c5
Cap stestr version for python2, version 3.0 does not support python2
anymore but misses proper marks.
Change-Id: I544f4c195643b73cae6b6a201bfb5e0b2cfc59ff
ansible-lint now supports settings in a file, including exclude_paths.
This lets us simplfy the ansible-lint command. Also, stop installing
zuul and just use a fake zuul_return and zuul_console
to fake out ansible-lint.
Change-Id: I1482a9ab915cec2d45695b60cdbeb93d58cb392c
We put this here as the first step in trying to solve updates
to the upstream enum package - but those are really actually only
issues with trying to install zuul into python2.
Change-Id: Ied3b82c5d0fc104d6a9bbfde943be639565adcd1
We need to pin enum34 on python2 because upstream broke it.
Also, we should not install zuul in python2, because it's not targetted
at python2. It's only here so that linters can deal with zuul_return
and other things from its library, so it should be fine to not install
it for python2 unittests.
GitPython was in here as a pin to the versions that support python3
for zuul. Since we're constraining zuul to only python3, we don't need
to mention GitPython at all.
Update the siblings unit test to use requests as the package we expect
to be already installed since we're no longer installing zuul for
python2.
Fedora 29 got archived upstream:
http://mirror.sjc1.vexxhost.openstack.org/fedora/releases/29/README
So we need to switch to fedora 30.
Change-Id: I69e0b03f624ba45889916f89c0912df667aaf096
With the arrival of ansible-lint 4, Jinja2 variable expansions must
include spaces before and after the variable name inside the
brackets.
Adjust the new violations accordingly and remove the rule
206 exclusion.
Change-Id: Ib3ff7b0233a5d5cf99772f9c2adc81861cf34ffa
We have doc requirements in the normal test-requirements list.
This is causing problems for some sphinx related things which
want python3 conflicting with our py27 test job.
Change-Id: I1c4ddba56377097f1ebf39051a496577d38f0494
Move the zuul requirement from test-requirements into the linters
section of tox.ini because we need it as a src install in the tox
env, so that we can reference the ansible library location.
Change-Id: I089c69b539107bdbc25791f5730502a4f46e7cf6
So that the syntax check which runs on playbooks can find zuul_return.
Add re2 library to bindep, it's needed for zuul.
Change-Id: I93213ee19652c0ec9f4bc699204e9445a1e891c8
Iab951c11b23a24757cf5334b36bc8f7d12e19db0 was merged in June to update
Zuul to Ansible 2.5. This is outside the 4 week update period for new
features, so we can update and use Ansible 2.5 features in zuul-jobs.
Add a little bit more of a note in the requirements about what's going
on while here.
Change-Id: Ic018b7259749148660e1bdb6c9a779551390fd09
The swift upload at least needs openstacksdk 0.17.1 which fixes a bug
that prevented upload with the deflate filter. So state this in the
requirements file.
Change-Id: I64aa9ed8246006e7b77e94536e9a62dc1ff16b2a
This adds a role to upload log files to swift. It generates index
files, sets expiration times, and creates partitioned containers as
needed.
This is largely based on the zuul_swift_upload.py script written for
Zuul v2 by Joshua Hesketh.
Change-Id: If520c849fe6a20833804609583ea758e8dd2a6f6
Co-Authored-By: Joshua Hesketh <josh@nitrotech.org>
Add a unit testing framework for python roles. Thanks to Matthew
Treinish for the suggestion of how to perform discovery (and much of the
code which is copied from Tempest).
Change-Id: Iec95dd1026a41614def57c65c3faa0516a682a5a
This change follows I16186c929e7d0e6e34b35271559e555255a52b00 to run
openstack-zuul-jobs-linters on the repository.
Also, silence remaining lint role.
Depends-On: I46c53229f878fc707bab627654d820b891d9f625
Change-Id: I76abf21ea51c5f7553639475e408e06768fb1016
flake8 pulls the right versions that it needs in already,
so listing them explicitly is redundant.
Change-Id: I3441696f055a51c18828d2b345c269c69c1b0e8c
Otherwise ansible-lint picks up the latest version, 2.4, which makes
the linters job horribly fail for the time being.
Change-Id: I31f9aea554b3853a4b9bc0af9a24c4f5c5388c22
In working on a different patch it became clear that flake8 wasn't
actually running such that it found errors. Updated the
test-requirements to match what's in zuul and all started working (and
failing) properly.
Change-Id: Icfdb1fedbd92ff49484b116a0879686581274a25
When we lint our playbooks, we need to also have zuul install our
custom action plugins.
Also default to python3 so we can properly install zuul into tox.
Change-Id: Ib7e39e43005aa73c9d482af6becef3408d097e15
Signed-off-by: Paul Belanger <pabelanger@redhat.com>