Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 889595

Summary: CDN 60 day Supported CloudForms Evaluation entitlement expiration and product content issue
Product: [Community] Candlepin (Migrated to Jira) Reporter: Brett Thurber <bthurber>
Component: candlepinAssignee: William Poteat <wpoteat>
Status: CLOSED WORKSFORME QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 0.9CC: acarter, mhulan, wpoteat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-17 15:16:03 UTC Type: Bug
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
Renewal expiration.
none
Manifest CF products blank
none
Manifest without entitlements.
none
Manifest with CF entilements. none

Description Brett Thurber 2012-12-21 20:08:30 UTC
Created attachment 667395 [details]
Renewal expiration.

Description of problem:
Employee 60-day subscriptions set to expire on 12/31 and when importing manifest with CloudForms entitlements, no products are available for content management or synchronization.

Version-Release number of selected component (if applicable):
cdn.redhat.com

How reproducible:
Every time.

Steps to Reproduce:
1.  Click Register a subscription manager application
2.  Enter a Type and name
3.  Attach the appropriate subscriptions (RH employee and CloudForms 60 day eval.)
4.  Download manifest
5.  Import manifest into System Engine
6.  Under Subscriptions > Red Hat Subscriptions select 60 day supported CloudForms evaluation
7.  Under products there are no items listed
  
Actual results:
No products listed for CloudForms after manifest import.

Expected results:
CloudForms products listed to include Cloud Engine, System Engine, etc...

Additional info:

Comment 1 Brett Thurber 2012-12-21 20:09:10 UTC
Created attachment 667396 [details]
Manifest CF products blank

Comment 2 Marek Hulan 2013-01-15 09:02:42 UTC
Could you please attach a manifest you use for importing? I have no access to https://access.redhat.com. Best if you could add the old one with expiration 12/31 and a renewed one.

Comment 3 Brett Thurber 2013-01-15 15:29:13 UTC
Created attachment 678843 [details]
Manifest without entitlements.

Comment 4 Brett Thurber 2013-01-15 15:34:25 UTC
Created attachment 678846 [details]
Manifest with CF entilements.

Comment 5 Brett Thurber 2013-01-15 15:35:00 UTC
Added requested manifests.

Comment 6 Marek Hulan 2013-01-17 07:29:42 UTC
I tried to reproduce on CFSE but I got a bit different behavior. A 60 day subscription for CloudForms Evaluation is not even created using any of attached manifests. Facts after some investigation:
* Both manifests include entitlement for 60 Day Supported CloudForms Evaluation and Red Hat Employee Subscription
* After manifest import only one record is in candlepin database in table cp_pool and it's Red Hat Employee Subscription

This seems like a bug in candlepin so I'm reassigning.

Steps I did to reproduce:
1. Login and go to /katello/subscriptions page
2. Click + Import Manifest
3. Pick a file attached here as attachment 678846 [details]
4. Wait until it's done
5. In subscriptions list you can see only Red Hat Employee Subscription

Comment 7 William Poteat 2014-01-17 15:07:01 UTC
The manifest provided contains an entitlement for the Evaluation that was expired on Jan 17, 2013. That explains why it did not get imported:

 org.candlepin.controller.CandlepinPoolManager - Deleting expired subscription: Subscription [id = 8a8d098643a0ae860143a0aea351002f, product = SER0408, quantity = 5, expires = Mon Dec 31 23:59:59 EST 2012]