Fix onap-parameters issue when not using proxy 71/29071/2
authorGary Wu <gary.i.wu@huawei.com>
Wed, 24 Jan 2018 22:40:39 +0000 (14:40 -0800)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Thu, 25 Jan 2018 13:21:44 +0000 (08:21 -0500)
Fix onap-parameters issue when not using proxy for
designate, but IS_SAME_OPENSTACK_AS_VNF is true.
In this case, the OPENSTACK_KEYSTONE_URL parameters
were not being properly set for dcae_keystone_url.

This change fixes the issue.

Change-Id: Icef25f38caeaaffebef6cec17571df36cdfd5335
Issue-ID: OOM-615
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
kubernetes/config/docker/init/config-init.sh
kubernetes/config/values.yaml

index 9d8e587..e0b3402 100755 (executable)
@@ -246,8 +246,11 @@ then
     if [ "$DNSAAS_PROXY_ENABLE" = "true" ]
     then
         find /config-init/$NAMESPACE/dcaegen2/heat/ -type f -exec sed -i -e "s,DCAE_FINAL_KEYSTONE_URL_HERE,$DCAE_PROXIED_KEYSTONE_URL,g" {} \;
-    else
+    elif [ "$IS_SAME_OPENSTACK_AS_VNF" = "false" ]
+    then
         find /config-init/$NAMESPACE/dcaegen2/heat/ -type f -exec sed -i -e "s,DCAE_FINAL_KEYSTONE_URL_HERE,$DCAE_OS_KEYSTONE_URL/$DCAE_OS_API_VERSION,g" {} \;
+    else
+        find /config-init/$NAMESPACE/dcaegen2/heat/ -type f -exec sed -i -e "s,DCAE_FINAL_KEYSTONE_URL_HERE,$OPENSTACK_KEYSTONE_URL/$OPENSTACK_API_VERSION,g" {} \;
     fi
 fi
 
index a52d295..c26e804 100644 (file)
@@ -3,5 +3,5 @@ nsPrefix: onap
 dockerSharePath: /dockerdata-nfs
 image:
   repository: oomk8s/config-init
-  tag: 1.1.9
+  tag: 1.1.10
   pullPolicy: Always