nova/nova/tests/unit/scheduler
EdLeafe 965fffc09d Delete a compute node's resource provider when node is deleted
Currently when a compute node is deleted, its record in the cell DB is
deleted, but its representation as a resource provider in the placement
service remains, along with any inventory and allocations. This could
cause the placement engine to return that provider record, even though
the compute node no longer exists. And since the periodic "healing" by
the resource tracker only updates compute node resources for records in
the compute_nodes table, these old records are never removed.

This patch adds a call to delete the resource provider when the compute
node is deleted. It also adds a method to the scheduler report client
to make these calls to the placement API.

Partial-Bug: #1661258
Closes-Bug: #1661014

Change-Id: I6098d186d05ff8b9a568e23f860295a7bc2e6447
2017-02-03 14:16:58 +00:00
..
client Delete a compute node's resource provider when node is deleted 2017-02-03 14:16:58 +00:00
filters Merge "PCI: Check pci_requests object is empty before passing to support_requests" 2017-01-26 09:21:18 +00:00
weights conf: Group scheduler options 2016-10-07 14:36:21 +01:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py Scheduler calling the Placement API 2017-01-27 16:36:34 -08:00
ironic_fakes.py Update HostManager and DiskFilter to use ComputeNode disk ratio 2016-02-22 10:54:22 +01:00
test_caching_scheduler.py Scheduler calling the Placement API 2017-01-27 16:36:34 -08:00
test_chance_scheduler.py Stop using mox (scheduler) 2016-02-01 17:23:47 -05:00
test_client.py rt: isolate report and query sched client tests 2016-08-21 20:43:17 -04:00
test_filter_scheduler.py Scheduler calling the Placement API 2017-01-27 16:36:34 -08:00
test_filters.py Fix invalid uuid warnings 2016-05-10 09:04:37 +00:00
test_host_filters.py Modify left filters for RequestSpec 2015-12-11 12:27:20 +01:00
test_host_manager.py Fix TypeError in _update_from_compute_node race 2017-01-06 17:15:49 +00:00
test_ironic_host_manager.py Fix TypeError in _update_from_compute_node race 2017-01-06 17:15:49 +00:00
test_rpcapi.py Modify Scheduler RPC API to use RequestSpec obj 2016-01-06 00:02:22 +01:00
test_scheduler.py Allow scheduler to run cell host discovery periodically 2017-02-01 12:22:23 -08:00
test_scheduler_utils.py Merge "conf: Group scheduler options" 2016-10-18 13:29:33 +00:00