RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1741183 - Yum plugins are loaded multiple times after updating the host to the latest subscription-manager
Summary: Yum plugins are loaded multiple times after updating the host to the latest s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.8
Hardware: All
OS: All
high
high
Target Milestone: rc
: ---
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: 1122832 1744146 1809221
TreeView+ depends on / blocked
 
Reported: 2019-08-14 13:05 UTC by Raviraj Lavande
Modified: 2024-12-20 18:53 UTC (History)
20 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1809221 (view as bug list)
Environment:
Last Closed: 2020-03-31 19:40:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2204 0 None closed 1741183: Yum loaded subscription-manager plugin multiple times 2021-02-18 23:32:36 UTC
Red Hat Bugzilla 1742208 0 urgent CLOSED package profile upload seems to be broken on RHEL7.7 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1743120 0 urgent CLOSED package profile upload seems to be broken on RHEL7.7 [rhel-7.7.z] 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 3667101 0 None None None 2020-03-02 13:38:25 UTC
Red Hat Product Errata RHBA-2020:1028 0 None None None 2020-03-31 19:41:37 UTC

Description Raviraj Lavande 2019-08-14 13:05:40 UTC
Description of problem:

Regression of Bug 1625649


ENV:-

~~~
Red Hat Satellite 6.5.2
RHEL 7.7
~~~

~~~
# rpm -qa | grep katello*
katello-host-tools-fact-plugin-3.5.0-2.el7sat.noarch
katello-ca-consumer-mysat.lab.redhat.com-1.0-1.noarch
katello-agent-3.5.0-2.el7sat.noarch
katello-host-tools-3.5.0-2.el7sat.noarch
~~~

~~~
# rpm -qa | grep subscription-manager
subscription-manager-rhsm-1.24.13-1.el7.x86_64
subscription-manager-plugin-container-1.24.13-1.el7.x86_64
subscription-manager-1.24.13-1.el7.x86_64
subscription-manager-rhsm-certificates-1.24.13-1.el7.x86_64
~~~


ISSUE
-----

# yum update rsyslog
Loaded plugins: changelog, enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos,
              : subscription-manager
                                          | 2.1 kB  00:00:00     
rhel-7-server-extras-rpms                                                              | 2.0 kB  00:00:00     
rhel-7-server-optional-rpms                                                            | 2.0 kB  00:00:00     
rhel-7-server-rh-common-rpms                                                           | 2.1 kB  00:00:00     
rhel-7-server-rpms                                                                     | 2.0 kB  00:00:00     
rhel-7-server-satellite-tools-6.5-rpms                                                 | 2.1 kB  00:00:00     
rhel-7-server-supplementary-rpms                                                       | 2.0 kB  00:00:00     
rhel-7-server-thirdparty-oracle-java-rpms                                              | 1.9 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package rsyslog.x86_64 0:8.24.0-34.el7 will be updated
---> Package rsyslog.x86_64 0:8.24.0-41.el7_7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================
 Package              Arch                Version                       Repository                       Size
==============================================================================================================
Updating:
 rsyslog              x86_64              8.24.0-41.el7_7               rhel-7-server-rpms              617 k

Transaction Summary
==============================================================================================================
Upgrade  1 Package

Total download size: 617 k
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for rhel-7-server-rpms
rsyslog-8.24.0-41.el7_7.x86_64.rpm                                                     | 617 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : rsyslog-8.24.0-41.el7_7.x86_64                                                             1/2 
  Cleanup    : rsyslog-8.24.0-34.el7.x86_64                                                               2/2 
Uploading Package Profile
Loaded plugins: langpacks, product-id, subscription-manager
Loaded plugins: langpacks, product-id, subscription-manager
Loaded plugins: langpacks, product-id, subscription-manager
Loaded plugins: langpacks, product-id, subscription-manager
Loaded plugins: langpacks, product-id, subscription-manager
Loaded plugins: langpacks, product-id, subscription-manager
Loaded plugins: langpacks, product-id, subscription-manager
Loaded plugins: langpacks, product-id, subscription-manager
  Verifying  : rsyslog-8.24.0-41.el7_7.x86_64                                                             1/2 
  Verifying  : rsyslog-8.24.0-34.el7.x86_64                                                               2/2 

Updated:
  rsyslog.x86_64 0:8.24.0-41.el7_7                                                                            

Complete!
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, subscription-manager
~~~

This happens when yum performances any transactions (such as update, downgrade etc) not with every yum transaction (such as yum repolist etc).



~~~
[1]. The "Loaded Plugins" output is repeated multiple times after a yum transaction
---> https://access.redhat.com/solutions/3667101
~~~
   
~~~  
[2]. Bug 1684690 - Yum plugins are loaded multiple times after updating the host to the latest katello-agent packages
---> https://bugzilla.redhat.com/show_bug.cgi?id=1684690
~~~

Comment 8 Oliver Falk 2019-08-22 09:56:38 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

Comment 9 Oliver Falk 2019-08-22 13:17:10 UTC
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.

Comment 28 Jiri Hnidek 2020-01-27 17:17:48 UTC
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

Comment 33 Rehana 2020-02-11 08:48:48 UTC
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

Comment 46 errata-xmlrpc 2020-03-31 19:40:52 UTC
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

Comment 47 Red Hat Bugzilla 2024-04-14 04:25:14 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.