In Juno cycle, we started to implement Nova v2.1 API and most part
has been implemented now.
For using/testing the API, this patch adds the endpoint setting to
devstack.
Change-Id: I25557cb2b0a1384ee11d3e1ae7d424828e766e50
| ... | ... |
@@ -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.computev21.publicURL = http://%SERVICE_HOST%:8774/v2.1/$(tenant_id)s |
|
| 16 |
+catalog.RegionOne.computev21.adminURL = http://%SERVICE_HOST%:8774/v2.1/$(tenant_id)s |
|
| 17 |
+catalog.RegionOne.computev21.internalURL = http://%SERVICE_HOST%:8774/v2.1/$(tenant_id)s |
|
| 18 |
+catalog.RegionOne.computev21.name = Compute Service V2.1 |
|
| 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 |
| ... | ... |
@@ -349,6 +349,14 @@ create_nova_accounts() {
|
| 349 | 349 |
"$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2/\$(tenant_id)s" \ |
| 350 | 350 |
"$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2/\$(tenant_id)s" \ |
| 351 | 351 |
"$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2/\$(tenant_id)s" |
| 352 |
+ |
|
| 353 |
+ local nova_v21_service=$(get_or_create_service "novav21" \ |
|
| 354 |
+ "computev21" "Nova Compute Service V2.1") |
|
| 355 |
+ get_or_create_endpoint $nova_v21_service \ |
|
| 356 |
+ "$REGION_NAME" \ |
|
| 357 |
+ "$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2.1/\$(tenant_id)s" \ |
|
| 358 |
+ "$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2.1/\$(tenant_id)s" \ |
|
| 359 |
+ "$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2.1/\$(tenant_id)s" |
|
| 352 | 360 |
fi |
| 353 | 361 |
fi |
| 354 | 362 |
|