nova/nova/api/openstack/compute/views
Dan Smith bdd8b58351 Fix policy check performance in 2.47+
In 2.47 we introduced inlined flavors, which include extra_specs if so
authorized. The code was doing a policy check deep in the per-instance
handler that generated this blob. For queries with a lot of instances,
this policy check is a lot of overhead, especially as it introduces a
check of the policy file on disk, in case it has changed.

This patch makes us calculate the permission flag once per list operation
and pass it down to the lower layers to honor.

Closes-Bug: #1719966
Change-Id: I036623ae7409c2e6c6a754b4c8d5c9120f777774
(cherry picked from commit b1591d1080)
2017-09-27 17:14:48 -04:00
..
__init__.py Implements blueprint separate-nova-volumeapi 2012-01-13 09:06:55 -08:00
addresses.py Merge v21 view builder for ips API 2016-12-05 18:11:25 +09:00
flavors.py Merge v21 view builder for flavor API 2016-12-05 17:46:10 +09:00
hypervisors.py Microversion 2.33 adds pagination support for hypervisors 2016-07-01 08:47:50 +08:00
images.py remove os-disk-config part 4 2016-06-22 07:36:33 -04:00
keypairs.py Microversion 2.35 adds keypairs pagination support 2016-07-12 19:48:05 +03:00
limits.py [1/3]Replace six.iteritems() with .items() 2016-12-22 02:43:12 +00:00
server_diagnostics.py Standardization of VM diagnostics info API. 2017-06-05 07:45:51 +00:00
server_tags.py Added server tags controller 2016-04-06 16:37:22 +03:00
servers.py Fix policy check performance in 2.47+ 2017-09-27 17:14:48 -04:00
usages.py Simple tenant usage pagination 2016-12-14 03:33:50 +00:00
versions.py Replace os.path.join() for URLs 2015-12-08 17:46:34 +00:00