We have no guarantees that the keystone service catalog will have the
root resource of any given service registered. As most versioned API
endpoints require tokens, we can reasonably assume that a 401 will
be encountered. This patch adds an extra check against the response
from the provided URL, and should a 401 be encountered, attempts
to resolve the versions from the root resource of the provided URL.
Change-Id: I655409f0eb9bfbd3489827db46faef026ede82f9
This patch add _requestComponents and serviceEndpoint methods to
abstract service, as these methods ared used for both Keystone and
Glance services.
Change-Id: Iccc334c0bbd79c1207855260932dab984f2d9d6c
This patch updates common class named AbstractService to propose
common logic for multiple version negociation.
Change-Id: I999d95fca8ff01afea02ed9953c6b4a3828fa3eb
This patch creates a common class named AbstractService from which
all API classes can inherit common logic.
Change-Id: I18339ac19ed2b97a7b9b3d6a0f1e01292080c422