Skip to content

Commit

Permalink
Bump ansible-core to 2.12.8
Browse files Browse the repository at this point in the history
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] ansible/ansible#81830
[3] ansible/ansible#77911
[4] ansible/ansible#78325

Change-Id: I2c15c220ca8c6b6f0cbedbf0da8e802b7c0f5e2d
  • Loading branch information
Dmitriy Rabotyagov authored and noonedeadpunk committed Oct 16, 2023
1 parent ade6c0e commit d163850
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test-ansible-collection-requirements.yml
@@ -1,6 +1,6 @@
collections:
- name: https://opendev.org/openstack/ansible-collections-openstack
version: 1.5.2
version: 2.1.0
type: git
- name: https://opendev.org/openstack/ansible-config_template
version: 1.2.1
Expand All @@ -15,7 +15,7 @@ collections:
version: 2.3.1
type: git
- name: https://github.com/ansible-collections/community.crypto
version: 1.9.5
version: 2.11.1
type: git
- name: https://github.com/ansible-collections/ansible.posix
version: 1.3.0
Expand Down
2 changes: 1 addition & 1 deletion test-ansible-deps.txt
Expand Up @@ -8,7 +8,7 @@
# target configuration in each role.

# The Ansible version used for testing
ansible-core==2.12.6
ansible-core==2.12.8

# Used for the ip filter within ansible
netaddr
Expand Down
6 changes: 6 additions & 0 deletions test-vars.yml
Expand Up @@ -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_zaqar: "{{ ((groups['zaqar_all'] is defined) and (groups['zaqar_all'] | length > 0)) }}"
tempest_use_tempestconf: false
tempest_run_stackviz: False
tempest_image_dir: "/opt/cache/files"
tempest_test_includelist:
- smoke

# openrc settings
openrc_os_password: "{{ keystone_auth_admin_password }}"
Expand Down Expand Up @@ -454,6 +457,9 @@ requirements_git_install_branch: "{{ services_branch.split('/')[-1] }}"
# to always fetch the latest get-pip.py script
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
install_test_packages: True

Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Expand Up @@ -81,6 +81,9 @@ commands =
[testenv:functional]
commands =
bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
setenv =
{[testenv]setenv}
ANSIBLE_OVERRIDES={toxinidir}/test-vars.yml

[testenv:linters]
commands =
Expand Down
4 changes: 2 additions & 2 deletions zuul.d/jobs.yaml
Expand Up @@ -75,7 +75,7 @@
- name: openstack/openstack-ansible-nspawn_container_create
- name: openstack/openstack-ansible-nspawn_hosts
- name: openstack/requirements
override-checkout: stable/yoga
override-checkout: stable/2023.2
pre-run: zuul.d/playbooks/pre-gate-cleanup.yml
run: zuul.d/playbooks/run.yml
post-run: zuul.d/playbooks/post.yml
Expand All @@ -99,7 +99,7 @@
timeout: 5400 # 90 mins
vars:
tox_env: functional
services_branch: stable/yoga
services_branch: stable/2023.2

- job:
name: openstack-ansible-linters
Expand Down

0 comments on commit d163850

Please sign in to comment.