]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Allow nova operations with only auth_token
authorSteve Baker <sbaker@redhat.com>
Tue, 2 Apr 2013 01:57:51 +0000 (14:57 +1300)
committerSteve Baker <sbaker@redhat.com>
Tue, 2 Apr 2013 03:05:48 +0000 (16:05 +1300)
commit8234fb0d0e7d4a1398c983e3c018575b4f35e43a
treed75c6040c284898fcacce9ddd2de4cda34f9562b
parent84ec72aa6770e4acd612bb18369de5aef9198d59
Allow nova operations with only auth_token

This uses the same technique as Horizon for auth_token operations.

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

Note that the explicit call to authenticate() is not required
and actually breaks the auth_token case.

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: Ic11a838b96a4b5130cb2ac9d685e8a97c9d0a0ad
heat/engine/clients.py