Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 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:
Embargoed:
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