Bug 663678

Summary: subscription-manager <MODULE> --help suggestion for --proxy option
Product: Red Hat Enterprise Linux 6 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Adrian Likins <alikins>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: medium Docs Contact:
Priority: low    
Version: 6.1   
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: 2011-05-19 13:38:15 UTC Type: ---
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: 639436    

Description John Sefler 2010-12-16 15:41:17 UTC
Description of problem:
For each of the subscription-manager modules that use --proxy as an option, the --help looks something like this:

# subscription-manager register --help | grep proxy
  --proxy=PROXY_URL     http proxy url
  --proxyuser=PROXY_USER
                        user for http proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for http proxy with basic authentication

Notice the "--proxy=PROXY_URL     http proxy url".  This implies to me that one needs to set a value prefixed with "http://", but that is not true. Instead, let's change the help message to something like this:

  --proxy=PROXY_HOSTNAME:PROXY_PORT     http proxy url

This will better match the parameters set in the /etc/rhsm/rhsm.conf file


Version-Release number of selected component (if applicable):
# rpm -qa | grep subscription-manager
subscription-manager-gnome-0.93.3-1.git.34.af3969f.fc14.x86_64
subscription-manager-0.93.3-1.git.34.af3969f.fc14.x86_64

Comment 2 John Sefler 2010-12-17 13:52:34 UTC
While your at it, how about fixing the "passwird" typo in the rhsm.conf...

[root@jsefler-onprem01 ~]# cat /etc/rhsm/rhsm.conf | grep pass
# passwird for basic http proxy auth, if needed
proxy_password=

Comment 3 Adrian Likins 2010-12-17 16:38:40 UTC
commit 0a39e79fe9bb7f8aa7fcf6ff2ed5e96a07d4803e
Author: Adrian Likins <alikins>
Date:   Fri Dec 17 11:31:06 2010 -0500

    639436: make --proxy help blurb more clear about format required

commit 58d7d4fc1a550853f035645552211587815d9106
Author: Adrian Likins <alikins>
Date:   Thu Dec 16 13:39:01 2010 -0500

    fix typo in user_password comment

Comment 4 John Sefler 2010-12-21 20:45:00 UTC
[root@jsefler-onprem01 ~]# rpm -q subscription-manager
subscription-manager-0.93.7-1.git.3.fbdf967.el6.x86_64

[root@jsefler-onprem01 ~]# for m in register unregister subscribe unsubscribe unregister facts identity refresh list ; do  subscription-manager $m --help | grep proxy; done;
  --proxy=PROXY_URL     proxy url in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for http proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for http proxy with basic authentication
  --proxy=PROXY_URL     proxy url in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for http proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for http proxy with basic authentication
  --proxy=PROXY_URL     proxy url in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for http proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for http proxy with basic authentication
  --proxy=PROXY_URL     proxy url in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for http proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for http proxy with basic authentication
  --proxy=PROXY_URL     proxy url in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for http proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for http proxy with basic authentication
  --proxy=PROXY_URL     proxy url in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for http proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for http proxy with basic authentication
  --proxy=PROXY_URL     proxy url in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for http proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for http proxy with basic authentication
  --proxy=PROXY_URL     proxy url in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for http proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for http proxy with basic authentication
  --proxy=PROXY_URL     proxy url in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for http proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for http proxy with basic authentication
[root@jsefler-onprem01 ~]# 

LOOKS LIKE THE FIX WAS IN THE DESCRIPTION: proxy url in the form of proxy_hostname:proxy_port

Help message VERIFIED!


[root@jsefler-onprem01 ~]# cat /etc/rhsm/rhsm.conf | grep pass
# password for basic http proxy auth, if needed
proxy_password=

rhsm.conf type VERIFIED!

Comment 5 errata-xmlrpc 2011-05-19 13:38:15 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0611.html