nova/nova
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
..
api Fix GET /servers/detail host_status performance regression 2019-07-03 21:21:48 -04:00
cmd pull out put_allocation call from _heal_* 2019-06-27 10:37:25 +02:00
common
compute Fix GET /servers/detail host_status performance regression 2019-07-03 21:21:48 -04:00
conductor [FUP] Follow-up patch for SR-IOV live migration 2019-07-02 13:52:01 -05:00
conf hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
console Stop handling cells v1 for console authentication 2019-04-16 18:26:17 +01:00
consoleauth Stop handling cells v1 for console authentication 2019-04-16 18:26:17 +01:00
db Merge "Replace deprecated with_lockmode with with_for_update" 2019-06-26 16:37:01 +00:00
hacking hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
image hacking: Resolve W503 (line break occurred before a binary operator) 2019-06-24 14:24:06 -05:00
ipv6
keymgr
locale Imported Translations from Zanata 2019-03-22 06:26:27 +00:00
network hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
notifications hacking: Resolve W503 (line break occurred before a binary operator) 2019-06-24 14:24:06 -05:00
objects [FUP] Follow-up patch for SR-IOV live migration 2019-07-02 13:52:01 -05:00
pci hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
policies Remove cells code 2019-05-20 10:29:16 +01:00
privsep Add test coverage for nova.privsep.qemu. 2019-04-04 20:44:01 +00:00
scheduler Merge "Un-safe_connect and publicize get_providers_in_tree" 2019-07-02 17:28:17 +00:00
servicegroup [Trivial fix]Remove unnecessary slash 2019-05-06 16:23:59 +08:00
tests Fix GET /servers/detail host_status performance regression 2019-07-03 21:21:48 -04:00
virt Merge "libvirt: flatten rbd images when unshelving an instance" 2019-06-27 18:43:04 +00:00
vnc Deprecate the nova-xvpvncproxy service 2018-10-15 10:03:13 +01:00
volume Keep attach_mode as top-level field in _translate_attachment_ref 2019-05-22 09:09:37 +00:00
__init__.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00
availability_zones.py Always pass HostAPI to get_availability_zones 2019-04-26 15:30:48 -04:00
baserpc.py
block_device.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
cache_utils.py
config.py Delete the placement code 2019-04-28 20:06:15 +00:00
context.py Make RequestContext(instance_lock_checked) fail 2019-06-13 15:36:03 +00:00
crypto.py
debugger.py
exception.py Remove 'MultiattachSupportNotYetAvailable' exception 2019-06-27 20:50:45 -04:00
exception_wrapper.py
filters.py filters: Stop handling cells v1 2019-06-12 16:09:46 +01:00
hooks.py
i18n.py
loadables.py
manager.py
monkey_patch.py Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00
policy.py Merge "Fix target used in nova.policy.check_is_admin" 2019-05-18 02:04:30 +00:00
profiler.py
quota.py Log quota legacy method warning only if counting from placement 2019-06-17 21:31:53 +00:00
rpc.py Remove unnecessary wrapper 2019-05-29 17:14:13 +01:00
safe_utils.py
service.py Remove 'nova-cells' service 2019-04-09 17:15:37 +01:00
service_auth.py
test.py Enhance service restart in functional env 2019-06-25 16:11:02 +00:00
utils.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
version.py
weights.py Per aggregate scheduling weight 2019-01-21 11:48:44 +08:00
wsgi.py