diff options
author | Tim Rozet <trozet@redhat.com> | 2016-08-29 21:16:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-29 21:16:49 +0000 |
commit | ca02e70cfd8d810e09b257f1a2adfef70322298f (patch) | |
tree | e675ec45663b350d0fa2d49acd46c89bae6694fc /lib/post-install-functions.sh | |
parent | 9be4e149833d975d9b430fa8b38be84a640ec53f (diff) | |
parent | 75a4194157aa05581812568c1b5412250110618c (diff) |
Merge "Fixes datasource creation for congress" into stable/colorado
Diffstat (limited to 'lib/post-install-functions.sh')
-rwxr-xr-x | lib/post-install-functions.sh | 16 |
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 |