Bug 1697563

Summary: unexpected "Loaded plugins: product-id, subscription-manager" when attaching a pool
Product: Red Hat Enterprise Linux 7 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Kevin Howell <khowell>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: high    
Version: 7.7CC: csnyder, jhnidek, jomurphy, redakkan
Target Milestone: rcKeywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-06 12:57:25 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:
Attachments:
Description Flags
rhsm.log from the second subscribed pool none

Description John Sefler 2019-04-08 17:05:56 UTC
Created attachment 1553675 [details]
rhsm.log from the second subscribed pool

Description of problem:

Occassionally while attaching a subscription, the stdout of subscription-manager attach is including an extra line of info "Loaded plugins: product-id, subscription-manager"  This info typically comes from a yum plugin.  Strangely it is showing up when calling subscription-manager attach.


Version-Release number of selected component (if applicable):
[root@hp-sl4540gen8-01 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.3.16-1
subscription management rules: 5.35
subscription-manager: 1.24.3-1.el7
[root@hp-sl4540gen8-01 ~]# rpm -q dnf yum
package dnf is not installed
yum-3.4.3-162.el7.noarch


How reproducible:
Not always

Steps to Reproduce:
After registering to a stage account with SKUs RH00004 and RH0802940....

[root@hp-sl4540gen8-01 ~]# subscription-manager list --consumed
No consumed subscription pools were found.
[root@hp-sl4540gen8-01 ~]# 
[root@hp-sl4540gen8-01 ~]# subscription-manager subscribe --pool=8a99f9a86885be6c01689c8af6362b43
Successfully attached a subscription for: Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)
[root@hp-sl4540gen8-01 ~]# 
[root@hp-sl4540gen8-01 ~]# subscription-manager subscribe --pool=8a99f9a86885be6c01689c8ad14a2b1e
Loaded plugins: product-id, subscription-manager   <============ LOOK HERE
Successfully attached a subscription for: Red Hat Enterprise Linux Academic Desktop, Self-support (2 sockets) with Smart Management


Actual results:
 notice "Loaded plugins: product-id, subscription-manager" on the second call to attach a subscription

Expected results:
 do not expect to see this loaded plugins output which I believe is coming from yum


Additional info:

Comment 3 Chris Snyder 2019-04-08 20:54:18 UTC
I think this issue is related to the following in RHEL 8. The solution may be the same.

bug 1663804

Comment 6 Rehana 2019-05-31 09:14:42 UTC
Reproducing the failure:
======================
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.3.17-1
subscription management rules: 5.35
subscription-manager: 1.24.3-1.el7

# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_test_****
Password: 
The system has been registered with ID: c1c01f15-316a-4ff6-9f80-ecae8e096105
The registered system name is: kvm-02-guest13.rhts.eng.brq.redhat.com

# subscription-manager attach --pool=8a99f9a169d976ae0169e34635ce30fb
Successfully attached a subscription for: Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)

Now attach the second pool :

# subscription-manager attach --pool=8a99f9aa6a74615f016a77720b82072c
Loaded plugins: product-id, subscription-manager
Successfully attached a subscription for: Red Hat Enterprise Linux Developer Workstation, Enterprise
^^ Notice the 'Loaded plugins: message

Comment 7 Rehana 2019-05-31 10:10:06 UTC
Verifying the bug on : 
====================
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.3.17-1
subscription management rules: 5.35
subscription-manager: 1.24.8-1.el7

# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_test***
Password: 
The system has been registered with ID: 16b93470-305c-4dbb-80b7-21045148de94
The registered system name is: kvm-02-guest14.rhts.eng.brq.redhat.com

# subscription-manager attach --pool=8a99f9a169d976ae0169e34635ce30fb
Successfully attached a subscription for: Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)

# subscription-manager attach --pool=8a99f9aa6a74615f016a77720b82072c
Successfully attached a subscription for: Red Hat Enterprise Linux Developer Workstation, Enterprise

# rpm -qa subscription-manager --changelog | grep 1697563
- 1697563: Suppress output when collecting profile (khowell)

Message "Loaded plugins: product-id, subscription-manager" no longer appear during the second auto-attach request.

Based on the above observations , moving the bug to verified

Comment 9 errata-xmlrpc 2019-08-06 12:57:25 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-2019:2008