commit 016876bee59f1aaa94b459355550e95e4d840905
Author: Ivan Kolodyazhny <email address hidden>
Date: Wed May 24 13:00:46 2017 +0300
Get all needed instances for volumes attachments at Admin->Volumes
Nova server_list() wrapper needs to receive an explicit `all_tenants`
boolean flag in order to request instances for _all_ tenants -
otherwise while rendering Admin->Volumes table Django will request
missing instances (to get their names for volume attachments) one by
one, thus significantly increasing response time.
This patch adds check if all_tenants in search_opts and add it to
the search else uses tenant_id in the search_opts.
Reviewed: https:/ /review. openstack. org/521066 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=016876bee59 f1aaa94b4593555 50e95e4d840905
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 016876bee59f1aa a94b459355550e9 5e4d840905
Author: Ivan Kolodyazhny <email address hidden>
Date: Wed May 24 13:00:46 2017 +0300
Get all needed instances for volumes attachments at Admin->Volumes
Nova server_list() wrapper needs to receive an explicit `all_tenants`
boolean flag in order to request instances for _all_ tenants -
otherwise while rendering Admin->Volumes table Django will request
missing instances (to get their names for volume attachments) one by
one, thus significantly increasing response time.
This patch adds check if all_tenants in search_opts and add it to
the search else uses tenant_id in the search_opts.
Co-Authored-By: Dmitry Sutyagin <email address hidden> 69619649871aef9 1e1799ee385 1e64262a5ba63ae 94b1f05cf0)
Co-Authored-By: Ivan Kolodyazhny <email address hidden>
Change-Id: I4761d7da15036b
Closes-Bug: #1508568
(cherry picked from commit 3a99499ba0adafd