Actions
Bug #37569
closed"Upload profile - Katello Script Default" doesn't work for SLES
Status:
Closed
Priority:
Normal
Assignee:
Category:
Client/Agent
Target version:
Difficulty:
Triaged:
Yes
Description
When we run Job Template - Upload Profile - Katello Script Default for SLES systems, we get an error -
/var/tmp/foreman-ssh-cmd-d6b585b7-58e7-4ec4-a69a-cfcadb349b49/script: line 2: package-profile-upload: command not found.
due to this, security erratas are not updated and orcharhino remains without a new state by host. Job template does not update package updates after a snapshot rollback
solution:
fix the template by adding the lines
<% elsif @host.operatingsystem.family == 'Suse' -%>
katello-package-upload --force
and template now looks like
#!/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
Files
Updated by The Foreman Bot 5 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/11055 added
Updated by Anonymous 5 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|99f5cdbbd81ce331515d4494bb809fe287ed96a7.
Updated by Chris Roberts 3 months ago
- Category set to Client/Agent
- Assignee set to Usman Sunyaev
Actions