Packer: workaround missing authselect-compat-1.2.5-2.el9_1 in RHUI repos
`authselect-compat-1.2.5-2.el9_1` package is currently missing in AWS RHUI el9 AppStream repositories, which makes `dnf upgrade` fail on RHEL-9.1. This is a RHUI-specific issue, since the package is available in CDN repos. In order to workaround the issue for now, `authselect-compat` needs to be removed as part of the upgrade in order for it to succeed. Use `--allowerasing` instead of just removing the issue, because this will ensure that `authselect-compat` will be upgraded just fine, once the issue is resolved. Fix the issue in the CI script that builds the image using Packer, as well as the Ansible playbook used by Packer to build the image. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
73882b7289
commit
0a4a75e19e
2 changed files with 15 additions and 0 deletions
|
|
@ -24,6 +24,18 @@
|
|||
# if osbuild_commit is not defined, osbuild from distribution repositories is installed
|
||||
when: osbuild_commit is defined
|
||||
|
||||
# Upgrading authselect without --allowerasing currently fails on RHEL 9.1 with RHUI repos
|
||||
# https://issues.redhat.com/browse/RHUIOPS-84
|
||||
# TODO: remove this once the issue is fixed
|
||||
- name: Upgrade authselect package
|
||||
dnf:
|
||||
name: authselect
|
||||
state: latest
|
||||
allowerasing: yes
|
||||
register: result
|
||||
retries: 5
|
||||
until: result is success
|
||||
|
||||
- name: Upgrade all packages
|
||||
package:
|
||||
name: "*"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue