]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Derive keystone_ec2_uri from auth_uri
authorSteve Baker <sbaker@redhat.com>
Mon, 12 Aug 2013 21:25:03 +0000 (09:25 +1200)
committerSteve Baker <sbaker@redhat.com>
Wed, 14 Aug 2013 03:43:38 +0000 (15:43 +1200)
commit44e65a8516f53f2f5fe86ea71afefea24d59561d
treefd9dc5b888f74b9cf7226bf1a46ea8aa2ff09807
parente9b63ba4586f0b615e861b0307872285b99202a9
Derive keystone_ec2_uri from auth_uri

ec2token auth_uri must be correctly configured for heat to work.
The /ec2tokens path is not an endpoint in its own right, it is
part of the keystone v2.0 API. The keystone_ec2_uri configuration
parameter was only used for ec2 style credentials validation in
the ec2token middleware.  It might have also propagated all the
way into the user_creds table to be stored for each stack were it
not for this chain of failures (removed in this commit):
- X-Auth-EC2_URL header is set in ec2token, but header X-Auth-EC2-Url
  is read by RequestContext
- RequestContext stores the ec2 uri in aws_auth_uri, but UserCreds
  expects aws_auth_url

Change-Id: I9908e17bed33fdc64d058a6d6db7b29f9c8d53d6
etc/heat/heat-api-cfn.conf
etc/heat/heat-api-cloudwatch.conf
etc/heat/heat.conf.sample
heat/api/aws/ec2token.py
heat/common/context.py
heat/tests/test_api_ec2token.py