Bug 796499

Summary: RHSM can't subscribe to custom content: 'EntitlementCertificate' object has no attribute 'expired'
Product: Red Hat Satellite Reporter: Jeff Weiss <jweiss>
Component: APIAssignee: Ivan Necas <inecas>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: dajohnso, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
client: rhel5.8, subscription-manager-0.98.14-1.el5
Last Closed: 2012-02-27 15:33:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
bad cert none

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