Bug 1956654 - subscription-manager-cockpit: unable to register, when invalid proxy configuration is disabled in plugin
Summary: subscription-manager-cockpit: unable to register, when invalid proxy configur...
Status: POST
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.3
Hardware: Unspecified
OS: Unspecified
Target Milestone: beta
: ---
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
Depends On:
TreeView+ depends on / blocked
Reported: 2021-05-04 07:40 UTC by Jiri Hnidek
Modified: 2021-05-07 10:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2580 0 None open 1744696: Fix issue with proxy and cockpit plugin 2021-05-04 08:36:12 UTC

Description Jiri Hnidek 2021-05-04 07:40:51 UTC
Description of problem:
When rhsm.conf contains wrong proxy configuration and you try to register using cockpit plugin (using proxy is completely disabled via checkbox in cockpit plugin), then registration is not possible, because rhsm.service still tries to use wrong proxy configuration from rhsm.conf

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

[root@kvm-07-guest37 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.7.5-1
subscription management rules: 5.37
subscription-manager: 1.25.14-1.el8

How reproducible:

Steps to Reproduce:

Assumption: Configuration file rhsm.conf contains some wrong proxy configuration in. Something like this:

# an http proxy server to use
proxy_hostname = some.proxy.server.com

# The scheme to use for the proxy when updating repo definitions, if needed
# e.g. http or https
proxy_scheme = http

# port for http proxy server (wrong port number)
proxy_port = 3333

# user name for authenticating to an http proxy, if needed
proxy_user = user

# password for basic http proxy auth, if needed
proxy_password = pass

1. Try to register system using cockpit plugin. Click on "Register" button
2. The registration dialog should be prefilled with proxy settings from rhsm.conf
3. User decide to not use proxy at all and uncheck checkbox "Use proxy server"
4. Provide valid candlepin credentials (username, password, organization)
5. Click on "Register" button

Actual result:
Error message: "[Error 111] Connection refused" is displayed in registration dialog.

Expected result:
System is registered, because proxy server is not necessary to use and candlepin server can be reached without proxy server. Wrong proxy configuration is removed from rhsm.conf

Note You need to log in before you can comment on or make changes to this bug.