]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Allow cinder operations with only auth_token
authorSteve Baker <sbaker@redhat.com>
Wed, 27 Mar 2013 20:29:38 +0000 (09:29 +1300)
committerSteve Baker <sbaker@redhat.com>
Tue, 2 Apr 2013 03:05:40 +0000 (16:05 +1300)
commit66d432663265dc5ae2ba009249847c5f6fde400f
treebf7604a54b2d08166d18e0b4047974f0ad95e437
parentd388e48fa30ac3bd602dacf111eaa3f7518a4480
Allow cinder operations with only auth_token

This uses the same technique as Horizon for auth_token operations.

Specifically, the cinder endpoint is found directly from keystone
and the auth_token and management_url are set on cinderclient
after it has been created.

Client libs are in theory capable of looking up their own endpoints
given an auth_token, but in practice this is the code-path least
travelled and there are many issues. I think it is best to do what
Horizon does, since all Horizon operations use only a token and always
provide the endpoint to the client lib.

Tested by launching a stack with and without the --token-only flag

Also tested using Horizon, which is auth_token only

Part of blueprint auth-token-only

Change-Id: Iea9159299ad3f354bcc768c9ac1172d6d9f814a8
heat/engine/clients.py