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 683130

Summary: python-rhsm Needs Support For Content Tagging
Product: Red Hat Enterprise Linux 6 Reporter: Devan Goodwin <dgoodwin>
Component: python-rhsmAssignee: Devan Goodwin <dgoodwin>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: urgent    
Version: 6.1CC: jsefler, mkhusid, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-rhsm-0.95.4-1.git.0.1189f1a.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-09 19:06:59 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 Devan Goodwin 2011-03-08 16:18:40 UTC
Description of problem:

Due to requirements for how we plan to organize products, python-rhsm certificate library needs to be updated to read and parse the OID's for product cert provided tags, and entitlement cert (content) required tags.

Comment 1 Devan Goodwin 2011-03-08 17:45:55 UTC
Fixed as of 1189f1a32e8e161f5acea3725ca08c87f49876d6 and python-rhsm-0.95.4-1.

Comment 3 John Sefler 2011-03-10 05:51:51 UTC
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



Devan,
I suspect the DEBUG statements ^^^^ being logged to stderr should be removed.

Comment 4 Devan Goodwin 2011-03-10 18:27:17 UTC
Yes looks like misconfigured logging in the yum plugin, probably should be considered as a separate issue. (non-blocker)

Comment 5 John Sefler 2011-03-10 20:01:53 UTC
Comment #3 opened as bug #683968

Verified support for content tagging has been incorporated in this build
# rpm -q python-rhsm
python-rhsm-0.95.4-1.git.0.1189f1a.el6.noarch

moving to VERIFIED

Additional Info:

Existing automated test coverage has been retrofitted to assert that yum repolist excludes enabled content sets in a granted entitlement cert from being accessed when the content namespace contains the requiredTags OID with values that are not 100% "provided" by the currently installed product certs.

At the moment I cannot test the case when the product certs do provide 100% of the required tags because such a cert has never been cut.  This is future test work.

Comment 6 errata-xmlrpc 2011-06-09 19:06:59 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