-
Bug
-
Resolution: Unresolved
-
Major
-
6.18.0
-
False
-
Important
-
sat-proton
-
None
-
None
-
None
-
None
Description of problem:
When IoP containers are to be updated at a "satellite-maintain update run" it fails to update the container images
How reproducible:
Is this issue a regression from an earlier version:
No
Steps to Reproduce:
1. Place auth file in /etc/foreman/registry-auth.json
2. Make sure there are no other auth files in /etc/containers/auth.json or /root/.config/containers/auth.json
3. Run "satellite-maintain update run"
Actual behavior:The update run fails with error:
Update IoP containers: [FAIL]Failed executing podman pull registry.redhat.io/satellite/iop-insights-engine-rhel9:6.18, exit status 125:Trying to pull registry.redhat.io/satellite/iop-insights-engine-rhel9:6.18... Error: initializing source docker://registry.redhat.io/satellite/iop-insights-engine-rhel9:6.18: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here:https://access.redhat.com/RegistryAuthentication -------------------------------------------------------------------------------- Scenario [Procedures before migrating] failed. The following steps ended up in failing state: [iop-update]
Expected behavior:
The satellite-maintain should use the /etc/foreman/registry-auth.json file when updating the IoP container images
Workaround:
Change file /usr/share/gems/gems/foreman_maintain-1.13.6/definitions/procedures/iop/update.rb
21c21 < execute!("podman pull --authfile /etc/foreman/registry-auth.json #{container_image}") --- > execute!("podman pull #{container_image}")