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

Bug 927337

Summary: Null Start End Date for Green Product
Product: [Community] Candlepin (Migrated to Jira) Reporter: Devan Goodwin <dgoodwin>
Component: candlepinAssignee: candlepin-bugs
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 0.9CC: bkearney
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-18 13:55:27 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
output of GET /consumers/uuid/compliance none

Description Devan Goodwin 2013-03-25 17:10:51 UTC
Description of problem:

In a specific scenario it appears possible to see Candlepin return green status for a product, but with no start/end date for it.

Version-Release number of selected component (if applicable):

candlepin-0.8.0

How reproducible:

Seems consistent is the setup is right.

Steps to Reproduce:
1. Must use Candlepin test data to reproduce.
2. Copy all product certs generated during deploy to /etc/pki/product.

 $ ls /etc/pki/product 
100000000000000.pem   100000000000002.pem  100000000000006.pem  100000000000060.pem  1.pem      37062.pem  37068.pem  37080.pem  917571.pem
100000000000001.pem   100000000000003.pem  100000000000011.pem  100000000000069.pem  27060.pem  37065.pem  37069.pem  801.pem    bak/
1000000000000023.pem  100000000000005.pem  100000000000020.pem  1144.pem             37060.pem  37067.pem  37070.pem  88888.pem

3. Register the system and autosubscribe.
  
Actual results:

Product Name: Stackable with Awesome OS for x86_64 Bits
Product ID:   1000000000000023
Version:      3.11
Arch:         x86_64
Status:       Subscribed
Starts:       
Ends:   

You will see similar in the GUI, or even if you go straight to the server API call that generates this.

Expected results:

If product is green, it should have start/end dates.

Additional info:

Appears related to stacking, the autobind is selecting entitlements from several different pools to satisfy stack "1". The other products appear with start/end dates.

This is a server side bug probably somewhere in ConsumerInstalledProductEnricher.getValidDateRange.

Comment 1 Devan Goodwin 2013-03-25 17:13:09 UTC
Created attachment 716091 [details]
output of GET /consumers/uuid/compliance

Attaching output of the compliance API call demonstrating the problem originating right at the server.

Comment 2 Bryan Kearney 2013-05-07 21:14:31 UTC
Usinng latest code I can not recreate this. I end up all red. Should we keep this bug around?

Comment 3 Bryan Kearney 2013-06-18 13:55:27 UTC
Closing, reopen if you still see it.