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 1699345

Summary: subscription-manager-gui: Cannot launch GUI when system is configured with no-proxy
Product: Red Hat Enterprise Linux 7 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: Alex Wood <awood>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: high    
Version: 7.7CC: csnyder, jhnidek, jomurphy, jsefler, khowell
Target Milestone: rcKeywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.24.7-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-06 12:57:32 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
Error while launching GUI
none
can launch GUI with(invalid proxy) no proxy on 7.4
none
Could launch GUI with invalid proxy details and no proxy set on system none

Description Shwetha Kallesh 2019-04-12 13:37:54 UTC
Created attachment 1554785 [details]
Error while launching GUI

Description of problem:
configure system with bad proxy details and also no-proxy, try to launch GUI
error message "Proxy Connection Failed,please check your settings." is thrown

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Launch GUI configure system with invalid proxy (system ----> Configure Proxy)
2. Select "I would like to connect to HTTP proxy" ---> enter invalid proxy details

3.Select ByPass the HTTP proxy for specific hosts enter "server(candlepin) hostname"

4. close GUI and re launch "Proxy Connection Failed,please check your settings." is thrown at the user

Actual results:
 Gui doesnot Launch but a message 

RHSM.conf and rhsm.log details 

[root@amd-pike-05 ~]# cat /etc/rhsm/rhsm.conf | grep proxy
# an http proxy server to use
proxy_hostname =sdsaffs
# The scheme to use for the proxy when updating repo definitions, if needed
proxy_scheme =
# port for http proxy server
proxy_port =3128
# user name for authenticating to an http proxy, if needed
proxy_user =dsadas
# password for basic http proxy auth, if needed
proxy_password =sadsad
# host/domain suffix blacklist for proxy, if needed
no_proxy = subscription.rhsm.stage.redhat.com
[root@amd-pike-05 ~]# tail -f /var/log/rhsm/rhsm.log 
    [id:rhel-7-server-openstack-13-rpms Red Hat OpenStack Platform 13 for RHEL 7 (RPMs)]
Added (new)
    <NONE>
Deleted
    <NONE>
2019-04-12 09:26:43,316 [INFO] subscription-manager-gui:7487:MainThread @connection.py:924 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2019-04-12 09:26:44,100 [INFO] subscription-manager-gui:7487:MainThread @connection.py:638 - Response: status=200, requestUuid=63f378bd-7e40-4e82-87c8-99b267138cec, request="GET /subscription/consumers/bc3dbeeb-57d1-4b82-8a08-d436b20ad14c/compliance"
2019-04-12 09:26:44,267 [INFO] subscription-manager-gui:7487:MainThread @cert_sorter.py:205 - Product status: valid_products=69 partial_products= expired_products= unentitled_producs= future_products= valid_until=2020-01-31 00:00:00+00:00
2019-04-12 09:26:44,304 [INFO] subscription-manager-gui:7487:MainThread @utils.py:67 - Attempted bad proxy: [Errno -2] Name or service not known
2019-04-12 09:26:44,304 [ERROR] subscription-manager-gui:7487:MainThread @utils.py:72 - Proxy connection error: None
2019-04-12 09:30:18,716 [INFO] subscription-manager-gui:7515:MainThread @connection.py:924 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2019-04-12 09:30:20,347 [INFO] subscription-manager-gui:7515:MainThread @connection.py:638 - Response: status=200, requestUuid=aa9e3824-17c3-487a-b049-f09908b3de85, request="GET /subscription/consumers/bc3dbeeb-57d1-4b82-8a08-d436b20ad14c/compliance"
2019-04-12 09:30:20,512 [INFO] subscription-manager-gui:7515:MainThread @cert_sorter.py:205 - Product status: valid_products=69 partial_products= expired_products= unentitled_producs= future_products= valid_until=2020-01-31 00:00:00+00:00
2019-04-12 09:30:20,533 [INFO] subscription-manager-gui:7515:MainThread @utils.py:67 - Attempted bad proxy: [Errno -2] Name or service not known
2019-04-12 09:30:20,533 [ERROR] subscription-manager-gui:7515:MainThread @utils.py:72 - Proxy connection error: None


Expected results:
GUI should launch

Additional info:

Comment 3 Shwetha Kallesh 2019-04-15 09:39:45 UTC
Created attachment 1555176 [details]
can launch GUI with(invalid proxy) no proxy on 7.4

Chris,

         yes its a regression introduced by this https://bugzilla.redhat.com/show_bug.cgi?id=1421010 in 7.5 , so on 7.4 I can successfully launch whereas issue exists in 7.5 , 7.6 and 7.7

Comment 7 Shwetha Kallesh 2019-06-12 07:06:21 UTC
Created attachment 1579657 [details]
Could launch GUI with invalid proxy details and no proxy set on system

[root@hpe-z400-01 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.3.17-1
subscription management rules: 5.35
subscription-manager: 1.24.10-1.el7

Comment 8 Shwetha Kallesh 2019-06-12 07:07:14 UTC
Marking bug as verified based on verification in comment7

Comment 10 errata-xmlrpc 2019-08-06 12:57:32 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.

https://access.redhat.com/errata/RHBA-2019:2008