Bug 683130 - python-rhsm Needs Support For Content Tagging
Summary: python-rhsm Needs Support For Content Tagging
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-rhsm
Version: 6.1
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: rc
: ---
Assignee: Devan Goodwin
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 568421
TreeView+ depends on / blocked
 
Reported: 2011-03-08 16:18 UTC by Devan Goodwin
Modified: 2011-06-09 19:06 UTC (History)
3 users (show)

Fixed In Version: python-rhsm-0.95.4-1.git.0.1189f1a.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-09 19:06:59 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0608 0 normal SHIPPED_LIVE new package: python-rhsm 2011-05-18 17:56:26 UTC

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


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