Bug 977481
| Summary: | subscription-manager status (and version) module needs proxy options | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | Carter Kozak <ckozak> |
| Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.10 | CC: | bkearney, ckozak, skallesh |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
No description necessary
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-30 23:11:18 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: | 840995 | ||
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. commit 7f752878662eeaad9d1d8491241311d82f7d04eb
Author: ckozak <ckozak>
Date: Mon Jun 24 12:23:57 2013 -0400
977481: added proxy options to status
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.
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
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 |
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