Avoid redundant compute node update

Bug #1777491 reported by Giridhar Jayavelu
This bug report is a duplicate of:  Bug #1729621: Inconsistent value for vcpu_used. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
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().
https://github.com/openstack/nova/blob/master/nova/compute/resource_tracker.py#L762

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)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.