-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
6.17.0, 6.18.0, 6.17.3
-
1
-
False
-
Artemis Sprint 156, Artemis Sprint 157
-
sat-artemis
-
None
-
None
-
None
-
None
Description:
The Refresh errata applicability task and the Refresh Applicability tasks on the RHEL 7 hosts run the "dnf" command. The dnf package is not installed on the RHEL 7 hosts, the command displays the following message:
============================
/var/tmp/foreman-ssh-cmd-84bf25cd-80f9-4023-93ab-f1d59109fb40/script: line 2: dnf: command not found
============================
Previewing the template in the task displays:
#!/bin/sh
dnf uploadprofile --force-upload
subscription-manager repos
Checking the template Upload profile - KatelloScript Default used for the task, the following is observed:
#!/bin/sh <% if @host.operatingsystem.family == 'Redhat' -%> dnf uploadprofile --force-upload <% elsif @host.operatingsystem.family == 'Suse' -%> katello-package-upload --force <% else -%> package-profile-upload --force-upload <% end -%> subscription-manager repos
It seems the code itself doesn't have a command for RHEL 7 hosts.
I found the same issue on Satellite 6.17. So, it should be fixed on satellite 6.17 as well.
Steps to Reproduce:
- Navigate to: Satellite WebUI → Hosts → Content Hosts →{{ Click on any RHEL 7 host }}→ Content tab → then Errata tab - Click on 'Refresh Errata Applicability'
It generates the task "Upload package profile for a host" and shows above shared details.
- Navigate to: Satellite WebUI → Hosts → Content Hosts →{{ Click on any RHEL 7 host }}→ Content tab →{{ Click on three vertical dots(kebab menu) }}→{{ Click on 'Refresh Applicability'.}}
It generates the task "Upload package profile for a host" and shows above shared details.
Expected Result:
- For RHEL 7 hosts, yum commands should be provided in the template to run and upload the profile details.