Bug 748303 - Entitlement key isn't removed after unsubscribing
Summary: Entitlement key isn't removed after unsubscribing
Keywords:
Status: CLOSED DUPLICATE of bug 708362
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel62
TreeView+ depends on / blocked
 
Reported: 2011-10-24 03:33 UTC by yu zheng
Modified: 2015-05-14 15:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-24 11:57:27 UTC
Embargoed:


Attachments (Terms of Use)

Description yu zheng 2011-10-24 03:33:17 UTC
Description of problem:
The entitlement key isn't removed from /etc/pki/entitlement/ after unsubscribing.

Version-Release number of selected component (if applicable):
subscription-manager-0.96.16-1.el6.x86_64
python-rhsm-0.96.15-1.el6.noarch
candlepin (stage env)

How reproducible:
Always

Steps to Reproduce:
1.register to stage using stage_test_12/redhat
2.list available subscriptions
[root@unused-2-235 ~]# subscription-manager list --available
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+

ProductName:       	Red Hat Enterprise Linux Server, Premium (8 sockets) (Up to
                        4 guests)
ProductId:         	RH0103708                
PoolId:            	8a99f98233137a9701331d92a4301203
Quantity:          	100                      
Multi-Entitlement: 	No                       
Expires:           	10/18/2012               
MachineType:       	physical                 

ProductName:       	Red Hat Enterprise Linux Server, Premium (8 sockets) (Up to
                        4 guests)
ProductId:         	RH0103708                
PoolId:            	8a99f98233137a9701331d92a446120f
Quantity:          	400                      
Multi-Entitlement: 	No                       
Expires:           	10/18/2012               
MachineType:       	virtual
3.subscribe 
[root@unused-2-235 ~]# subscription-manager subscribe --pool=8a99f98233137a9701331d92a4301203
Successfully subscribed the system to Pool 8a99f98233137a9701331d92a4301203
4.unsubscribe
[root@unused-2-235 ~]# subscription-manager unsubscribe --all
[root@unused-2-235 ~]# ls /etc/pki/entitlement/
5265169466923923161-key.pem
  
Actual results:
The entitlement key is still in /etc/pki/entitlement.

Expected results:
All entitlement certs and keys should be removed after unsubcribing all consumed subscriptions.

Additional info:
n/a

Comment 1 Bryan Kearney 2011-10-24 11:57:27 UTC

*** This bug has been marked as a duplicate of bug 708362 ***


Note You need to log in before you can comment on or make changes to this bug.