Browse code

Create an endpoint for nova api v3.

Supports both SQL and templated keystone backend.
Create an additional endpoint for nova api v3.
The service type is computev3.
The endpoint is similar to the v2 one but the version
part is "v3" rather than "v2", and it does not include
the tenantid anymore.

Fixes: bug #1191798
Change-Id: I86e4734c3a9e57f1dc68f1104449d7c041d6927d

Andrea Frittoli authored on 2013/06/17 23:34:54
Showing 2 changed files
... ...
@@ -12,6 +12,12 @@ catalog.RegionOne.compute.internalURL = http://%SERVICE_HOST%:8774/v2/$(tenant_i
12 12
 catalog.RegionOne.compute.name = Compute Service
13 13
 
14 14
 
15
+catalog.RegionOne.computev3.publicURL = http://%SERVICE_HOST%:8774/v3
16
+catalog.RegionOne.computev3.adminURL = http://%SERVICE_HOST%:8774/v3
17
+catalog.RegionOne.computev3.internalURL = http://%SERVICE_HOST%:8774/v3
18
+catalog.RegionOne.computev3.name = Compute Service V3
19
+
20
+
15 21
 catalog.RegionOne.volume.publicURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s
16 22
 catalog.RegionOne.volume.adminURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s
17 23
 catalog.RegionOne.volume.internalURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s
... ...
@@ -407,6 +407,17 @@ create_nova_accounts() {
407 407
                 --publicurl "$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2/\$(tenant_id)s" \
408 408
                 --adminurl "$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2/\$(tenant_id)s" \
409 409
                 --internalurl "$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2/\$(tenant_id)s"
410
+            NOVA_V3_SERVICE=$(keystone service-create \
411
+                --name=nova \
412
+                --type=computev3 \
413
+                --description="Nova Compute Service V3" \
414
+                | grep " id " | get_field 2)
415
+            keystone endpoint-create \
416
+                --region RegionOne \
417
+                --service_id $NOVA_V3_SERVICE \
418
+                --publicurl "$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v3" \
419
+                --adminurl "$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v3" \
420
+                --internalurl "$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v3"
410 421
         fi
411 422
     fi
412 423
 }