Nova hypervisor-stats returns wrong data

Bug #1326147 reported by David Hill
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
Unassigned

Bug Description

When a node is disabled or down "nova hypervisor-stats" returns the total number of memory and vcpus even though that node is disabled or down.

It's not quite a bug, perhaps a wishlist entry but I would have expect the nova-hypervisor-stats to return the "usable" resources instead of the down/disabled/removed/present/active/etc resources.

Tags: compute
tags: added: nova nova-manage
Thang Pham (thang-pham)
Changed in nova:
importance: Undecided → Wishlist
melanie witt (melwitt)
Changed in nova:
status: New → Confirmed
tags: added: compute
removed: nova nova-manage
Revision history for this message
Liyingjun (liyingjun) wrote :

The statistics is directly got from db: https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L671, and i didn't find models.ComputeNode has any fields to identify the hypervisor status as the bug report description, so the problem is how to identify the hypervisor status ?

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/130289

Changed in nova:
assignee: nobody → Qin Zhao (zhaoqin)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/130289
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Removing "In Progress" status and assignee as change is abandoned.

Changed in nova:
status: In Progress → Confirmed
assignee: Qin Zhao (zhaoqin) → nobody
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

This wishlist bug has been open a year without any activity. I'm going to move it to "Opinion / Wishlist", which is an easily-obtainable queue of older requests that have come on.

In case you want to work on that, consider writing a blueprints [1] and spec [2]. I'll recommend to read [3] if not yet done. The effort to implement the requested feature is then driven only by the blueprint (and spec).

References:
[1] https://blueprints.launchpad.net/nova/
[2] https://github.com/openstack/nova-specs
[3] https://wiki.openstack.org/wiki/Blueprints

Changed in nova:
status: Confirmed → Opinion
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.