nova/nova
Matt Riedemann 3f0605c289 Sync COMPUTE_STATUS_DISABLED from API
This adds the os-services API change which will
call the compute service when the service's disabled
value changes to sync the COMPUTE_STATUS_DISABLED trait
on the compute node resource providers managed by the
updated compute service.

If the compute service is down or not yet upgraded to
the service version from change
Ia95de2f23f12b002b2189c9294ec190569a628ab then the
API will not call the service. In this case the change
from I3005b46221ac3c0e559e1072131a7e4846c9867c will
sync the trait when the compute service is restarted.

Since the compute service could be running the ironic
driver and managing hundreds or over 1000 compute nodes,
the set_host_enabled RPC call now uses the long_rpc_timeout
configuration option.

A functional test is added which covers the 2.53+
PUT /os-services/{service_id} API and pre-2.53 os-services
APIs for enabling/disabling and forcing down a service.
The functional test also covers the sync-on-restart behavior
from change I3005b46221ac3c0e559e1072131a7e4846c9867c.
The scheduler pre-filter added in change
I317cabbe49a337848325f96df79d478fd65811d9 is also tested
as part of the functional test.

Closes-Bug: #1805984

Implements blueprint pre-filter-disabled-computes

Change-Id: If32bca070185937ef83f689b7163d965a89ec10a
2019-07-02 18:57:38 -04:00
..
api Refactor HostAPI.service_update 2019-07-02 16:37:38 -04:00
cmd pull out put_allocation call from _heal_* 2019-06-27 10:37:25 +02:00
common
compute Sync COMPUTE_STATUS_DISABLED from API 2019-07-02 18:57:38 -04:00
conductor Stop passing 'kwargs' to 'rebuild_instance' 2019-06-12 16:09:46 +01:00
conf Sync COMPUTE_STATUS_DISABLED from API 2019-07-02 18:57:38 -04: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 Update COMPUTE_STATUS_DISABLED from set_host_enabled compute call 2019-07-02 15:05:08 -04: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 Add placement request pre-filter compute_status_filter 2019-07-02 16:01:02 -04:00
servicegroup [Trivial fix]Remove unnecessary slash 2019-05-06 16:23:59 +08:00
tests Sync COMPUTE_STATUS_DISABLED from API 2019-07-02 18:57:38 -04:00
virt libvirt: manage COMPUTE_STATUS_DISABLED for hypervisor connection 2019-07-02 12:33:03 -04: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 Merge "Remove 'InstanceUnknownCell' exception" 2019-06-15 09:29:35 +00: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