With that change, once we set the allocation ratios in the inventory data in the provider tree, that's what gets passed to _normalize_inventory_from_cn_obj, and _normalize_inventory_from_cn_obj won't set the allocation ratios from the compute node object if they are already in the inventory dict pass to _normalize_inventory_from_cn_obj - which once set, never gets unset...and that's the bug.
OK I think this is the regression:
https:/ /review. openstack. org/#/c/ 569132/
With that change, once we set the allocation ratios in the inventory data in the provider tree, that's what gets passed to _normalize_ inventory_ from_cn_ obj, and _normalize_ inventory_ from_cn_ obj won't set the allocation ratios from the compute node object if they are already in the inventory dict pass to _normalize_ inventory_ from_cn_ obj - which once set, never gets unset...and that's the bug.