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. Change-Id: Id03988d89000c4bc976090c68a41ee320b9d43f7 Closes-bug: #1700977
This commit is contained in:
parent
95b1e3cf41
commit
45665406b4
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user