]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Switch to keystone service_type=orchestration.
authorSteve Baker <steve@stevebaker.org>
Tue, 4 Sep 2012 20:16:55 +0000 (08:16 +1200)
committerSteve Baker <steve@stevebaker.org>
Tue, 4 Sep 2012 20:17:45 +0000 (08:17 +1200)
This is to match the service type configured in devstack heat.

heat/common/auth.py
heat/engine/auth.py
tools/heat-keystone-service
tools/heat-keystone-service-devstack

index c97c284d6c90d7ef8f638d79d394ea259d29c58d..571fbdafaf6fbac3d3ae5fadfa2ccf28962988f9 100644 (file)
@@ -200,7 +200,7 @@ class KeystoneStrategy(BaseStrategy):
                     logger.warn(msg)
                     continue
 
-                if service_type == 'heat':
+                if service_type == 'orchestration':
                     for ep in service['endpoints']:
                         if region is None or region == ep['region']:
                             if endpoint is not None:
index a4be7ef0a4999fa0d3992d53783d307ec56f58b2..3712d11cbd8d501289c1e7a47de580362105d1d1 100644 (file)
@@ -61,7 +61,7 @@ def decrypt(auth_info):
     return res
 
 
-def authenticate(con, service_type='heat', service_name='heat'):
+def authenticate(con, service_type='orchestration', service_name='heat'):
     """ Authenticate a user context.  This authenticates either an
         EC2 style key context or a keystone user/pass context.
 
index 53319a0ed27cf3616a09fcdf0ffc4db86a995b94..842b9b1097b5b5d63e695c8e990ddf9b39376f55 100755 (executable)
@@ -39,7 +39,7 @@ echo SERVICE_TOKEN $SERVICE_TOKEN
 # Services
 HEAT_SERVICE=$(get_id \
 keystone service-create --name=heat \
-                        --type=heat \
+                        --type=orchestration \
                         --description="Heat Service")
 HEAT_USER=$(get_id keystone user-create --name=heat \
                                         --pass="$SERVICE_PASSWORD" \
index 504b776f45e015da602c66280ca1b85503191cce..65dd7f52f90b6fe395590ab948117cafb283354b 100755 (executable)
@@ -39,7 +39,7 @@ echo SERVICE_TOKEN $SERVICE_TOKEN
 # Services
 HEAT_SERVICE=$(get_id \
 keystone service-create --name=heat \
-                        --type=heat \
+                        --type=orchestration \
                         --description="Heat Service")
 HEAT_USER=$(get_id keystone user-create --name=heat \
                                         --pass="$SERVICE_PASSWORD" \