Bug 861993

Summary: Include RAM value in certificates
Product: [Community] Candlepin Reporter: Amanda Carter <acarter>
Component: candlepinAssignee: Michael Stead <mstead>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.9CC: bkearney, mstead, skallesh, tomckay
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: 2014-09-29 19:05:37 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:
Bug Depends On:    
Bug Blocks: 863175    

Description Amanda Carter 2012-10-01 14:32:51 UTC
Customer Data will be adding a new sku attribute for GB RAM. When it's added and IT has included it on the pool, it should be included in a certificate so that valid subscription checking can be based on this value. I'm guessing you guys will just need the value from the pool to pull that in, but let me know if you need anything else.

I've listed this in 6.4 as wishful thinking I know. It should ideally go out with any RAM support that's completed.

Comment 1 Michael Stead 2012-11-27 20:53:12 UTC
This has been added as of:

master branch: cff8baa350a14c0730b84ce76d8d7401925e1b57

Comment 2 Shwetha Kallesh 2013-04-22 09:27:53 UTC
Verified!!

[root@localhost entitlement]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.4-1
subscription-manager: 1.8.6-1.el7
python-rhsm: 1.8.9-1.el7

root@localhost entitlement]# subscription-manager attach --pool 8ac6818a3e21268f013e21278578052c
Successfully attached a subscription for: RAM Limiting Package (2GB stackable)
[root@localhost entitlement]# ll
total 8
-rw-------. 1 root root 1675 Apr 22 14:56 8973011009268636944-key.pem
-rw-r--r--. 1 root root 2472 Apr 22 14:56 8973011009268636944.pem
[root@localhost entitlement]# rct cat-cert 8973011009268636944.pem

+-------------------------------------------+
	Entitlement Certificate
+-------------------------------------------+

Certificate:
	Path: 8973011009268636944.pem
	Version: 3.2
	Serial: 8973011009268636944
	Start Date: 2013-04-19 00:00:00+00:00
	End Date: 2014-04-19 00:00:00+00:00
	Pool ID: 8ac6818a3e21268f013e21278578052c

Subject:
	CN: 8ac6818a3e21268f013e2f75f1254260

Product:
	ID: 801
	Name: RAM Limiting Product
	Version: 1.0
	Arch: x86_64
	Tags: 

Order:
	Name: RAM Limiting Package (2GB stackable)
	Number: order-8675309
	SKU: ram-2gb-stackable
	Contract: 151
	Account: 12331131231
	Service Level: 
	Service Type: 
	Quantity: 10
	Quantity Used: 1
	Socket Limit: 
	RAM Limit: 2
	Virt Limit: 
	Virt Only: False
	Subscription: 
	Stacking ID: ram-stackable
	Warning Period: 0
	Provides Management: False

Comment 3 Bryan Kearney 2014-09-29 19:05:37 UTC
These bugs were fixed during 7.0 but not moved to CLOSED. They have been delivered