Browse code

Fix keystone_data.sh to match default_catalog.templates

Endpoint creating in keystone_data.sh tends to drift because
KEYSTONE_CATALOG_BACKEND=sql is not the default.

This patch should bring them closer together, and fix a problem I was having
with keystone auth

Change-Id: Ifac57b8e69234975d1ff65ace72d46d3a5808119

Steve Baker authored on 2012/09/11 07:05:14
Showing 1 changed files
... ...
@@ -101,7 +101,7 @@ if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
101 101
 		--service_id $KEYSTONE_SERVICE \
102 102
 		--publicurl "http://$SERVICE_HOST:\$(public_port)s/v2.0" \
103 103
 		--adminurl "http://$SERVICE_HOST:\$(admin_port)s/v2.0" \
104
-		--internalurl "http://$SERVICE_HOST:\$(admin_port)s/v2.0"
104
+		--internalurl "http://$SERVICE_HOST:\$(public_port)s/v2.0"
105 105
 fi
106 106
 
107 107
 # Nova
... ...
@@ -123,9 +123,9 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
123 123
         keystone endpoint-create \
124 124
             --region RegionOne \
125 125
             --service_id $NOVA_SERVICE \
126
-            --publicurl "http://$SERVICE_HOST:\$(compute_port)s/v1.1/\$(tenant_id)s" \
127
-            --adminurl "http://$SERVICE_HOST:\$(compute_port)s/v1.1/\$(tenant_id)s" \
128
-            --internalurl "http://$SERVICE_HOST:\$(compute_port)s/v1.1/\$(tenant_id)s"
126
+            --publicurl "http://$SERVICE_HOST:\$(compute_port)s/v2/\$(tenant_id)s" \
127
+            --adminurl "http://$SERVICE_HOST:\$(compute_port)s/v2/\$(tenant_id)s" \
128
+            --internalurl "http://$SERVICE_HOST:\$(compute_port)s/v2/\$(tenant_id)s"
129 129
     fi
130 130
     # Nova needs ResellerAdmin role to download images when accessing
131 131
     # swift through the s3 api. The admin role in swift allows a user
... ...
@@ -197,9 +197,9 @@ if [[ "$ENABLED_SERVICES" =~ "g-api" ]]; then
197 197
         keystone endpoint-create \
198 198
             --region RegionOne \
199 199
             --service_id $GLANCE_SERVICE \
200
-            --publicurl "http://$SERVICE_HOST:9292/v1" \
201
-            --adminurl "http://$SERVICE_HOST:9292/v1" \
202
-            --internalurl "http://$SERVICE_HOST:9292/v1"
200
+            --publicurl "http://$SERVICE_HOST:9292" \
201
+            --adminurl "http://$SERVICE_HOST:9292" \
202
+            --internalurl "http://$SERVICE_HOST:9292"
203 203
     fi
204 204
 fi
205 205
 
... ...
@@ -223,7 +223,7 @@ if [[ "$ENABLED_SERVICES" =~ "swift" ]]; then
223 223
             --region RegionOne \
224 224
             --service_id $SWIFT_SERVICE \
225 225
             --publicurl "http://$SERVICE_HOST:8080/v1/AUTH_\$(tenant_id)s" \
226
-            --adminurl "http://$SERVICE_HOST:8080/v1" \
226
+            --adminurl "http://$SERVICE_HOST:8080" \
227 227
             --internalurl "http://$SERVICE_HOST:8080/v1/AUTH_\$(tenant_id)s"
228 228
     fi
229 229
 fi