nova/nova/tests/functional/wsgi
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
..
__init__.py nova flavor manage functional test 2015-02-20 08:50:44 -05:00
test_flavor_manage.py Remove compatibility code for flavors 2017-09-05 10:36:10 -04:00
test_interfaces.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_secgroup.py Enable global hacking checks and removed local checks 2017-02-10 15:09:37 +01:00
test_servers.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
test_services.py Sync COMPUTE_STATUS_DISABLED from API 2019-07-02 18:57:38 -04:00