From 45665406b49680967d246de647a9b95a27e14b39 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Fri, 30 Jun 2017 16:06:55 +0200 Subject: [PATCH] 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 --- openstack_dashboard/api/cinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/api/cinder.py b/openstack_dashboard/api/cinder.py index 01852b9fbc..5a69f872e7 100644 --- a/openstack_dashboard/api/cinder.py +++ b/openstack_dashboard/api/cinder.py @@ -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))