On 30.09.2023, "old" ansible galaxy(galaxy.ansible.com) was replaced
with "galaxy ng"[1].
There was a bug [2][3][4] that was fixed only in a supported
ansible-core versions, so:
- v2.12.8
- v2.13.3
- v2.14.0 (and all newer versions)
All openstack-ansible versions up to Yoga are using older ansible-core
versions.
As a result, bootstrap-ansible.sh script fails with an error:
```
Skipping Galaxy server https://galaxy.ansible.com/api/. Got an
unexpected error when getting available versions of collection
ansible.netcommon:
'/api/v3/plugin/ansible/content/published/collections/index/ansible/netcommon/versions/'
```
This patch bumps ansible-core version to 2.12.8 that includes required
fix.
[1] https://www.ansible.com/blog/new-ansible-galaxy
[2] https://github.com/ansible/ansible/issues/81830
[3] https://github.com/ansible/ansible/issues/77911
[4] https://github.com/ansible/ansible/pull/78325
Change-Id: I2c15c220ca8c6b6f0cbedbf0da8e802b7c0f5e2d
ansible-lint 5.0.9 has merged our NoLogPasswordRule [1]
APTRepositoryCacheUpdateRule is not relevant since
ansible fix has been merged for several years now.
Also ansible-lint provides yamllint check.
This means, we shouldn't really carry custom lint
rules and can jsut use upstream ones.
We also update ansible and collections version to
match with the integrated repo.
[1] 8bef056d69
Change-Id: Ie85d6d0a17849bbc665a7f49644c38b5f6a96bb2
In order to make collection isntallation more reliable we try to
install from git now, since galaxy often timeouts.
Change-Id: Id541d7602f102a4fab0b8fe216935195d38a9baa
This patch moves ansible-lint requirement to test-requirements.txt
since other linters are placed there.
Depends-On: https://review.opendev.org/679238/
Change-Id: I3205470b8299d35af9dc1e0d7b75cdce0266dbfa
This is required to use the openssl_* ansible modules. The package
is added here with pip in preference to a distro package becasue
the pyOpenSSL RPM for centos is too old to work with Ansible 2.7.
Change-Id: Idf620f413fa692818e2a07f048c7f6923bc03a28
With this, the requirement for the os_* modules
changes from shade to openstacksdk.
Depends-On: https://review.openstack.org/611765
Change-Id: Id87d285f6d69a7d688529a87945bca1772acf618
Ansible stable-2.4 branch contains a fix[1] for zypper which massively
improves its performance when installing packages. It's beneficial to
have that until we move to 2.5 in order to improve the gate times.
[1] 608d30ba9b
Change-Id: I5198190d42f655eeba3cbe82b0388de8c4f81ba9
We bump Ansible to 2.4.3.0 which is the same version used in the
integrated repository. Moreover, we also bump ansible-lint to 3.4.21
which is the latest bugfix release.
Change-Id: I4715b3de7da1b2c9f5a169af9835cb8778cfafda
This reverts commit 6713b5e9f7.
With the facility [1] to add parameters (like exclusions) to the
ansible-lint test, and the implementation of an appropriate exclusion
[2] to the integrated repo, we can move forward with updating both
ansible and ansible-lint here.
[1] https://review.openstack.org/527195
[2] https://review.openstack.org/527198
Depends-On: If5746d35ee1b8ce5d6fd1a14a2abca16e29cb899
Depends-On: Icaa997a37d9e31c70e952a80a3f75050965d7ef5
Depends-On: I774829efd763da2400062574bc8266e544d6f75d
Change-Id: I8c3dce39c17175edfb7c37dc0de3e9b9d1d0babb
This commit mutually benefits both OSA and ARA: it allows ARA to
leverage the func jobs of OSA as a mean to test itself in it's
own gate and make sure one of it's patches does not break OSA.
It also moves the ARA callback setup from env-prep to functional
which is the only place where it makes sense to set up ARA in the
first place.
Change-Id: Ia7b46424740da94b82c57b828b53c7993fdaa76b
Since upper-constraints version bump we should build ansible from
source, where the requirement on Jinja2<2.9 is no longer a
consideration.
Change-Id: I54295965e1d2effaa8c7ffee25d0df0fb8fbf707
Following on from https://review.openstack.org/#/c/396324/
Let's set this up for the central test repo (which will filter down for
other role tests).
Change-Id: Ie592aa161890e7b3ef7e586726ce301e24964dd9
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