Bug 1620202 - overcloudrc has incorrect no_proxy export
Summary: overcloudrc has incorrect no_proxy export
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z11
: 13.0 (Queens)
Assignee: Alex Schultz
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-22 16:26 UTC by Federico Iezzi
Modified: 2020-03-10 11:18 UTC (History)
8 users (show)

Fixed In Version: openstack-tripleo-common-8.7.1-8.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-10 11:18:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1854868 0 None None None 2019-12-02 23:20:04 UTC
OpenStack gerrit 697484 0 None MERGED Quote output values for overcloudrc 2020-03-02 13:31:49 UTC

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


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