Change-Id: Ibdea956dbb438cd0dabf246fec69b612fcc88e41
Signed-off-by: David Blaisonneau <david.blaisonneau@orange.com>
echo "export SERVICE_ENDPOINT=http://$keystone:35357/v2.0/
unset SERVICE_TOKEN
echo "export SERVICE_ENDPOINT=http://$keystone:35357/v2.0/
unset SERVICE_TOKEN
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\"]")
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\"]")
source ~/nova.rc
# Determine the tenant id for the configured tenant name.
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
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"
fi
echo "Configuring Openstack Neutron Networking"
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 --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"
nova quota-class-update --security-group-rules -1 $TENANT_ID
echo "Uploading images to glance"