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