Description of problem: Since the upgrade (of the client) to RHEL 7.7, "yum install <something>" seems not to properly trigger a package profile upload, leading to wrongly calculated errata information Version-Release number of selected component (if applicable): katello-host-tools-3.5.1-1.el7sat.noarch How reproducible: 100% Steps to Reproduce: 1. yum install walrus-0.71-1 2. hammer host errata list --host <hostname> Actual results: # yum install walrus-0.71-1 Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager, tracer_upload, versionlock Satellite-Satellite-6.6-compose | 4.2 kB 00:00:00 Test_Organization_Test_Product_Zoo | 2.1 kB 00:00:00 sattools-6.6-compose | 3.8 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package walrus.noarch 0:0.71-1 will be installed --> Finished Dependency Resolution Dependencies Resolved ========================= Package Arch Version Repository Size ========================= Installing: walrus noarch 0.71-1 Test_Organization_Test_Product_Zoo 2.4 k Transaction Summary ========================= Install 1 Package Total download size: 2.4 k Installed size: 84 Is this ok [y/d/N]: y Downloading packages: walrus-0.71-1.noarch.rpm | 2.4 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : walrus-0.71-1.noarch 1/1 Uploading Package Profile Uploading Tracer Profile Verifying : walrus-0.71-1.noarch 1/1 Installed: walrus.noarch 0:0.71-1 Complete! # hammer host errata list --host $(hostname -f) ---|------------|------|-------|------------ ID | ERRATUM ID | TYPE | TITLE | INSTALLABLE ---|------------|------|-------|------------ Expected results: # hammer host errata list --host $(hostname -f) ---|----------------|----------|-------------|------------ ID | ERRATUM ID | TYPE | TITLE | INSTALLABLE ---|----------------|----------|-------------|------------ 4 | RHEA-2012:0055 | security | Sea_Erratum | true ---|----------------|----------|-------------|------------ Additional info: "katello-package-upload -f" works as a workaround
tfm-rubygem-katello-3.12.0.7-1.el7sat.noarch is the Katello version on the server
seems also to affect 6.5
TLDR work - around- package_profile_on_trans=0 in /etc/rhsm/rhsm.conf Explanation: Satellite needs reports on Enabled repositories, and installed packages from the client in order to do Errata Management. These reports used to be provided to the satellite by plugins installed via katello-host-tools rpm. In RHEL 8 we moved the upload functionality to subscription-manager (subscription-manager 1.23.2 and above.) Subscription manager added dnf plugins for this functionality but not yum plugins (used in rhel7.) As a side effect we require katello-host-tools plugins to be installed on RHEL 7 and have it call subscription-manager. The way its written Katello-host-tools will check if subscription-manager handles the upload using a config entry in /etc/rhsm/rhsm.conf. If it notices package_profile_on_trans=1, it stops running any further with the assumption that subman plugins will handle the upload. OTOH if host tools notices that package_profile_on_trans=0, it directs the subman to upload the package profile. The problem here occurs because on a 6.5+ Satellite the bootstrap rpm automatically attempts to set package_profile_on_trans to 1 in /etc/rhsm/rhsm.conf . In RHEL 7.7 and 8 that config entry is set to 1. In RHEL 7.6 and before this was not an issue because subscription-manager would fail on an invalid config entry (and hence this var would not get set.) In RHEL 7.7 the subscription manager allows for the config entry but does not do any plugin uploading by itself. Quick Fix - Short term --------- Have the bootstrap script say "If rhel7 set package_profile_on_trans=0". This change would force host tools to always do the uploading (via subman connection). Long Term: --------- Subman has to have yum plugins to upload the profile reports automatically. We can then not require host tools for update.
Connecting redmine issue https://projects.theforeman.org/issues/27650 from this bug
Closing this one as a WONTFIX on Satellite product as we are looking to deliver a fix within subscription-manager (RHEL).