* Fixes bug #1020735
Change-Id: Ibd954cdda3c855800ae1080950c62dd71b094a01
| ... | ... |
@@ -283,4 +283,16 @@ if [[ "$ENABLED_SERVICES" =~ "cinder" ]]; then |
| 283 | 283 |
keystone user-role-add --tenant_id $SERVICE_TENANT \ |
| 284 | 284 |
--user_id $CINDER_USER \ |
| 285 | 285 |
--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 |
|
| 286 | 298 |
fi |