Prefer volumev3 and volumev2 endpoints over volume
Make cinderclient use volumev3 or volumev2 endpoints, before
falling back to the volume endpoint, otherwise Horizon is
trying to use the v1 API, and that doesn't work with the
"sort" parameter that we are using, resulting in an empty
volumes list.
Closes-bug:
@@ -172,7 +172,7 @@ class VolumePool(base.APIResourceWrapper):
def get_auth_params_from_request(request):
auth_url = base.url_for(request, 'identity')
cinder_urls = []
- for service_name in ('volume', 'volumev2', 'volumev3'):
+ for service_name in ('volumev3', 'volumev2', 'volume'):
try:
cinder_url = base.url_for(request, service_name)
cinder_urls.append((service_name, cinder_url))
