Project

General

Profile

Actions

Bug #37569

closed

"Upload profile - Katello Script Default" doesn't work for SLES

Added by Usman Sunyaev 5 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Client/Agent
Target version:
Fixed in Releases:
Found in Releases:

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

upload_profile.erb upload_profile.erb 486 Bytes Usman Sunyaev, 06/18/2024 08:36 AM
Actions

Also available in: Atom PDF