Skip to content

Commit 3feaa38

Browse files
Ken'ichi Ohmichioomichi
authored andcommitted
Add Nova v2.1 API endpoint
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
1 parent fa4ece8 commit 3feaa38

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

files/default_catalog.templates

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ catalog.RegionOne.compute.internalURL = http://%SERVICE_HOST%:8774/v2/$(tenant_i
1212
catalog.RegionOne.compute.name = Compute Service
1313

1414

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+
1521
catalog.RegionOne.volume.publicURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s
1622
catalog.RegionOne.volume.adminURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s
1723
catalog.RegionOne.volume.internalURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s

lib/nova

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,14 @@ create_nova_accounts() {
349349
"$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2/\$(tenant_id)s" \
350350
"$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2/\$(tenant_id)s" \
351351
"$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"
352360
fi
353361
fi
354362

0 commit comments

Comments
 (0)