Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 683968

Summary: leftover DEBUG statements from development are being logged to stderr - should be removed
Product: Red Hat Enterprise Linux 6 Reporter: John Sefler <jsefler>
Component: python-rhsmAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1CC: bkearney
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:35:26 UTC Type: ---
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: 568421    

Description John Sefler 2011-03-10 19:46:24 UTC
Description of problem:
After subscribing to a subscription that has "requiredTags" in the granted entitlement's contentNamespace, running yum repolist will throw a DEBUG message when there is not enough installed product certs that "provides" all of the required tags. 


Version...
[root@jsefler-onprem03 ~]# rpm -q python-rhsm
python-rhsm-0.95.4-1.git.0.1189f1a.el6.noarch

ssh root.redhat.com yum repolist enabled
--disableplugin=rhnplugin
Stdout:
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
repo id repo name status
always-enabled-content always-enabled-content 0
content-label content 0
repolist: 0
Stderr:
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG1', skipping content:
tagged-content
DEBUG:rhsm-app.repolib:Missing required tag 'TAG2', skipping content:
tagged-content
INFO:rhsm-app.repolib:repos updated: 12
https://cdn.redhat.com/foo/path/always/repodata/repomd.xml: [Errno 14] HTTP
Error 403 : https://cdn.redhat.com/foo/path/always/repodata/repomd.xml
Trying other mirror.
ExitCode: 0

Comment 2 James Bowes 2011-03-21 13:50:58 UTC
applied to master and RHEL6

Comment 4 John Sefler 2011-03-21 20:05:36 UTC
VERIFYING VERSION...
[root@jsefler-onprem-server ~]# rpm -q subscription-manager
subscription-manager-0.95.5-1.git.24.5ce95d1.el6.x86_64
[root@jsefler-onprem-server ~]# rpm -q python-rhsm
python-rhsm-0.95.4-1.git.1.7bf4128.el6.noarch


[root@jsefler-onprem-server ~]# subscription-manager register --username=testuser1 --password=password
cb33582d-8ac7-4a18-97c8-c37b69ba024e jsefler-onprem-server.usersys.redhat.com
[root@jsefler-onprem-server ~]# subscription-manager list --available


ProductName:       	Awesome OS with up to 4 virtual guests
ProductId:         	awesomeos-virt-4         
PoolId:            	8a90f8b42ed9ca4c012ed9cae68d0136
Quantity:          	40                       
Expires:           	2012-03-19    

[root@jsefler-onprem-server ~]# subscription-manager subscribe --pool=8a90f8b42ed9ca4c012ed9cae68d0136
[root@jsefler-onprem-server ~]# 
[root@jsefler-onprem-server ~]# openssl x509 -text -in /etc/pki/entitlement/3963435792298502355.pem | egrep -A1 1.3.6.1.4.1.2312.9.2...1.2
            1.3.6.1.4.1.2312.9.2.2.1.2: 
                ..tagged-content
--
            1.3.6.1.4.1.2312.9.2.1.1.2: 
                ..always-enabled-content
--
            1.3.6.1.4.1.2312.9.2.0.1.2: 
                ..never-enabled-content

[root@jsefler-onprem-server ~]# openssl x509 -text -in /etc/pki/entitlement/3963435792298502355.pem | egrep -A1 1.3.6.1.4.1.2312.9.2...1.10
            1.3.6.1.4.1.2312.9.2.2.1.10: 
                ..TAG1,TAG2


[root@jsefler-onprem-server ~]# yum repolist enabled 
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
https://cdn.redhat.com/foo/path/always/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403"
Trying other mirror.
repo id                                                               repo name                                                              status
always-enabled-content                                                always-enabled-content                                                 0
content-label                                                         content    


^^^ VERIFIED - DEBUG statements have been removed from stderr

Comment 5 errata-xmlrpc 2011-05-19 13:35:26 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0608.html