Commit Graph

43 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov d163850d7c Bump ansible-core to 2.12.8
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
2023-10-16 15:32:55 +00:00
Jonathan Rosser 20b54d669b Bump ansible version to 2.12.6
Change-Id: I55b12210a83b50deb2524d6b8face57800fbcdb4
2022-05-26 09:59:00 +01:00
Dmitriy Rabotyagov 6345b19bca Bump ansible and collection versions
Change-Id: If67c448dcefb0fcd7a345fe48da5cebc372c2432
2021-11-10 09:54:12 +00:00
Dmitriy Rabotyagov d88998cd68 Bump ansible-lint and ansible version
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
2021-05-19 18:25:57 +00:00
Dmitriy Rabotyagov 312512da5c Bump ansible-base to 2.10.5
Change-Id: Ia929f3216c48d6a953f6233ddb29a58843ec14cd
2021-02-01 20:48:47 +02:00
Jonathan Rosser 2f89be9cbe Bump ansible version to 2.10.4
Change-Id: I892c3673a167fff17a720101b301b48485fb2bd5
2020-12-16 12:40:43 +00:00
Dmitriy Rabotyagov bf8ace921a Bump ansible-base to match integrated repo
Change-Id: Ibab403afbd18f3b5ae7eb5daa77b0f16ad3c1108
2020-12-04 18:14:25 +02:00
Dmitriy Rabotyagov e1d55ca523 Switch collections to git installations
In order to make collection isntallation more reliable we try to
install from git now, since galaxy often timeouts.

Change-Id: Id541d7602f102a4fab0b8fe216935195d38a9baa
2020-10-16 19:04:02 +03:00
Jonathan Rosser 81878df3db Switch to ansible-base 2.10.1 with collections
Depends-On: https://review.opendev.org/752032
Depends-On: https://review.opendev.org/752958
Depends-On: https://review.opendev.org/754982
Change-Id: Idcf6af00111bcf16678b2dd8728954ee2b1ed81b
2020-09-30 13:24:10 +00:00
Jonathan Rosser f4b4d7c2e2 Bump ansible version to 2.9.13
Depends-On: https://review.opendev.org/752032
Change-Id: Ie8e8d7614a68a9a75d03d8563ba05d4896b60e59
2020-09-21 07:52:33 +00:00
Jonathan Rosser 4ba92e55e0 Update ansible to 2.9.9
Change-Id: I222884187611abcfc0af40b1a8344a227843f66b
2020-05-14 06:30:12 +01:00
Dmitriy Rabotyagov 17b3020309 Update ansible to 2.9.7
Change-Id: If7d41212fa16d9a6cd899d6544518306dcce0c01
2020-04-29 00:49:20 +03:00
Jonathan Rosser 997cf22e1c Update ansible to 2.8.8
Depends-On: https://review.opendev.org/709308
Change-Id: I6f6133a21b339e3de7ffd2dc6b194805bef2b340
2020-02-24 19:38:27 +02:00
Dmitriy Rabotyagov 04d235a92c Move ansible-lint requirement
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
2019-08-29 15:35:39 +03:00
Jonathan Rosser 222148b5a4 Update ansible to 2.7.10
Change-Id: I6547a9d040148f7c02504039f3ae221186cdb87d
2019-05-20 12:02:07 +00:00
Jonathan Rosser 059091261c Add pyOpenSSL as an ansible dependancy in role tests
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
2019-03-12 09:00:45 +00:00
Jonathan Rosser f74eacbe8d Update Ansible to 2.7.8
Change-Id: I04f8e141cb29fba8cbf192115207ec430ae5abd6
2019-02-23 11:51:58 +00:00
Jonathan Rosser 4608981c90 Update ansible to 2.7.5
Change-Id: I94e6b6943b0e03517ed0800e4f00f05ae5dd5ecd
2018-12-18 09:43:32 +00:00
Jonathan Rosser 36a70e0775 Update ansible to 2.7.4
Change-Id: I54853820644370991c33a9d37477dce4cda18477
2018-12-03 09:42:03 +00:00
Jonathan Rosser b16f9d20a6 Update ansible to 2.7.2
Change-Id: I42eabce3e4b6638ded580a09c57ce67eeeefc34d
2018-11-26 12:40:34 +00:00
Jonathan Rosser f31971ecc1 Update ansible to 2.7.1
Change-Id: I8d4f24cb11d3c80be7625e424b0c8c7d7951d66b
2018-11-04 20:55:10 +00:00
Jesse Pretorius 761be4d372 Update ansible to latest stable 2.6.x
With this, the requirement for the os_* modules
changes from shade to openstacksdk.

Depends-On: https://review.openstack.org/611765
Change-Id: Id87d285f6d69a7d688529a87945bca1772acf618
2018-10-23 00:47:38 +00:00
Jesse Pretorius f338e71e62 Update ansible to 2.5.8
Depends-On: https://review.openstack.org/592315
Change-Id: I967232c8869a64f38e0b97f8d10ed4e6c74a326e
2018-08-31 16:41:08 +00:00
Jesse Pretorius 87d19b91e6 Update Ansible to 2.5.5
This fixes several performance and module issues. One such issue we'll
need resolved can be seen here:
 * https://github.com/ansible/ansible-modules-extras/issues/1278

Without this fix the `rabbitmq_user` module will stacktrace if the user
password is change.

This corresponds to https://review.openstack.org/578000

Change-Id: Ife9174ffe7a8c285c3201679a3f49a071b857647
2018-06-28 19:03:03 +01:00
Jean-Philippe Evrard 7f96cb0c91 Update ansible to 2.5.4
Update to latest version of 2.5 ansible.

Change-Id: Idc80fece310adb60540eeadc81f045696275229d
2018-06-02 18:58:08 -05:00
Markos Chandras 2a2a48fdf3 test-ansible-deps: Bump SHA for Ansible 2.4
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
2018-06-01 10:44:58 +01:00
Jesse Pretorius 3987bd6493 Update Ansible to 2.4.4.0
Change-Id: I292a8dc25deae83251d0389f27451b18e23b1fbd
2018-04-23 16:13:45 +01:00
Markos Chandras 25b486ef41 test-ansible-deps: Bump to latest ansible and ansible-lint
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
2018-03-26 11:44:32 +01:00
Jesse Pretorius ac53b4d646 Revert "Revert "Use Ansible 2.4""
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
2017-12-13 09:29:41 +00:00
Jean-Philippe Evrard 6713b5e9f7 Revert "Use Ansible 2.4"
This reverts commit f5ffadcd0b.

Change-Id: Ic0c743577ca4d7024b316e83cd41b909fdc7dc73
2017-12-09 08:13:56 +00:00
Jean-Philippe Evrard f5ffadcd0b Use Ansible 2.4
This bumps the ansible version to 2.4 for role tests.

Change-Id: I061cf7543291305f4831557719ef9b323dcf0f13
2017-12-07 09:30:02 +00:00
Jimmy McCrory b1377d5460 Update Ansible to 2.3.2.0
Change-Id: Idd1e10c5e4218b0d9c5df28dca0d0184bfb61e4f
2017-08-14 16:09:50 -07:00
Kevin Carter 29433ab0bc add netaddr to the test repo install process
This package is required to use the ansible ip filter.
REF: http://docs.ansible.com/ansible/playbooks_filters_ipaddr.html

Change-Id: I0f67105a7100dd65756d4f51578bcdb95e87348a
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-06-30 10:17:09 -05:00
Jesse Pretorius 5bb685a5b9 Update Ansible to 2.3.1.0
2.3.1.0 contains fixes for the following vulnerability:

https://access.redhat.com/security/cve/cve-2017-7481

Change-Id: Ic5364a71255116668adfd3a2930ec91a0a993937
2017-06-02 09:29:16 +01:00
Jimmy McCrory b02c3c619b Update Ansible and Ansible-lint for role tests
Update Ansible to 2.3.0.0 and Ansible-lint to 3.4.12.

Change-Id: I1a2e7f84b6203bd4137900e19a0b05b8c75736aa
2017-04-17 15:57:36 -07:00
Jesse Pretorius afaf2dbea0 Update Ansible for role tests to 2.2.2.0
Change-Id: I63ddc98498a09aadc13f7b01acf66a6975f24705
2017-03-28 09:21:36 +01:00
David Moreau-Simard c928b5774a Install ARA with zuul-cloner if we're running inside the ARA gate
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
2017-02-17 12:49:31 -05:00
Andy McCrae d122526b9e Build from source for ansible
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
2017-02-12 06:34:22 -08:00
Jimmy McCrory 737a9c3486 Update Ansible to v2.2.1.0
Change-Id: I6be83dd2b350a8ecbf4dac24764629cf9f34cce2
2017-01-17 13:19:17 -08:00
Andy McCrae 55d324e4b1 Setup ARA reporting for central tests repository
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
2016-12-16 16:48:19 +00:00
Jesse Pretorius 0b23ee61b6 Update Ansible to v2.2.0.0-1
Change-Id: I84deb091f490c9e3456d40616c3c42ed103d98d9
2016-11-04 15:57:18 +00:00
Jesse Pretorius 2f0b0d0d24 Update ansible-lint to 3.4.1
Change-Id: I5a9ebfd851f850f026484621e3aef6bcf16a786b
2016-11-04 09:15:38 +00:00
Jesse Pretorius 9a09e9ff07 Implement centralised test scripts
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
2016-09-23 16:04:36 +01:00