Bug 977481 - subscription-manager status (and version) module needs proxy options
Summary: subscription-manager status (and version) module needs proxy options
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Carter Kozak
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510
TreeView+ depends on / blocked
 
Reported: 2013-06-24 16:22 UTC by John Sefler
Modified: 2014-09-15 00:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2013-09-30 23:11:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1332 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-09-30 22:49:24 UTC

Description John Sefler 2013-06-24 16:22:37 UTC
Description of problem:
The proxy options common to all the subscription-manager modules that contact the server should also be available to the status module.


Version-Release number of selected component (if applicable):
[root@jsefler-5 ~]# rpm -q subscription-manager
subscription-manager-1.8.11-1.git.13.96b613e.el5


How reproducible:


Steps to Reproduce:
[root@jsefler-5 ~]# subscription-manager status --help
Usage: subscription-manager status [OPTIONS]

Show status information for this system's subscriptions and products

options:
  -h, --help  show this help message and exit


Actual results:
above

Expected results:
also expected these common proxy options to be available...
  --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

Comment 1 RHEL Program Management 2013-06-24 16:37:37 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 2 Carter Kozak 2013-06-26 17:20:34 UTC
commit 7f752878662eeaad9d1d8491241311d82f7d04eb
Author: ckozak <ckozak>
Date:   Mon Jun 24 12:23:57 2013 -0400

    977481: added proxy options to status

Comment 5 Shwetha Kallesh 2013-07-15 07:08:51 UTC
Verified!!

[root@localhost ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.16-1
subscription-manager: 1.8.13-1.el5
python-rhsm: 1.8.13-1.git.0.85d7af5.el5


[root@localhost ~]# subscription-manager status --help
Usage: subscription-manager status [OPTIONS]

Show status information for this system's subscriptions and products

options:
  -h, --help            show this help message and exit
  --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@localhost ~]# subscription-manager status --proxy 10.65.201.26:3128
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Invalid

Awesome OS Modifier Bits:
- Not covered by a valid subscription.

Large File Support Bits:
- Not covered by a valid subscription.

Awesome OS for All Arch (all per arch content) Bits:
- Not covered by a valid subscription.

Awesome OS for x86 Bits:
- Not covered by a valid subscription.

RAM Limiting Product:
- Not covered by a valid subscription.

Awesome OS Instance Server Bits:
- Not covered by a valid subscription.

Comment 6 John Sefler 2013-07-25 14:44:53 UTC
commit 4c3e1c4dbbe022b3796405fcca28b5fe9a57bfb7

    977481: make proxy cli check require_connection
    
    Rename _add_common_options to more accurate
    _add_proxy_options, and make that always enabled
    for cli commands that require_connection.



This commit also includes adding proxy options to the version module which may be needed to fetch the server's version too.

[root@jsefler-5 ~]# subscription-manager --help version
Usage: subscription-manager version [OPTIONS]

Print version information

options:
  -h, --help            show this help message and exit
  --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-5 ~]# subscription-manager version --proxy=auto-services.usersys.redhat.com:3129
server type: Red Hat Subscription Management
subscription management server: 0.8.16-1
subscription-manager: 1.8.14-1.el5
python-rhsm: 1.8.15-1.el5

Comment 8 errata-xmlrpc 2013-09-30 23:11:18 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-1332.html


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