Bug 824530
| Summary: | subscription-manager release --list ignores command line proxy options | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> | |
| Component: | subscription-manager | Assignee: | Adrian Likins <alikins> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Entitlement Bugs <entitlement-bugs> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | high | |||
| Version: | 6.3 | CC: | alikins, bkearney, cduryee, fsharath, mstead | |
| Target Milestone: | rc | Keywords: | ZStream | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 833146 (view as bug list) | Environment: | ||
| Last Closed: | 2013-01-09 17:45:22 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, 833146, 833390 | |||
|
Description
John Sefler
2012-05-23 16:50:59 UTC
commit eb1cfcd5c1f3d00b8cbd16e7f0499154fa4e5d28
Author: Adrian Likins <alikins>
Date: Fri Jun 8 14:15:53 2012 -0400
824530: add test case for setting proxy cli for release
commit d2deced0bb879046150999578b02dfe03ce6d4c3
Author: Adrian Likins <alikins>
Date: Fri Jun 8 09:41:23 2012 -0400
824530: "release" command ignoring cli proxy options
We were reading them, and setting them, then clobbering
them with the cfg settings in the base class init. Refactor
slightly to fix this.
> Please ignore the comment was working on a similar bug on 5.9
Verifying Version...
[root@jsefler-6 ~]# rpm -q subscription-manager
subscription-manager-1.1.9-1.el6.x86_64
[root@jsefler-6 ~]# grep proxy /etc/rhsm/rhsm.conf
# an http proxy server to use
proxy_hostname =
# port for http proxy server
proxy_port =
# user name for authenticating to an http proxy, if needed
proxy_user =
# password for basic http proxy auth, if needed
proxy_password =
^ DEMONSTRATES THAT WE ARE NOT CONFIGURED TO USE A PROXY
[root@jsefler-6 ~]# subscription-manager register --serverurl subscription.rhn.stage.redhat.com:443/subscription --username stage_test_12 --auto-attach
Password:
The system has been registered with id: 432488f5-b432-43b8-8ddf-fb6372146b63
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
[root@jsefler-6 ~]# subscription-manager release --list
+-------------------------------------------+
Available Releases
+-------------------------------------------+
6.1
6.2
6.3
6Server
^^^^^ VERIFIED EXPECTED RESULTS WHEN *NOT* PASSING THROUGH A PROXY
[root@jsefler-6 ~]# subscription-manager release --list --proxy REDHAT:PORT --proxyuser SHADOW --proxypassword MAN
Network error, unable to connect to server.
Please see /var/log/rhsm/rhsm.log for more information.
^^^^^ VERIFIED THAT WE NOW ENCOUNTER A NETWORK ERROR WHEN SPECIFYING A BOGUS PROXY
[root@jsefler-6 ~]# subscription-manager release --list --proxy BOGUS:PORT
Network error, unable to connect to server.
Please see /var/log/rhsm/rhsm.log for more information.
^^^^^ VERIFIED AGAIN THAT WE NOW ENCOUNTER A NETWORK ERROR WHEN SPECIFYING A BOGUS PROXY
[root@jsefler-6 ~]# subscription-manager release --list --proxy auto-services.usersys.redhat.com:3129
+-------------------------------------------+
Available Releases
+-------------------------------------------+
6.1
6.2
6.3
6Server
^^^^^ VERIFIED EXPECTED RESULTS WHEN PASSING THROUGH A VALID PROXY
Batch change of verified bugs which must have missed making the errata. |