We need to downgrade in the pre.yml as well

There's an issue with containers-common not providing all the needed gpg
keys, leading to failures when the job downloads a container.

the directories.yml kicks in too early, so the package isn't installed
at that point, since it's installed as a dependency of podman, installed
during the "Run bindep" task,

Change-Id: I440615cc8fdeaf4a315dede080141528278aec94
Related-Bug: #1988514
(cherry picked from commit 4c6889ece5)
This commit is contained in:
Cédric Jeanneret 2022-09-09 14:05:38 +02:00 committed by chandan kumar
parent e188a9d44b
commit 33e044d9e7
1 changed files with 7 additions and 0 deletions

View File

@ -96,6 +96,13 @@
- name: Reset ssh connection
meta: reset_connection
tasks:
# FIXME(chandankumar): Downgrade ontainers-common due to
# https://bugs.launchpad.net/tripleo/+bug/1988500 and
# https://bugzilla.redhat.com/show_bug.cgi?id=2123611
- name: Downgrade containers-common
shell: |
if [ -n "$(rpm -qa containers-common)" ];then dnf -y downgrade containers-common-1-40.el9; fi
become: true
- name: Get Ansible Galaxy roles
command: >-
{{ ansible_user_dir }}/test-python/bin/ansible-galaxy install