Bug 869729

Summary: --autosubscribe and --activationkey should be mutually exclusive
Product: Red Hat Enterprise Linux 6 Reporter: Alex Wood <awood>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: alikins, mreid, skallesh, wpoteat
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.1.4-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 08:59:15 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: 771481    

Description Alex Wood 2012-10-24 16:04:26 UTC
Description of problem:
In the subscription-manager register sub-command, the --autosubscribe and --activationkey options should be mutually exclusive.

Steps to Reproduce:
1. Run subscription-manager register --autosubscribe --activationkey=YOURKEYHERE
  
Actual results:
subscription-manager attempts to auto-subscribe.

Expected results:
Error: Activation keys can not be used with --autosubscribe.

Comment 2 William Poteat 2012-10-26 12:06:43 UTC
master commit d992b09431328b4236ce95666e7598871c250afb

Comment 5 Shwetha Kallesh 2012-11-06 06:27:38 UTC
[root@rhel-64-server ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.7.17-1
subscription-manager: 1.1.5-1.el6
python-rhsm: 1.1.4-1.el6


[root@rhel-64-server ~]# subscription-manager register --autosubscribe --activationkey=Shwetha
Error: Activation keys cannot be used with --autosubscribe.

Comment 7 errata-xmlrpc 2013-02-21 08:59:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0350.html