nova/nova/scheduler
Jay Pipes 310e4dcbd8 placement: refactor translate from node to dict
This patch refactors the previous object method on the scheduler report
client _compute_node_inventory() to being a module-level function called
_compute_node_to_inventory_dict(). The spurious top-level 'inventories'
key is removed from the returned dict and the payload for PUT
/r-p/{uuid}/inventories is constructed explicitly now.

Refactors the unit tests for the report client that handle inventory to
remove unnecessary mocking and correct some improper stub values that
were being masked by the mocks.

Change-Id: I70e5b649e59598b1fe356fa401769e8a7ce60c72
2016-09-19 18:25:03 -04:00
..
client placement: refactor translate from node to dict 2016-09-19 18:25:03 -04:00
filters Merge "Allow irrelevant,self-defined specs in ComputeCapacityFilter" 2016-08-10 20:32:43 +00:00
weights Replace deprecated LOG.warn with LOG.warning 2016-07-20 14:39:15 +05:30
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
caching_scheduler.py Add a caching scheduler driver 2014-02-26 13:53:07 +00:00
chance.py Move config options from nova/compute/rpcapi.py file 2016-04-21 22:26:13 +00:00
driver.py Remove unused LOG 2016-06-27 16:40:13 +08:00
filter_scheduler.py Merge "Avoid needless list copy in 'scheduler_host_subset_size' case" 2016-01-08 14:32:58 +00:00
host_manager.py Merge "ironic_host_manager: fix population of instances info on start" 2016-09-08 12:09:46 +00:00
ironic_host_manager.py ironic_host_manager: fix population of instances info on start 2016-08-31 18:46:31 +03:00
manager.py Use stevedore for scheduler driver 2016-01-26 03:55:45 +00:00
rpcapi.py Set RPC version aliases for Mitaka 2016-03-16 09:54:49 -07:00
scheduler_options.py Config options: centralize section "scheduler" 2015-12-01 19:31:13 +00:00
utils.py config options: remove the scheduler import_opt()s 2016-03-30 15:41:02 +08:00