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 1676942 - proxy_scheme in rhsm.conf is defaulting to an empty string when it should default to "http"
Summary: proxy_scheme in rhsm.conf is defaulting to an empty string when it should def...
Keywords:
Status: CLOSED DUPLICATE of bug 1654531
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-13 16:08 UTC by John Sefler
Modified: 2019-05-22 04:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-15 16:47:17 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Sefler 2019-02-13 16:08:34 UTC
Description of problem:

Immediately after a fresh subscription-manager install (or upgrade?) the /etc/rhsm/rhsm.conf file initializes the new [server]proxy_scheme to an empty string.  The default is "http" and therefore this should also be the default setting in rhsm.conf both after a fresh install of subscription-manager AND a yum update to the newest subscription-manager.


Version-Release number of selected component (if applicable):
subscription-manager-1.23.8-26.el8.x86_64


How reproducible:


Steps to Reproduce:
1. Starting without subscription-manager installed...

[root@kvm-01-guest10 ~]# egrep ^proxy /etc/rhsm/rhsm.conf
grep: /etc/rhsm/rhsm.confd: No such file or directory
[root@kvm-01-guest10 ~]# 
[root@kvm-01-guest10 ~]# yum install subscription-manager -y --quiet
[root@kvm-01-guest10 ~]# 
[root@kvm-01-guest10 ~]# egrep ^proxy /etc/rhsm/rhsm.conf 
proxy_hostname =
proxy_scheme =                   <======== EXPECTED http
proxy_port =
proxy_user =
proxy_password =
[root@kvm-01-guest10 ~]# 
[root@kvm-01-guest10 ~]# subscription-manager config | egrep proxy
   no_proxy = []
   proxy_hostname = []
   proxy_password = []
   proxy_port = []
   proxy_scheme =                <======== EXPECTED [http]
   proxy_user = []
[root@kvm-01-guest10 ~]#

Comment 2 John Sefler 2019-02-13 18:59:12 UTC
The fix for this bug is proposed in https://github.com/candlepin/subscription-manager/pull/2037 and applied as one of several fixes to bug 1654531

Therefore this bug can be returned a dup of bug 1654531

Comment 3 Chris Snyder 2019-02-15 16:47:17 UTC

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


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