nova/nova/api/openstack/compute/views
Matt Riedemann ab7d923ae7 Fix GET /servers/detail host_status performance regression
Change I82b11b8866ac82b05eae04351605d52fa8b91453 moved the
host_status extended server attribute processing from an
extension to the main servers view builder. This, however,
caused a regression in the detailed listing of servers because
it didn't incorporate the caching mechanism used previously
by the extension so now for each server with details when
microversion 2.16 or greater is used (and the request passes
the policy check), we get the host status per server even if
we have multiple servers on the same host.

This moves the host_status processing out of the show() method
when listing servers with details and processes them in aggregate
similar to security groups and attached volumes.

One catch is the show() method handles instances from down cells
for us so we have to handle that separately in the new host_status
processing, but it's trivial (just don't get host_status for
instances without a host field set).

This reverts commit 0cecd2ac32.

Change-Id: I8278d4ea993ed1600919e34c9759600c8c7dbb41
Closes-Bug: #1830260
2019-07-03 21:21: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 Remove the deprecated API extensions policies 2018-08-17 07:11:45 +00:00
hypervisors.py Microversion 2.33 adds pagination support for hypervisors 2016-07-01 08:47:50 +08:00
images.py Merge image_size extension response into image view builder 2018-10-18 01:59:34 +00:00
instance_actions.py Add pagination and changes-since for instance-actions 2017-12-14 07:42:17 +00:00
keypairs.py Microversion 2.35 adds keypairs pagination support 2016-07-12 19:48:05 +03:00
limits.py Merge used_limits extension response into limit view builder 2018-10-11 10:00:31 +00:00
migrations.py Add pagination and Changes-since filter support for os-migrations. 2018-01-10 14:02:53 -05: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 GET /servers/detail host_status performance regression 2019-07-03 21:21: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