Bug fix on HEAT template HTTP_PROXY 77/56677/2
authorgwu <gary.i.wu@huawei.com>
Wed, 18 Jul 2018 05:36:47 +0000 (22:36 -0700)
committergwu <gary.i.wu@huawei.com>
Wed, 18 Jul 2018 05:50:41 +0000 (22:50 -0700)
Various boot scripts should have been checking for "no_proxy"
but were checking for " " instead.  This fixes the issue.

Also add default values for HTTP_PROXY variables.

Change-Id: I5245018a7bb9c33b84ac3096d8a9c0986b2e976c
Issue-ID: OOM-1275
Signed-off-by: gwu <gary.i.wu@huawei.com>
21 files changed:
boot/aaf_install.sh
boot/aaf_serv.sh
boot/aai_serv.sh
boot/appc_serv.sh
boot/clamp_serv.sh
boot/dcae2_serv.sh
boot/mr_serv.sh
boot/music_serv.sh
boot/nbi_serv.sh
boot/oof_serv.sh
boot/openo_all_serv.sh
boot/openo_serv.sh
boot/policy_serv.sh
boot/portal_serv.sh
boot/robot_serv.sh
boot/sdc_serv.sh
boot/sdnc_serv.sh
boot/sms_serv.sh
boot/so_serv.sh
boot/vid_serv.sh
heat/ONAP/onap_openstack.yaml

index ab7bcf7..882c3ee 100644 (file)
@@ -10,7 +10,7 @@ CODE_REPO=$(cat /opt/config/remote_repo.txt)
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index 51391b8..597969b 100644 (file)
@@ -12,7 +12,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index dc93be6..09949bb 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index de9c259..6947b9f 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index edda393..2c3a898 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index b05a895..cfb77e4 100644 (file)
@@ -28,7 +28,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index 505beb8..9e324dc 100644 (file)
@@ -29,7 +29,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index 849d2eb..11b95a1 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index a9390b8..9c4eea0 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index 01fb3fd..4e73ac8 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index e677683..57de290 100644 (file)
@@ -2,7 +2,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index c46329a..71f0245 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index cad2720..f5e2b23 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index 1995488..d27e469 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index d1203e5..656b9af 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index a2bb3d1..8083cb7 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index cce2039..e5bb37e 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index 2bbf255..06310db 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index 762d2e1..48e7259 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index 91b4d24..8e92d20 100644 (file)
@@ -11,7 +11,7 @@
 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
 
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
 then
     export http_proxy=$HTTP_PROXY
     export https_proxy=$HTTPS_PROXY
index 771cdfb..2eaaf73 100644 (file)
@@ -144,10 +144,12 @@ parameters:
   http_proxy:
     type: string
     description: http proxy address
+    default: 'no_proxy'
 
   https_proxy:
     type: string
     description: https proxy address
+    default: 'no_proxy'
 
   ######################
   #                    #