Remove subscription-manager from Ansible base image. #5745
Labels
language/ansible
Issue is related to an Ansible operator project
release-blocker
This issue blocks the parent release milestone
Bug Report
From slack:
In short, our container uses the base image quay.io/operator-framework/ansible-operator:v1.13.1 that we then yum update to pick up all cve fixes and the like. But it fails:
Status: Downloaded newer image for quay.io/operator-framework/ansible-operator:v1.13.1
---> 6546e357d59e
Step 4/12 : USER root
---> Running in 39fe0919323f
Removing intermediate container 39fe0919323f
---> f82b4fa1139a
Step 5/12 : RUN yum update -y && yum clean all
---> Running in 4352a9d62f3b
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Red Hat Universal Base Image 8 (RPMs) - BaseOS 9.4 MB/s | 780 kB 00:00
Red Hat Universal Base Image 8 (RPMs) - AppStre 28 MB/s | 2.6 MB 00:00
Red Hat Universal Base Image 8 (RPMs) - CodeRea 272 kB/s | 15 kB 00:00
Error:
Problem 1: cannot install the best update candidate for package python3-subscription-manager-rhsm-1.28.13-4.el8_4.x86_64
Solution
Uninstall subscription manager in the base image.
Add to the base image:
dnf remove -y subscription-manager python3-subscription-manager-rhsm dnf-plugin-subscription-manager
The text was updated successfully, but these errors were encountered: