Bug 1468424 - NO_PROXY should not be set if they're not specified
NO_PROXY should not be set if they're not specified
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Tim Bielawa
Gan Huang
: Regression
Depends On:
  Show dependency treegraph
Reported: 2017-07-07 00:07 EDT by Gan Huang
Modified: 2017-08-16 15 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: NO_PROXY setting logic was incorrectly indented in the openshift-ansible facts module Consequence: NO_PROXY settings were ALWAYS generated and added to service config files Fix: The logic indentation was moved into the correct conditional Result: The NO_PROXY parameter is only generated if a user defines the openshift_no_proxy inventory variable now
Story Points: ---
Clone Of:
Last Closed: 2017-08-10 01:29:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 05:02:50 EDT

  None (edit)
Description Gan Huang 2017-07-07 00:07:08 EDT
Description of problem:
Trigger 3.6 OCP cluster, it resulted in that NO_PROXY was set mistakenly in /etc/sysconfig/docker, actually we didn't set proxy related variables in inventory hosts file.

Version-Release number of the following components:

How reproducible:

Steps to Reproduce:
1.Trigger 3.6 installation without proxy variables set

Actual results:
# egrep '^HTTP_PROXY|^HTTPS_PROXY|^NO_PROXY' /etc/sysconfig/docker /etc/sysconfig/atomic-openshift-node


Expected results:
We shouldn't set the no_proxy if we don't set it in inventory host file.

Additional info:
TASK [openshift_facts : Gather Cluster facts and set is_containerized if needed] ***
Thursday 06 July 2017  15:39:49 +0000 (0:00:00.835)       0:00:29.254 ********* 
changed: [qe-cl-auto-dgwp-master-etcd-zone2-1.0706-5vc.qe.rhcloud.com] => {
    "ansible_facts": {
        "openshift": {
            "common": {
                "admin_binary": "oadm", 
                "all_hostnames": [
                "cli_image": "openshift3/ose", 
                "client_binary": "oc", 
                "cluster_id": "default", 
                "config_base": "/etc/origin", 
                "data_dir": "/var/lib/origin", 
                "debug_level": "2", 
                "deployer_image": "openshift3/ose-deployer", 
                "deployment_subtype": "basic", 
                "deployment_type": "openshift-enterprise", 
                "dns_domain": "cluster.local", 
                "etcd_runtime": "host", 
                "examples_content_version": "v3.6", 
                "generate_no_proxy_hosts": true, 
                "hostname": "qe-cl-auto-dgwp-master-etcd-zone2-1", 
                "install_examples": true, 
                "installed_variant_rpms": [], 
                "internal_hostnames": [
                "ip": "", 
                "is_atomic": false, 
                "is_containerized": false, 
                "is_etcd_system_container": false, 
                "is_master_system_container": false, 
                "is_node_system_container": false, 
                "is_openvswitch_system_container": false, 
                "kube_svc_ip": "", 
                "no_proxy": ".cluster.local,.svc,qe-cl-auto-dgwp-master-etcd-zone2-1", 

Comment 1 Scott Dodson 2017-07-07 08:53:34 EDT
Under the assumption that this actually causes problems installing we'll treat this as a blocker.
Comment 3 Gan Huang 2017-07-11 05:19:33 EDT
Tested with openshift-ansible-3.6.140-1.git.0.4a02427.el7.noarch.rpm

Master sysconfig still had the no proxy settings:

#cat inventory_hosts

[root@qe-cl-auto-jyej-master-etcd-zone2-1 ~]# egrep '^HTTP_PROXY|^HTTPS_PROXY|^NO_PROXY' /etc/sysconfig/docker /etc/sysconfig/atomic-openshift-master

[root@qe-cl-auto-jyej-master-etcd-zone2-1 ~]# egrep '^HTTP_PROXY|^HTTPS_PROXY|^NO_PROXY' /etc/sysconfig/docker /etc/sysconfig/atomic-openshift-master-api 

[root@qe-cl-auto-jyej-master-etcd-zone2-1 ~]# egrep '^HTTP_PROXY|^HTTPS_PROXY|^NO_PROXY' /etc/sysconfig/docker /etc/sysconfig/atomic-openshift-master-controllers
Comment 4 Tim Bielawa 2017-07-17 10:43:09 EDT
Working on this again in https://github.com/openshift/openshift-ansible/pull/4762
Comment 6 Scott Dodson 2017-07-21 09:56:34 EDT
More changes merged.
Comment 7 Gan Huang 2017-07-24 05:33:12 EDT
Verified with openshift-ansible-3.6.165-1.git.0.fd7125e.el7.noarch.rpm
Comment 9 errata-xmlrpc 2017-08-10 01:29:50 EDT
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.


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