Bug 796499 - RHSM can't subscribe to custom content: 'EntitlementCertificate' object has no attribute 'expired'
Summary: RHSM can't subscribe to custom content: 'EntitlementCertificate' object has n...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-23 01:57 UTC by Jeff Weiss
Modified: 2014-11-09 22:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
client: rhel5.8, subscription-manager-0.98.14-1.el5
Last Closed: 2012-02-27 15:33:10 UTC
Target Upstream Version:


Attachments (Terms of Use)
bad cert (2.40 KB, application/x-x509-ca-cert)
2012-02-23 01:57 UTC, Jeff Weiss
no flags Details

Description Jeff Weiss 2012-02-23 01:57:03 UTC
Created attachment 565160 [details]
bad cert

Description of problem:


Version-Release number of selected component (if applicable):
0.2.1-1.git.9.696125a.el6 

How reproducible:


Steps to Reproduce:
1.  Create a custom prov/prod/repo.  Repo url: http://inecas.fedorapeople.org/fakerepos/cds/content/safari/1.0/x86_64/rpms/
2.  register a rhel 5.8 system with subscription-manager-0.98.14-1.el5
3.  subscribe to the product
  
Actual results:
RHSM stderr: ''EntitlementCertificate' object has no attribute 'expired'

Expected results:
RHSM accepts certificate.  see attachment for rhsm's copy of the cert.

Additional info:
I'm not sure whose fault this error is.  Katello?  Candlepin?  RHSM?  I think RHSM is safe since we have to support this version of it.  We probably have to give it a cert it likes.

Comment 1 Jeff Weiss 2012-02-23 02:18:42 UTC
Same test works on rhel61 subscription-manager-0.96.17-1.el6.x86_64

Comment 2 Bryan Kearney 2012-02-23 13:19:46 UTC
my guess is we need to poplate the products with dummy data.

Comment 3 Ivan Necas 2012-02-27 14:16:40 UTC
Was able to reproduce on python-rhsm-0.98.8-1.el5,

subscription-manager-0.98.14-1.el5 with python-rhsm-0.98.9-1.el5 doesn't seem to have this issue.

Comment 4 Jeff Weiss 2012-02-27 15:33:10 UTC
Caused by too-old version of python-rhsm.  I am not sure exactly how that happened, dgoodwin mentioned they sometimes forget to update the specfile, and this system is a beta install of rhel58.  We're pretty confident rhel58 GA machines will not have this problem.

Ran yum install python-rhsm to get latest, will reopen if i see again.

Comment 5 Mike McCune 2013-08-16 17:58:40 UTC
getting rid of 6.0.0 version since that doesn't exist


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