Bug 1353821

Summary: 'subscription-manager repos --list' seems to ignore the proxy option
Product: Red Hat Enterprise Linux 7 Reporter: qianzhan
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: redakkan, skallesh, vrjain
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-11 19:50:38 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:
Attachments:
Description Flags
rhsm.log none

Description qianzhan 2016-07-08 05:52:36 UTC
Description of problem:
'subscription-manager repos --list' seems to ignore the proxy option

Version-Release number of selected component (if applicable):
subscription-manager: 1.17.8-1.el7
python-rhsm: 1.17.4-1.el

How reproducible:
always

Steps to Reproduce:
1. Register to SAM and auto-attach.

2. [root@dhcp-128-18 ~]# subscription-manager repos --list --proxy=123
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-7-server-optional-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional (Debug RPMs)
Repo URL:  https://samserv.redhat.com:8088/content/dist/rhel/server/7/$releaseve
           r/$basearch/optional/debug
Enabled:   0

...
...

Repo ID:   rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://samserv.redhat.com:8088/content/dist/rhel/server/7/$releaseve
           r/$basearch/os
Enabled:   1



Actual results:
As step 2, repos are listed with invalid proxy option.

Expected results:
The output of step 2 should be like this:

Network error, unable to connect to server.
Please see /var/log/rhsm/rhsm.log for more information.

Additional info:
The attachment is rhsm.log

Comment 1 qianzhan 2016-07-08 05:54:51 UTC
Created attachment 1177523 [details]
rhsm.log

Comment 3 vritant 2016-07-11 19:50:38 UTC

*** This bug has been marked as a duplicate of bug 1306005 ***