summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaisonneau <david.blaisonneau@orange.com>2016-08-23 15:19:36 +0200
committerNarinder Gupta <narinder.gupta@canonical.com>2016-08-23 13:52:05 +0000
commitf6b2dff52fd9440aa0f41122992501f36ecaedcf (patch)
tree7143e9956510f2702090c1784825905ece00bfef
parente6f1836f6e7d344b69bacd4a57fec354b51a7888 (diff)
Depracating commands cleaning on joid-configure-openstack
Change-Id: Ibdea956dbb438cd0dabf246fec69b612fcc88e41 Signed-off-by: David Blaisonneau <david.blaisonneau@orange.com> (cherry picked from commit 6f82b528dafd31e57b9a5f5a10154e35dfa96b8d)
-rwxr-xr-xjuju/joid-configure-openstack10
1 files changed, 5 insertions, 5 deletions
diff --git a/juju/joid-configure-openstack b/juju/joid-configure-openstack
index fafb22b8..65a29586 100755
--- a/juju/joid-configure-openstack
+++ b/juju/joid-configure-openstack
@@ -47,7 +47,7 @@ fi
echo "export SERVICE_ENDPOINT=http://$keystone:35357/v2.0/
unset SERVICE_TOKEN
-unset SERVICE_ENDPOINT
+unset SERVICE_ENDPOINT
export OS_AUTH_URL=http://$keystone:35357/v2.0/
export OS_USERNAME=$(juju get keystone | python -c "import yaml; import sys; print yaml.load(sys.stdin)[\"settings\"][\"admin-user\"][\"value\"]")
export OS_PASSWORD=$(juju get keystone | python -c "import yaml; import sys; print yaml.load(sys.stdin)[\"settings\"][\"admin-password\"][\"value\"]")
@@ -58,11 +58,11 @@ export OS_REGION_NAME=$(juju get keystone | python -c "import yaml; import sys;
source ~/nova.rc
# Determine the tenant id for the configured tenant name.
-export TENANT_ID="$(keystone tenant-list | grep $OS_TENANT_NAME | awk '{ print $2 }')"
+export TENANT_ID="$(openstack project list | grep $OS_TENANT_NAME | awk '{ print $2 }')"
if [ "$TENANT_ID" = "" ]; then
- echo "Unable to find tenant ID, keystone auth problem"
- exit
+ echo "Unable to find tenant ID, keystone auth problem"
+ exit
fi
echo "Configuring Openstack Neutron Networking"
@@ -130,7 +130,7 @@ nova quota-class-update --instances 400 $TENANT_ID
nova quota-class-update --cores 800 $TENANT_ID
nova quota-class-update --ram 404800 $TENANT_ID
nova quota-class-update --security-groups 4000 $TENANT_ID
-nova quota-class-update --floating_ips -1 $TENANT_ID
+nova quota-class-update --floating-ips -1 $TENANT_ID
nova quota-class-update --security-group-rules -1 $TENANT_ID
echo "Uploading images to glance"