nova/nova/tests/functional
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 Include all network devices in nova diagnostics 2019-04-15 11:10:08 -04:00
api_sample_tests Sync COMPUTE_STATUS_DISABLED from API 2019-07-02 18:57:38 -04:00
compute Remove global state from the FakeDriver 2019-06-21 10:37:20 +02:00
db Fix invalid assertIsNone states 2019-06-28 17:37:15 +08:00
libvirt Merge "Enhance service restart in functional env" 2019-06-27 17:50:19 +00:00
notification_sample_tests Merge "Remove global state from the FakeDriver" 2019-06-27 17:50:11 +00:00
regressions Merge "Enhance service restart in functional env" 2019-06-27 17:50:19 +00:00
wsgi Sync COMPUTE_STATUS_DISABLED from API 2019-07-02 18:57:38 -04:00
__init__.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00
api_paste_fixture.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
api_samples_test_base.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
fixtures.py Convert driver supported capabilities to compute node provider traits 2019-02-28 23:28:19 +00:00
integrated_helpers.py Remove global state from the FakeDriver 2019-06-21 10:37:20 +02:00
test_aggregates.py Remove global state from the FakeDriver 2019-06-21 10:37:20 +02:00
test_availability_zones.py Remove global state from the FakeDriver 2019-06-21 10:37:20 +02:00
test_boot_from_volume.py Properly track local root disk usage during moves 2018-10-08 17:33:49 -04:00
test_compute_mgr.py Fup for the bandwidth series 2019-02-27 10:23:15 +01:00
test_conf_max_attach_disk_devices.py Add configuration of maximum disk devices to attach 2019-01-30 15:47:10 +00:00
test_images.py Share snapshot image membership with instance owner 2019-02-08 18:06:27 -05:00
test_instance_actions.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_json_filter.py Add functional test for the JsonFilter 2019-03-26 12:56:11 -04:00
test_legacy_v2_compatible_wrapper.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_list_servers_ip_filter.py tests: Stop starting consoleauth in functional tests 2019-06-17 15:18:31 +01:00
test_login.py update api_samples code to use better variables 2015-12-14 11:23:26 +08:00
test_metadata.py Handle unsetting '[DEFAULT] dhcp_domain' 2019-04-15 15:34:04 -04:00
test_middleware.py Removes unnecessary utf-8 encoding 2016-12-20 10:27:01 +07:00
test_multiattach.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_nova_manage.py Merge "pull out put_allocation call from _heal_*" 2019-06-27 21:36:37 +00:00
test_report_client.py Merge "Prepare _heal_allocations_for_instance for nested allocations" 2019-06-27 21:33:43 +00:00
test_server_group.py Merge "Remove global state from the FakeDriver" 2019-06-27 17:50:11 +00:00
test_servers.py Merge "Enhance service restart in functional env" 2019-06-27 17:50:19 +00:00
test_servers_provider_tree.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00