summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-08-29 10:14:27 -0400
committerTim Rozet <trozet@redhat.com>2016-08-29 17:45:09 +0000
commit75a4194157aa05581812568c1b5412250110618c (patch)
tree1eb5f7c43b6be33b75fb1fc8a74de05b9da3c4e5 /lib
parent6de39f5473101ff55c74099bf7f5e6ebef2e175f (diff)
Fixes datasource creation for congress
There were syntax errors with "auth_url" and an extra double quote. Also added logging to make it more clear when datasources get created. JIRA: APEX-245 Change-Id: I554fb8195116dd71f4b34b8ccf6e969d9b2e7224 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit d26cd6f8b4fc657e23c7cc1070d4fe5383a7a3f6)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/post-install-functions.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh
index 7df55cd5..6e9859a8 100755
--- a/lib/post-install-functions.sh
+++ b/lib/post-install-functions.sh
@@ -114,16 +114,24 @@ if [ "${deploy_options_array['congress']}" == 'True' ]; then
ds_configs="--config username=\$OS_USERNAME
--config tenant_name=\$OS_TENANT_NAME
--config password=\$OS_PASSWORD
- --config auth_Url=\$OS_AUTH_URL"
+ --config auth_url=\$OS_AUTH_URL"
for s in nova neutronv2 ceilometer cinder glancev2 keystone; do
ds_extra_configs=""
if [ "\$s" == "nova" ]; then
nova_micro_version=\$(nova version-list | grep CURRENT | awk '{print \$10}')
- ds_extra_configs+="--config api_version="\$nova_micro_version"
+ ds_extra_configs+="--config api_version=\$nova_micro_version"
+ fi
+ if openstack congress datasource create \$s "\$s" \$ds_configs \$ds_extra_configs; then
+ echo "INFO: Datasource: \$s created"
+ else
+ echo "WARN: Datasource: \$s could NOT be created"
fi
- openstack congress datasource create \$s "\$s" \$ds_configs \$ds_extra_configs
done
- openstack congress datasource create doctor "doctor"
+ if openstack congress datasource create doctor "doctor"; then
+ echo "INFO: Datasource: doctor created"
+ else
+ echo "WARN: Datsource: doctor could NOT be created"
+ fi
fi
EOI