Browse code

Add nova-volume endpoint to service catalog

Change-Id: Id04568d7f8eecc8c8e7c1a92990d37a46923caf7

Vishvananda Ishaya authored on 2012/02/24 10:57:07
Showing 2 changed files
... ...
@@ -6,12 +6,18 @@ catalog.RegionOne.identity.internalURL = http://%SERVICE_HOST%:$(public_port)s/v
6 6
 catalog.RegionOne.identity.name = 'Identity Service'
7 7
 
8 8
 
9
-catalog.RegionOne.compute.publicURL = http://%SERVICE_HOST%:8774/v1.1/$(tenant_id)s
10
-catalog.RegionOne.compute.adminURL = http://%SERVICE_HOST%:8774/v1.1/$(tenant_id)s
11
-catalog.RegionOne.compute.internalURL = http://%SERVICE_HOST%:8774/v1.1/$(tenant_id)s
9
+catalog.RegionOne.compute.publicURL = http://%SERVICE_HOST%:8774/v2/$(tenant_id)s
10
+catalog.RegionOne.compute.adminURL = http://%SERVICE_HOST%:8774/v2/$(tenant_id)s
11
+catalog.RegionOne.compute.internalURL = http://%SERVICE_HOST%:8774/v2/$(tenant_id)s
12 12
 catalog.RegionOne.compute.name = 'Compute Service'
13 13
 
14 14
 
15
+catalog.RegionOne.volume.publicURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s
16
+catalog.RegionOne.volume.adminURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s
17
+catalog.RegionOne.volume.internalURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s
18
+catalog.RegionOne.volume.name = 'Volume Service'
19
+
20
+
15 21
 catalog.RegionOne.ec2.publicURL = http://%SERVICE_HOST%:8773/services/Cloud
16 22
 catalog.RegionOne.ec2.adminURL = http://%SERVICE_HOST%:8773/services/Admin
17 23
 catalog.RegionOne.ec2.internalURL = http://%SERVICE_HOST%:8773/services/Cloud
... ...
@@ -88,6 +88,14 @@ keystone service-create \
88 88
                                  --name=keystone \
89 89
                                  --type=identity \
90 90
                                  --description="Keystone Identity Service"
91
+
92
+if [[ "$ENABLED_SERVICES" =~ "n-vol" ]]; then
93
+    keystone service-create \
94
+                                 --name="nova-volume" \
95
+                                 --type=volume \
96
+                                 --description="Nova Volume Service"
97
+fi
98
+
91 99
 if [[ "$ENABLED_SERVICES" =~ "swift" ]]; then
92 100
     keystone service-create \
93 101
                                  --name=swift \