Skip to content

Commit

Permalink
Register cinder when using sql keystone catalog.
Browse files Browse the repository at this point in the history
* Fixes bug #1020735

Change-Id: Ibd954cdda3c855800ae1080950c62dd71b094a01
  • Loading branch information
sleepsonthefloor committed Jul 3, 2012
1 parent 67ec406 commit 1cdf5fa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions files/keystone_data.sh
Expand Up @@ -283,4 +283,16 @@ if [[ "$ENABLED_SERVICES" =~ "cinder" ]]; then
keystone user-role-add --tenant_id $SERVICE_TENANT \
--user_id $CINDER_USER \
--role_id $ADMIN_ROLE
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
CINDER_SERVICE=$(get_id keystone service-create \
--name=cinder \
--type=volume \
--description="Cinder Service")
keystone endpoint-create \
--region RegionOne \
--service_id $CINDER_SERVICE \
--publicurl "http://$SERVICE_HOST:8776/v1/\$(tenant_id)s" \
--adminurl "http://$SERVICE_HOST:8776/v1/\$(tenant_id)s" \
--internalurl "http://$SERVICE_HOST:8776/v1/\$(tenant_id)s"
fi
fi

0 comments on commit 1cdf5fa

Please sign in to comment.