Project

General

Profile

Bug #27638

Katello-package-upload -f does not force upload of combined profile on RHEL 7.7

Added by Christopher Snyder over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

As of commit 8a5416cf50074dd700414bb0b0d89c4bf414e1a9 in
candlepin/subscription-manager, the file /var/lib/rhsm/packages/packages.json
is no longer used to track the installed packages.
The attached PR changes the purge_package_cache function to remove either the old
file or the new one '/var/lib/rhsm/cache/profile.json'.

Without this change running `katello-package-upload -f` on a RHEL 7.7 system registered to satellite,
doesn't force an upload of the profile.

Steps to reproduce:
On a RHEL 7.7 system with katello-host-tools installed and registered to satellite:
1) katello-package-upload -f # This succeeds in uploading a profile the first time (creating a "Combined Profile Update *" task in Monitor > Tasks)
2) katello-package-upload -f # This (and subsequent calls with no package installations or removals) fails to create another "Combined Profile Update *" task in Monitor > Tasks

Expected Results:
On step 2 there should be another "Combined Profile Update *" task created in Monitor > Tasks

History

#1 Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing

#2 Updated by Samir Jha over 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.14.0

#3 Updated by Jonathon Turel over 2 years ago

  • Target version changed from Katello 3.14.0 to Katello 3.15.0

#4 Updated by James Jeffers over 2 years ago

  • Target version changed from Katello 3.15.0 to Katello Recycle Bin
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF