commit a17e0ee4c60bdc704621394602e1f0d43707750a
Author: Steve Baker <email address hidden>
Date: Thu Dec 18 10:41:34 2014 +1300
Use configured auth for standalone middleware
Previously auth_password.KeystonePasswordAuthProtocol directly created
a keystone v2 client, which means that heat-standalone wouldn't
work if heat-engine is using the default KeystoneClientV3 client.
This change creates a heat_keystoneclient.KeystoneClient and uses that to
fetch the data required to build the authenticated env to pass to the
request context. This means that the standalone middleware will now work
with the default v3 keystone backend, the contrib v2 backend, or any other
valid implementation of KeystoneClient. The type of KeystoneClient is
determined by the heat.conf keystone_backend value, which means that this
value is now read by heat-api when using the standalone middleware.
For v3 the service catalog is left empty, which means heat-engine will fetch
it again.
Reviewed: https:/ /review. openstack. org/141908 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=a17e0ee4c60 bdc704621394602 e1f0d43707750a
Committed: https:/
Submitter: Jenkins
Branch: master
commit a17e0ee4c60bdc7 04621394602e1f0 d43707750a
Author: Steve Baker <email address hidden>
Date: Thu Dec 18 10:41:34 2014 +1300
Use configured auth for standalone middleware
Previously auth_password. KeystonePasswor dAuthProtocol directly created
a keystone v2 client, which means that heat-standalone wouldn't
work if heat-engine is using the default KeystoneClientV3 client.
This change creates a heat_keystonecl ient.KeystoneCl ient and uses that to
fetch the data required to build the authenticated env to pass to the
request context. This means that the standalone middleware will now work
with the default v3 keystone backend, the contrib v2 backend, or any other
valid implementation of KeystoneClient. The type of KeystoneClient is
determined by the heat.conf keystone_backend value, which means that this
value is now read by heat-api when using the standalone middleware.
For v3 the service catalog is left empty, which means heat-engine will fetch
it again.
Change-Id: I46d4edbfffdb0e 606e4f4c767610c 137d03495f4
Closes-Bug: #1402472