Bug 811593

Summary: Feedback when not providing options is not consistent
Product: Red Hat Enterprise Linux 5 Reporter: Bryan Kearney <bkearney>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.9CC: jmolet, jsefler
Target Milestone: rc   
Target Release: 5.9   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-08 03:50:05 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:
Bug Depends On:    
Bug Blocks: 771748    

Description Bryan Kearney 2012-04-11 13:46:19 UTC
The following commands all behave differently when no options are provided:

subscribe
unsubscribe
envrionments
import
repos

for example subscribe shows:

Error: This command requires that you specify a pool with --pool or use --auto.


and repos shows:

Error: This command requires that you specify a pool with --pool or use --auto.


and unsubscibe actually shows the full text. Pick one model, and standardize across all the commands.

Additionally, these commands:

subscribe
unsubscribe

should check for registration before parsing the options.

Comment 1 Bryan Kearney 2012-04-11 13:52:16 UTC
Also, the redeem command.

Comment 2 RHEL Program Management 2012-04-11 13:57:51 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 3 Bryan Kearney 2012-04-11 14:03:04 UTC
Add config to this list too.

Comment 4 William Poteat 2012-06-12 19:40:42 UTC
Checking for registration before the unsubscribe command does not work with offline setup. It was not put in.

Config defaults to --list as before, it is the logical default.

Error messages have been standardized.

Commit 42e23b7bf6be4086d70b44a37dc41c5e987193b8 in master.

Comment 5 J.C. Molet 2012-06-19 16:41:51 UTC
Testing with: subscription-manager-1.0.4-1.git.3.1768f90.el5

[root@jmolet-vm0 ~]# subscription-manager subscribe
Error: This command requires that you specify a pool with --pool or use --auto.

[root@jmolet-vm0 ~]# subscription-manager unsubscribe
Error: This command requires that you specify one of --serial or --all.

[root@jmolet-vm0 ~]# subscription-manager environments
Error: This command requires that you specify an organizaiton with --org

[root@jmolet-vm0 ~]# subscription-manager import
Error: This command requires that you specify a certificate with --certificate.


subscription-manager repos will now default to --list, see Bug 811594 .

marking VERIFIED

Comment 7 errata-xmlrpc 2013-01-08 03:50:05 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-0033.html