Bug #27638
closedKatello-package-upload -f does not force upload of combined profile on RHEL 7.7
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
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
Updated by Samir Jha over 5 years ago
- Target version set to Katello 3.14.0
- Triaged changed from No to Yes
Updated by Jonathon Turel over 5 years ago
- Target version changed from Katello 3.14.0 to Katello 3.15.0
Updated by James Jeffers about 5 years ago
- Status changed from Ready For Testing to Closed
- Target version changed from Katello 3.15.0 to Katello Recycle Bin