Bug 757978

Summary: unsubscribe --all, works even though the client is not registered
Product: Red Hat Enterprise Linux 5 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED NOTABUG QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.8CC: dgoodwin
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: 2012-06-05 12:55:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 771748    

Description Shwetha Kallesh 2011-11-29 05:33:19 UTC
Description of problem:

unsubscribe --all, works even though the client is not registered

Version-Release number of selected component (if applicable):
[root@tiger ~]# rpm -qa | grep subscription-manager
subscription-manager-firstboot-0.98.3-1.el5
subscription-manager-0.98.3-1.el5
subscription-manager-gnome-0.98.3-1.el5
subscription-manager-debuginfo-0.98.3-1.el5
subscription-manager-migration-0.98.3-1.el5


How reproducible:


Steps to Reproduce:
1.unregister the client
2.execute subscription-manager unsubscribe --all
3.
  
Actual results:

This machine has been unsubscribed from all subscriptions

Expected results:

should say "Error: You need to register this system by running `register` command before using this option"


Additional info:

Comment 1 Devan Goodwin 2012-06-05 12:55:41 UTC
Unsubscribe can actually be used for the "offline" use case, where the system is not registered, and the user is manually importing their certificates. As such they need to be able to use unsubscribe --all.

Comment 2 Devan Goodwin 2012-06-05 12:56:18 UTC
There is a separate bug for reporting there are no subscriptions to remove if none are present, which should help this situation as well.