Bug 1620202

Summary: overcloudrc has incorrect no_proxy export
Product: Red Hat OpenStack Reporter: Federico Iezzi <fiezzi>
Component: openstack-tripleo-commonAssignee: Alex Schultz <aschultz>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: aschultz, beth.white, hbrock, jbuchta, jslagle, mburns, mgarciac, slinaber
Target Milestone: z11Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-8.7.1-8.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-10 11:18:29 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 Federico Iezzi 2018-08-22 16:26:31 UTC
Description of problem:
At the end of overcloud deployment, the process tries to write into the overcloudrc the environment no_proxy configuration but it forgets double quoting the entire string.

Follows my customer example
# cat /etc/profile.d/proxy.sh 
PROXY_ENABLED="yes"
export http_proxy="http://hubsekiproxy.rnd.ericsson.se:8080"
export https_proxy="http://hubsekiproxy.rnd.ericsson.se:8080"
export no_proxy="localhost, 127.0.0.1, 10.209.97.86, .seki.rnd.ericsson.se, .rnd.ki.sw.ericsson.se, .rnd.ericsson.se, ctrl-vran-redhat011.vran.edn.ki.sw.ericsson.se"

Follows overcloudrc file after the deployment
# cat overcloudrc | grep proxy
export no_proxy=localhost, 127.0.0.1, 10.209.97.86, .seki.rnd.ericsson.se, .rnd.ki.sw.ericsson.se, .rnd.ericsson.se, ctrl-vran-redhat011.vran.edn.ki.sw.ericsson.se,ctrl-vran-redhat011.vran.edn.ki.sw.ericsson.se,10.209.97.100

Follows when I source the overcloudrc file.
source overcloudrc 
bash: export: `127.0.0.1,': not a valid identifier
bash: export: `10.209.97.86,': not a valid identifier
bash: export: `.seki.rnd.ericsson.se,': not a valid identifier
bash: export: `.rnd.ki.sw.ericsson.se,': not a valid identifier
bash: export: `.rnd.ericsson.se,': not a valid identifier
bash: export: `ctrl-vran-redhat011.vran.edn.ki.sw.ericsson.se,ctrl-vran-redhat011.vran.edn.ki.sw.ericsson.se,10.209.97.100': not a valid identifier

Version-Release number of selected component (if applicable):
OSP13z1

Actual results:
export no_proxy=localhost, 127.0.0.1, 10.209.97.86, .seki.rnd.ericsson.se, .rnd.ki.sw.ericsson.se, .rnd.ericsson.se, ctrl-vran-redhat011.vran.edn.ki.sw.ericsson.se,ctrl-vran-redhat011.vran.edn.ki.sw.ericsson.se,10.209.97.100


Expected results:
export no_proxy="localhost, 127.0.0.1, 10.209.97.86, .seki.rnd.ericsson.se, .rnd.ki.sw.ericsson.se, .rnd.ericsson.se, ctrl-vran-redhat011.vran.edn.ki.sw.ericsson.se,ctrl-vran-redhat011.vran.edn.ki.sw.ericsson.se,10.209.97.100"

Comment 7 errata-xmlrpc 2020-03-10 11:18:29 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-2020:0760