Bug 948751

Summary: Certificate version displayed on facts list is different from that displayed in entitlement cert
Product: Red Hat Enterprise Linux 7 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED NOTABUG QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: fsharath, jmolet, jsefler, redakkan, skallesh, spandey, wpoteat
Target Milestone: rc   
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-05 11:52:35 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 Shwetha Kallesh 2013-04-05 10:26:21 UTC
Description of problem:
Certificate version displayed on facts list is different from that displayed in entitlement cert 

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

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

How reproducible:


Steps to Reproduce:
1.[root@localhost entitlement]# rct cat-cert 1536757904155944282.pem

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

Certificate:
	Path: 1536757904155944282.pem
	Version: 3.2
	Serial: 1536757904155944282
	Start Date: 2013-04-03 00:00:00+00:00
	End Date: 2014-04-03 00:00:00+00:00
	Pool ID: 8ac6818a3dceb571013dceb6b1690597

Subject:
	CN: 8ac6818a3dd8eb18013dd9237fd60d2e

Product:
	ID: 37080
	Name: Awesome OS Modifier Bits
	Version: 6.1
	Arch: ALL
	Tags: 

2.[root@localhost entitlement]# subscription-manager facts --list | grep certificate
system.certificate_version: 3.1


3.
  
Actual results:
certificate version on facts list is 3.1

Expected results:
certificate version on facts list to be 3.2

Additional info:

Comment 1 William Poteat 2013-06-05 11:52:35 UTC
The certificate version must be >= the version in the facts. 

The client will report the version it knows about as the fact. It is an intrinsic property of the Subscription Manager code version. It does not change with the certificates it receives.