From 736bf117fd4ff013042f8cec4c0d70e70d2d8203 Mon Sep 17 00:00:00 2001 From: "Brad P. Crochet" Date: Wed, 8 Jul 2015 17:48:17 -0400 Subject: [PATCH] BZ #1241271 Honor a no_proxy setting for overcloud postdeploy https://bugzilla.redhat.com/show_bug.cgi?id=1241271 Stick the overcloud IP in the no_proxy environment variable before setting up the overcloud Change-Id: I782b998528a75b683a1a6d3bc9bb99094022d093 --- rdomanager_oscplugin/v1/overcloud_deploy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rdomanager_oscplugin/v1/overcloud_deploy.py b/rdomanager_oscplugin/v1/overcloud_deploy.py index 9d461c490..b7e3aba92 100644 --- a/rdomanager_oscplugin/v1/overcloud_deploy.py +++ b/rdomanager_oscplugin/v1/overcloud_deploy.py @@ -555,6 +555,10 @@ class DeployOvercloud(command.Command): overcloud_ip = six.moves.urllib.parse.urlparse( overcloud_endpoint).hostname + no_proxy = [os.environ.get('no_proxy'), overcloud_ip] + os.environ['no_proxy'] = ','.join( + [x for x in no_proxy if x is not None]) + utils.remove_known_hosts(overcloud_ip) keystone.initialize(