Project

General

Profile

Actions

Bug #27638

closed

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

Added by Christopher Snyder almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
Actions #2

Updated by Samir Jha almost 5 years ago

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

Updated by Jonathon Turel over 4 years ago

  • Target version changed from Katello 3.14.0 to Katello 3.15.0
Actions #4

Updated by James Jeffers over 4 years ago

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

Also available in: Atom PDF