-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
6.17.0
-
2
-
False
-
-
False
-
0
-
Phoenix - Content
-
-
-
Sprint 146
-
None
Description of problem:
User scenario: on a fresh RHEL9 with podman and flatpak installed, trying to call REX to set up flatpak remote fails. The reason is the Host does not have
/run/containers/0/auth.json
file while the
/usr/share/gems/gems/katello-4.16.0.pre.master/app/views/foreman/job_templates/flatpak_login_action.erb
snippet attempts to copy the file to /etc/flatpak/oci-auth.json unconditionally.
While following https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/administering_the_system_using_the_gnome_desktop_environment/assembly_installing-applications-using-flatpak_administering-the-system-using-the-gnome-desktop-environment#proc_enabling-the-red-hat-flatpak-remote_assembly_installing-applications-using-flatpak , the step is optional only. So the Job template should not fail no it.
How reproducible:
100%
Is this issue a regression from an earlier version:
no, a bug in a new feature
Steps to Reproduce:
1. Ensure no `/run/containers/0/auth.json` is present on a RHEL9 system with podman and flatpak (this is default)
2. Run "Set up Flatpak remote" job against this Host
Actual behavior:
The Job fails with output:
1: Login Succeeded! 2: cp: cannot stat '/run/containers/0/auth.json': No such file or directory 3: Exit status: 1 4: StandardError: Job execution failed
Expected behavior:
No such error, the copy command should not fail.
Business Impact / Additional info: