Project

General

Profile

Actions

Bug #37569

closed

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

Added by Usman Sunyaev 6 months ago. Updated 4 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 #1

Updated by Partha Aji 6 months ago

  • Triaged changed from No to Yes
Actions #2

Updated by The Foreman Bot 6 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/11055 added
Actions #3

Updated by The Foreman Bot 6 months ago

  • Fixed in Releases Katello 4.14.0 added
Actions #4

Updated by Anonymous 6 months ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Chris Roberts 4 months ago

  • Category set to Client/Agent
  • Assignee set to Usman Sunyaev
Actions

Also available in: Atom PDF