nova/nova/compute
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
..
monitors Fix invalid import order 2016-07-04 11:23:52 +05:30
__init__.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
api.py Remove pre-cellsv2 short circuit in instance get 2017-02-01 11:25:18 -08:00
build_results.py Compute Add build_instance hook in compute manager 2014-12-04 10:12:00 -05:00
cells_api.py Move instance creation to conductor 2017-01-26 12:02:54 -08:00
claims.py rt: use a single ResourceTracker object instance 2017-01-16 14:09:25 -05:00
flavors.py Merge "Replace flavors.get_all_flavors_sorted_list() with object call" 2016-10-18 12:13:09 +00:00
instance_actions.py Report instance-actions for live migration force complete API 2016-03-10 15:02:35 +00:00
manager.py Delete a compute node's resource provider when node is deleted 2017-02-03 14:16:58 +00:00
power_state.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00
resource_tracker.py Avoid redundant call to update_resource_stats from RT 2017-01-27 18:23:45 +00:00
rpcapi.py Integrate OSProfiler and Nova 2017-01-18 15:00:14 +07:00
stats.py Address nits in I83a5f06ad 2016-03-09 13:19:59 +00:00
task_states.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00
utils.py Merge "Notifications for flavor operations" 2017-01-11 16:45:50 +00:00
vm_states.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00