Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1694811

Summary: traceback encountered by subscription-manager service-level --list when bad proxy is configured in rhsm.conf
Product: Red Hat Enterprise Linux 8 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: high    
Version: 8.0CC: csnyder, jhnidek, redakkan, skallesh, wpoteat
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
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: 2020-11-04 01:38:37 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:

Comment 1 John Sefler 2020-07-23 14:04:38 UTC
Bug 1859532 is likely a dup of this.

Comment 4 Shwetha Kallesh 2020-07-29 10:59:57 UTC
Verification:

Since there is no traceback and appropriate error is thrown , moving the bug to verified

[root@hpe-dl380pgen8-02-vm-2 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: Unknown
subscription management rules: Unknown
subscription-manager: 1.27.11-1.el8


[root@hpe-dl380pgen8-02-vm-2 ~]# cat /etc/rhsm/rhsm.conf | grep proxy
# an http proxy server to use
proxy_hostname =BAD-auto-services.usersys.redhat.com
# The scheme to use for the proxy when updating repo definitions, if needed
proxy_scheme = http
# port for http proxy server
proxy_port = 3127
# user name for authenticating to an http proxy, if needed
proxy_user =redhat
# password for basic http proxy auth, if needed
proxy_password =redhat
# host/domain suffix blacklist for proxy, if needed
no_proxy = 

On unregistered system:

[root@hpe-dl380pgen8-02-vm-2 ~]# subscription-manager config --server.proxy_hostname=BAD-auto-services.usersys.redhat.com
[root@hpe-dl380pgen8-02-vm-2 ~]# subscription-manager service-level --list --username=stage_auto_syspurpose001 --password=redhat 
Organization: 12814047
Proxy connection failed, please check your settings.
[root@hpe-dl380pgen8-02-vm-2 ~]# subscription-manager config --server.proxy_hostname=
[root@hpe-dl380pgen8-02-vm-2 ~]# subscription-manager service-level --list --username=stage_auto_testuser --password=redhat --org=13289264 --proxy=BAD-auto-services.usersys.redhat.com
Proxy connection failed, please check your settings.

On registered system:

[root@hpe-dl380pgen8-02-vm-2 ~]# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_auto_syspurpose001
Password: 
CACHED_SYSPURPOSE: /var/lib/rhsm/cache/syspurpose.json
The system has been registered with ID: a1d44bce-8d0f-4148-a02b-a73fe677402f
The registered system name is: hpe-dl380pgen8-02-vm-2.hpe2.lab.eng.bos.redhat.com
[root@hpe-dl380pgen8-02-vm-2 ~]# subscription-manager config --server.proxy_hostname=BAD-auto-services.usersys.redhat.com


[root@hpe-dl380pgen8-02-vm-2 ~]# cat /etc/rhsm/rhsm.conf | grep proxy
# an http proxy server to use
proxy_hostname =BAD-auto-services.usersys.redhat.com
# The scheme to use for the proxy when updating repo definitions, if needed
proxy_scheme = http
# port for http proxy server
proxy_port = 3127
# user name for authenticating to an http proxy, if needed
proxy_user =redhat
# password for basic http proxy auth, if needed
proxy_password =redhat
# host/domain suffix blacklist for proxy, if needed
no_proxy = 

[root@hpe-dl380pgen8-02-vm-2 ~]# subscription-manager service-level --list --username=stage_auto_syspurpose001 --password=redhat
Proxy connection failed, please check your settings.

Comment 7 errata-xmlrpc 2020-11-04 01:38:37 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 (subscription-manager bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4460