Skip to content

Commit 428f371

Browse files
committed
CI: Pin requests to <2.32 for publish jobs
Periodic jobs are failing because Zuul Ansible executor runs with Ansible 8 which uses community.docker collection that needs requests<2.32. Revert this patch when Zuul supports Ansible 10, and/or Ansible 9 gets fixed community.docker collection. [1] [1] ansible-collections/community.docker#868 Related-Bug: #2066364 Change-Id: I1dda73b0bc9a9f57ec8fda3f2234449b04906410
1 parent 9687115 commit 428f371

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/playbooks/publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
# NOTE(yoctozepto): We need Docker SDK, the best source is Kolla venv.
55
ansible_python_interpreter: "{{ virtualenv_path }}/bin/python"
66
tasks:
7+
# TODO(bbezak): Currently Zuul supports Ansible 8 or 9, which
8+
# uses community.docker collection that needs requests<2.32.
9+
# Remove this when Zuul supports Ansible 10,
10+
# and/or Ansible 9 gets fixed community.docker collection.
11+
# https://github.com/ansible-collections/community.docker/issues/868
12+
- name: Downgrade requests for community.docker collection
13+
command:
14+
cmd: "{{ virtualenv_path }}/bin/python -m pip install -v 'requests<2.32'"
15+
716
- name: List all containers
817
docker_host_info:
918
images: yes

0 commit comments

Comments
 (0)