Bug 1331236

Summary: [quick install] [Behind Proxy] Proxy settings can't be written in inventory hosts file
Product: OpenShift Container Platform Reporter: Gan Huang <ghuang>
Component: InstallerAssignee: Samuel Munilla <smunilla>
Status: CLOSED ERRATA QA Contact: Ma xiaoqiang <xiama>
Severity: high Docs Contact:
Priority: high    
Version: 3.2.0CC: aos-bugs, bleanhar, jokerman, mmccomas, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-07 10:55:38 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 Gan Huang 2016-04-28 04:43:57 UTC
Description of problem:
Proxy settings can't be written in inventory hosts file when start to install a proxy env.

Version-Release number of selected component (if applicable):
openshift-ansible-3.0.87-1.git.0.7f67d5d.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1.Run "atomic-openshift-installer install --gen-inventory"
2.Input proxy hostname and no_proxy hostname
If a proxy is needed to reach HTTP and HTTPS traffic please enter the name below.
This proxy will be configured by default for all processes needing to reach systems outside
the cluster.

More advanced configuration is possible if using ansible directly:

https://docs.openshift.com/enterprise/latest/install_config/http_proxies.html

Specify the hostname for your proxy? (ENTER for none) []: www.proxy.com
List any hosts that should be excluded from your proxy. (ENTER for none) []: x.x.6.125



Actual results:
#cat ~/.config/openshift/hosts
[OSEv3:children]
masters
nodes
nfs

[OSEv3:vars]
ansible_ssh_user=root
openshift_master_default_subdomain=test
deployment_type=openshift-enterprise

[masters]
x.x.6.125 

[nodes]
x.x.6.125  openshift_schedulable=True

[nfs]
x.x.6.125 


Expected results:


Additional info:

Comment 3 Gan Huang 2016-05-16 10:01:07 UTC
Please move to ON_QA once commited to package atomic-openshift-utils.

Comment 4 Gan Huang 2016-05-19 06:17:49 UTC
verified with atomic-openshift-utils-3.0.90-1.git.0.a077b68.el7.noarch

Run "atomic-openshift-installer install --gen-inventory"
Input the http_proxy, https_proxy and no_proxy.

#[root@host-xxx ~]# grep proxy .config/openshift/hosts 
openshift_http_proxy=http://test1.redhat.com
openshift_https_proxy=https://test2.redhat.com
openshift_no_proxy=example.test.local

Comment 6 errata-xmlrpc 2016-06-07 10:55:38 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-2016:1208