Bug 1741577
Summary: | package profile upload seems to be broken on RHEL7.7 | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Evgeni Golov <egolov> | |
Component: | katello-agent | Assignee: | Partha Aji <paji> | |
Status: | CLOSED WONTFIX | QA Contact: | Radovan Drazny <rdrazny> | |
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | 6.6.0 | CC: | paji, pstehlik | |
Target Milestone: | 6.6.0 | Keywords: | Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1742208 (view as bug list) | Environment: | ||
Last Closed: | 2019-08-22 14:49:14 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1742208, 1742822, 1743120, 1754859 | |||
Bug Blocks: |
Description
Evgeni Golov
2019-08-15 13:08:44 UTC
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). |