Fixes LP #992096 - Add configure_via_auth=False

We now need to pass configure_via_auth=False to the glance
client constructor to signal that we don't want to have the
endpoint returned by the Keystone service catalog to override
the URL we are already passing in (the [image][host] configuration
option...)

Change-Id: Ie2ef15bfe03efe4b83e687d19283dfa66c25289e
This commit is contained in:
Jay Pipes 2012-04-30 15:10:18 -04:00
parent c7251962fe
commit ad6feca97e
3 changed files with 30 additions and 1 deletions

@ -73,6 +73,20 @@ log_level = ERROR
# This section contains configuration options used when executing tests
# against the OpenStack Images API
# The type of endpoint for an Image API service. Unless you have a
# custom Keystone service catalog implementation, you probably want to leave
# this value as "image"
catalog_type = image
# The version of the OpenStack Images API to use
api_version = 1
# This is the main host address of the Image API
host = 127.0.0.1
# Port that the Image API is running on
port = 9292
# This should be the username of a user WITHOUT administrative privileges
username = {$USERNAME}
# The above non-administrative user's password

@ -73,6 +73,20 @@ log_level = %COMPUTE_LOG_LEVEL%
# This section contains configuration options used when executing tests
# against the OpenStack Images API
# The type of endpoint for an Image API service. Unless you have a
# custom Keystone service catalog implementation, you probably want to leave
# this value as "image"
catalog_type = %IMAGE_CATALOG_TYPE%
# The version of the OpenStack Images API to use
api_version = %IMAGE_API_VERSION%
# This is the main host address of the Image API
host = %IMAGE_HOST%
# Port that the Image API is running on
port = %IMAGE_PORT%
# This should be the username of a user WITHOUT administrative privileges
username = %USERNAME%
# The above non-administrative user's password

@ -50,7 +50,8 @@ class Service(BaseService):
}
self._client = client.Client(config.images.host,
config.images.port,
creds=creds)
creds=creds,
configure_via_auth=False)
else:
raise NotImplementedError