Bug 1741183
Summary: | Yum plugins are loaded multiple times after updating the host to the latest subscription-manager | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Raviraj Lavande <rlavande> | |
Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> | |
Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 7.8 | CC: | ajoseph, cdonnell, csnyder, dgross, hyu, ilazkano, jhnidek, jsefler, lmiksik, molasaga, mvanderw, ofalk, peter.vreman, pmoravec, rcarrier, rdrazny, redakkan, sadas, wpoteat, yann.lopez | |
Target Milestone: | rc | Keywords: | Triaged, ZStream | |
Target Release: | --- | |||
Hardware: | All | |||
OS: | All | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1809221 (view as bug list) | Environment: | ||
Last Closed: | 2020-03-31 19:40:52 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: | ||||
Bug Blocks: | 1122832, 1744146, 1809221 |
Description
Raviraj Lavande
2019-08-14 13:05:40 UTC
The addition of the setting package_profile_on_trans seems to have been introduced from subscription-manager-1.21.10-3.el7_6 to subscription-manager-1.24.13-1.el7 Digging deeper; Relevant upstream commit: https://github.com/candlepin/subscription-manager/commit/84366179eb7a58734c5c5ba892685996ce0cc675 Additionally the following commit is actually addressing a profile upload issue in RHEL 7.7: https://github.com/candlepin/subscription-manager/commit/4840136342520ce356254c3452a38368a01b6991 => RHBZ#1742208: https://bugzilla.redhat.com/1742208 It's confirmed by the customer that setting package_profile_on_trans=1 eliminates these messages. However, the old code path obviously has now a bug, that leads to the 'Loaded plugin: [ ... ]' issue. And additionally: * No matter if I set package_profile_on_trans to 1 or 0, in both cases it prints 'Uploading Package Profile' after Cleanup stage, before Verifying stage in the yum transaction. * If I set it to 1 - I'd expect it to upload the data, but it doesn't * If I set it to 0 - I'd expect it to NOT upload the data, but it does So it's completely the other way round. All that given. The code mentioned in the upstream commits, doesn't exist in subscription-manager-1.24.13-1.el7, it's only available in subscription-manager-1.25.1-1 (which we do not have in RHEL7 yet). The only code that uses the package_profile_on_trans option is indeed in katello-host-tools-3.5.0-2.el7sat; Namely in: /lib/python2.7/site-packages/katello/utils.py So, we should leave the component of this RHBZ untouched, I guess. The bug fix provided for this bug report also solves issue reported in this bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1787197#c9 Verifying the bug on RHEL7.8 SNAPSHOT 5 COMPOSE ============================================= # rpm -qa subscription* subscription-manager-1.24.26-1.el7.x86_64 subscription-manager-rhsm-1.24.26-1.el7.x86_64 subscription-manager-rhsm-certificates-1.24.26-1.el7.x86_64 [root@hp-z600-02 ~]# rpm -qa subscription-manager --changelog | grep 1741183 -B3 * Wed Jan 22 2020 William Poteat <wpoteat> 1.24.26-1 - 1741183: Yum loaded subscription-manager plugin multiple times Using GA product cert in order to use the GA subscriptions [root@hp-z600-02 ~]# subscription-manager register --auto-attach --username=*** --password=***** Registering to: subscription.rhsm.stage.redhat.com:443/subscription The system has been registered with ID: 2f4ad18e-cdf7-4527-aa42-8224a7c847d8 The registered system name is: hp-z600-02.ml3.eng.bos.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@hp-z600-02 ~]# subscription-manager repos --enable=rhel-\*-satellite-tools-\*-rpms Repository 'rhel-7-server-satellite-tools-6.2-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.7-debug-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6-beta-source-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.6-source-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.4-debug-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.6-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.7-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.3-debug-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.1-debug-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.3-puppet4-debug-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.3-source-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.5-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.3-puppet4-source-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6-puppet-upgrade-beta-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6-beta-debug-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6-puppet-upgrade-beta-debug-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.2-source-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6-puppet-upgrade-beta-source-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.3-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.1-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.1-source-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.5-source-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.2-debug-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.7-source-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.4-source-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6-beta-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.5-debug-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.6-debug-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.4-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-tools-6.3-puppet4-rpms' is enabled for this system. [root@hp-z600-02 ~]# YUM INSTALL KATELLO-AGENT [root@hp-z600-02 ~]# yum install katello-agent Loaded plugins: product-id, search-disabled-repos, subscription-manager Resolving Dependencies --> Running transaction check ---> Package katello-agent.noarch 0:3.5.1-2.el7sat will be installed <SNIP> INSTALL A PACKAGE TO CHECK THE PLUGIN LOADED MESSAGE [root@hp-z600-02 ~]# yum install zsh Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager Resolving Dependencies --> Running transaction check ---> Package zsh.x86_64 0:5.0.2-33.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================== Package Arch Version Repository Size ================================================================================================================ Installing: zsh x86_64 5.0.2-33.el7 rhel-7-server-rpms 2.4 M Transaction Summary ====================================================================================================================== Install 1 Package Total download size: 2.4 M Installed size: 5.6 M Is this ok [y/d/N]: y Downloading packages: zsh-5.0.2-33.el7.x86_64.rpm | 2.4 MB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : zsh-5.0.2-33.el7.x86_64 1/1 Uploading Package Profile Loaded plugins: product-id, subscription-manager Verifying : zsh-5.0.2-33.el7.x86_64 1/1 Installed: zsh.x86_64 0:5.0.2-33.el7 Complete! Uploading Enabled Repositories Report Loaded plugins: product-id, subscription-manager Unable to upload Enabled Repositories Report [root@hp-z600-02 ~]# As demonstrated above , the "Loaded plugins: product-id, subscription-manager" message now appears thrice v/s as many no.of enabled repos. The fix has definitely improved the experience.However ,we understand there can still be some fine tuning done to reduce the plugin load to 1 . As mentioned in comment 31 a separate bug 1797791 has been logged to track this effort. Based on the above comments/observations, moving the bug to Verified Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1028 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |