Bug 1676942

Summary: proxy_scheme in rhsm.conf is defaulting to an empty string when it should default to "http"
Product: Red Hat Enterprise Linux 8 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: csnyder
Target Milestone: rc   
Target Release: 8.0   
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: 2019-02-15 16:47:17 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:

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 ***