nova/nova/virt/powervm
Eric Fried 570ad36992 Commonize _update code path
There were a bunch of report client methods around updating inventory to
placement which were only being used in the non-update_provider_tree
code paths of the resource tracker's update routine. Those code paths
had already been retrofitted to produce a placement-shaped inventory
object.

update_from_provider_tree gives us another way to flush these inventory
changes.

This patch simply takes the inventory object produced by the
get_inventory() and update_compute_node() code paths and updates the
provider tree object in the same fashion as update_provider_tree does.
So now all three code paths can commonly invoke
update_from_provider_tree.

And we can get rid of a ton of redundant code in the report client.

This includes the former incarnation of set_inventory_for_provider; so
we rename the artist formerly known as _set_inventory_for_provider to
match its brethren, set_traits_for_provider and
set_aggregates_for_provider.

Change-Id: I1a305847f0310c8d4babd5a625e4cc7bffe5b086
2019-01-16 18:34:39 +00:00
..
disk fix PowerVM get_bootdisk_path docstring 2018-06-20 16:49:58 -04:00
tasks Merge "PowerVM snapshot cleanup" 2018-05-31 20:46:51 +00:00
volume PowerVM Driver: vSCSI Fibre Channel volume adapter 2018-05-22 11:39:32 -05:00
__init__.py PowerVM Driver: spawn/delete #1: no-ops 2017-04-10 14:59:40 -05:00
driver.py Commonize _update code path 2019-01-16 18:34:39 +00:00
host.py Remove unused LOG variables 2018-02-27 11:19:48 +00:00
image.py PowerVM snapshot cleanup 2018-05-17 11:55:03 -05:00
media.py Add missing ws seperator between words 2018-11-26 23:42:18 +00:00
mgmt.py PowerVM Driver: Snapshot 2018-04-25 14:35:12 -05:00
vif.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
vm.py PowerVM: Add proc_units_factor conf option 2018-04-10 11:24:20 -05:00