Skip to content

Commit 1cdf5fa

Browse files
Register cinder when using sql keystone catalog.
* Fixes bug #1020735 Change-Id: Ibd954cdda3c855800ae1080950c62dd71b094a01
1 parent 67ec406 commit 1cdf5fa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

files/keystone_data.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,4 +283,16 @@ if [[ "$ENABLED_SERVICES" =~ "cinder" ]]; then
283283
keystone user-role-add --tenant_id $SERVICE_TENANT \
284284
--user_id $CINDER_USER \
285285
--role_id $ADMIN_ROLE
286+
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
287+
CINDER_SERVICE=$(get_id keystone service-create \
288+
--name=cinder \
289+
--type=volume \
290+
--description="Cinder Service")
291+
keystone endpoint-create \
292+
--region RegionOne \
293+
--service_id $CINDER_SERVICE \
294+
--publicurl "http://$SERVICE_HOST:8776/v1/\$(tenant_id)s" \
295+
--adminurl "http://$SERVICE_HOST:8776/v1/\$(tenant_id)s" \
296+
--internalurl "http://$SERVICE_HOST:8776/v1/\$(tenant_id)s"
297+
fi
286298
fi

0 commit comments

Comments
 (0)