Add nova-volume endpoint to service catalog

Change-Id: Id04568d7f8eecc8c8e7c1a92990d37a46923caf7
diff --git a/files/default_catalog.templates b/files/default_catalog.templates
index f6125bb..b9b1844 100644
--- a/files/default_catalog.templates
+++ b/files/default_catalog.templates
@@ -6,12 +6,18 @@
 catalog.RegionOne.identity.name = 'Identity Service'
 
 
-catalog.RegionOne.compute.publicURL = http://%SERVICE_HOST%:8774/v1.1/$(tenant_id)s
-catalog.RegionOne.compute.adminURL = http://%SERVICE_HOST%:8774/v1.1/$(tenant_id)s
-catalog.RegionOne.compute.internalURL = http://%SERVICE_HOST%:8774/v1.1/$(tenant_id)s
+catalog.RegionOne.compute.publicURL = http://%SERVICE_HOST%:8774/v2/$(tenant_id)s
+catalog.RegionOne.compute.adminURL = http://%SERVICE_HOST%:8774/v2/$(tenant_id)s
+catalog.RegionOne.compute.internalURL = http://%SERVICE_HOST%:8774/v2/$(tenant_id)s
 catalog.RegionOne.compute.name = 'Compute Service'
 
 
+catalog.RegionOne.volume.publicURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s
+catalog.RegionOne.volume.adminURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s
+catalog.RegionOne.volume.internalURL = http://%SERVICE_HOST%:8776/v1/$(tenant_id)s
+catalog.RegionOne.volume.name = 'Volume Service'
+
+
 catalog.RegionOne.ec2.publicURL = http://%SERVICE_HOST%:8773/services/Cloud
 catalog.RegionOne.ec2.adminURL = http://%SERVICE_HOST%:8773/services/Admin
 catalog.RegionOne.ec2.internalURL = http://%SERVICE_HOST%:8773/services/Cloud
diff --git a/files/keystone_data.sh b/files/keystone_data.sh
index ed85aca..3f4841f 100755
--- a/files/keystone_data.sh
+++ b/files/keystone_data.sh
@@ -88,6 +88,14 @@
                                  --name=keystone \
                                  --type=identity \
                                  --description="Keystone Identity Service"
+
+if [[ "$ENABLED_SERVICES" =~ "n-vol" ]]; then
+    keystone service-create \
+                                 --name="nova-volume" \
+                                 --type=volume \
+                                 --description="Nova Volume Service"
+fi
+
 if [[ "$ENABLED_SERVICES" =~ "swift" ]]; then
     keystone service-create \
                                  --name=swift \