Avoid redundant compute node update

Bug #1777491 reported by Giridhar Jayavelu on 2018-06-18
This bug report is a duplicate of:  Bug #1729621: Inconsistent value for vcpu_used. Edit Remove
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Giridhar Jayavelu

Bug Description

_update_available_resource() in nova/compute/resource_tracker.py invokes _init_compute_node() which internally calls _update() and once again _update() is invoked at the end of _update_available_resource().

This triggers update_provider_tree() or get_inventory() on the virt driver, scanning all resources twice within same method.

Changed in nova:
assignee: nobody → Giridhar Jayavelu (gjayavelu)

Fix proposed to branch: master
Review: https://review.openstack.org/576235

Changed in nova:
status: New → In Progress

Change abandoned by Eric Fried (<email address hidden>) on branch: master
Review: https://review.openstack.org/576235
Reason: This has been -W/-2 for a while. Please reopen if you feel there is still value here.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers