Browse code

Merge "Create block-storage endpoint for cinder"

Zuul authored on 2018/01/31 17:27:54
Showing 1 changed files
... ...
@@ -343,9 +343,16 @@ function create_cinder_accounts {
343 343
 
344 344
         create_service_user "cinder"
345 345
 
346
+        # block-storage is the official service type
347
+        get_or_create_service "cinder" "block-storage" "Cinder Volume Service"
346 348
         get_or_create_service "cinder" "volume" "Cinder Volume Service"
347 349
         if [ "$CINDER_USE_MOD_WSGI" == "False" ]; then
348 350
             get_or_create_endpoint \
351
+                "block-storage" \
352
+                "$REGION_NAME" \
353
+                "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/"
354
+
355
+            get_or_create_endpoint \
349 356
                 "volume" \
350 357
                 "$REGION_NAME" \
351 358
                 "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v1/\$(project_id)s"
... ...
@@ -363,6 +370,11 @@ function create_cinder_accounts {
363 363
                 "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v3/\$(project_id)s"
364 364
         else
365 365
             get_or_create_endpoint \
366
+                "block-storage" \
367
+                "$REGION_NAME" \
368
+                "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST/"
369
+
370
+            get_or_create_endpoint \
366 371
                 "volume" \
367 372
                 "$REGION_NAME" \
368 373
                 "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST/volume/v1/\$(project_id)s"