Bug 1331236 - [quick install] [Behind Proxy] Proxy settings can't be written in inventory hosts file
Summary: [quick install] [Behind Proxy] Proxy settings can't be written in inventory h...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Samuel Munilla
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-28 04:43 UTC by Gan Huang
Modified: 2017-01-22 02:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-07 10:55:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1208 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-06-07 14:55:01 UTC

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


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