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
This commit is contained in:
Dmitriy Rabotyagov 2023-10-05 11:01:35 +02:00 committed by Dmitriy Rabotyagov
parent ade6c0e8e0
commit d163850d7c
5 changed files with 14 additions and 5 deletions

View File

@ -1,6 +1,6 @@
collections: collections:
- name: https://opendev.org/openstack/ansible-collections-openstack - name: https://opendev.org/openstack/ansible-collections-openstack
version: 1.5.2 version: 2.1.0
type: git type: git
- name: https://opendev.org/openstack/ansible-config_template - name: https://opendev.org/openstack/ansible-config_template
version: 1.2.1 version: 1.2.1
@ -15,7 +15,7 @@ collections:
version: 2.3.1 version: 2.3.1
type: git type: git
- name: https://github.com/ansible-collections/community.crypto - name: https://github.com/ansible-collections/community.crypto
version: 1.9.5 version: 2.11.1
type: git type: git
- name: https://github.com/ansible-collections/ansible.posix - name: https://github.com/ansible-collections/ansible.posix
version: 1.3.0 version: 1.3.0

View File

@ -8,7 +8,7 @@
# target configuration in each role. # target configuration in each role.
# The Ansible version used for testing # The Ansible version used for testing
ansible-core==2.12.6 ansible-core==2.12.8
# Used for the ip filter within ansible # Used for the ip filter within ansible
netaddr netaddr

View File

@ -385,7 +385,10 @@ tempest_service_available_nova: "{{ ((groups['nova_all'] is defined) and (groups
tempest_service_available_swift: "{{ ((groups['swift_all'] is defined) and (groups['swift_all'] | length > 0)) }}" tempest_service_available_swift: "{{ ((groups['swift_all'] is defined) and (groups['swift_all'] | length > 0)) }}"
tempest_service_available_zaqar: "{{ ((groups['zaqar_all'] is defined) and (groups['zaqar_all'] | length > 0)) }}" tempest_service_available_zaqar: "{{ ((groups['zaqar_all'] is defined) and (groups['zaqar_all'] | length > 0)) }}"
tempest_use_tempestconf: false tempest_use_tempestconf: false
tempest_run_stackviz: False
tempest_image_dir: "/opt/cache/files" tempest_image_dir: "/opt/cache/files"
tempest_test_includelist:
- smoke
# openrc settings # openrc settings
openrc_os_password: "{{ keystone_auth_admin_password }}" openrc_os_password: "{{ keystone_auth_admin_password }}"
@ -454,6 +457,9 @@ requirements_git_install_branch: "{{ services_branch.split('/')[-1] }}"
# to always fetch the latest get-pip.py script # to always fetch the latest get-pip.py script
pip_get_pip_force: no pip_get_pip_force: no
# We do not have a repo container, thus we should not attempt to build wheels
venv_wheel_build_enable: False
# Test install options # Test install options
install_test_packages: True install_test_packages: True

View File

@ -81,6 +81,9 @@ commands =
[testenv:functional] [testenv:functional]
commands = commands =
bash -c "{toxinidir}/tests/common/test-ansible-functional.sh" bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
setenv =
{[testenv]setenv}
ANSIBLE_OVERRIDES={toxinidir}/test-vars.yml
[testenv:linters] [testenv:linters]
commands = commands =

View File

@ -75,7 +75,7 @@
- name: openstack/openstack-ansible-nspawn_container_create - name: openstack/openstack-ansible-nspawn_container_create
- name: openstack/openstack-ansible-nspawn_hosts - name: openstack/openstack-ansible-nspawn_hosts
- name: openstack/requirements - name: openstack/requirements
override-checkout: stable/yoga override-checkout: stable/2023.2
pre-run: zuul.d/playbooks/pre-gate-cleanup.yml pre-run: zuul.d/playbooks/pre-gate-cleanup.yml
run: zuul.d/playbooks/run.yml run: zuul.d/playbooks/run.yml
post-run: zuul.d/playbooks/post.yml post-run: zuul.d/playbooks/post.yml
@ -99,7 +99,7 @@
timeout: 5400 # 90 mins timeout: 5400 # 90 mins
vars: vars:
tox_env: functional tox_env: functional
services_branch: stable/yoga services_branch: stable/2023.2
- job: - job:
name: openstack-ansible-linters name: openstack-ansible-linters