resource tracker report negative value for memory and vcpu will be confusing

Bug #1316916 reported by jichenjc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
jichenjc

Bug Description

2014-05-05 10:51:33.732 4992 AUDIT nova.compute.resource_tracker [-] Free
ram (MB): -1559
2014-05-05 10:51:33.732 4992 AUDIT nova.compute.resource_tracker [-] Free
disk (GB): 29
2014-05-05 10:51:33.732 4992 AUDIT nova.compute.resource_tracker [-] Free
VCPUS: -3

was showed in my compute node logs which make me confusing
we need to avoid this kind of audit logs and give more accurate info

discussions here:
http://lists.openstack.org/pipermail/openstack-dev/2014-May/034312.html

Tags: compute
jichenjc (jichenjc)
Changed in nova:
assignee: nobody → jichenjc (jichenjc)
Tracy Jones (tjones-i)
tags: added: compute
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/93261

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/93261
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=18a2917504cf9be4370243fabc655d0de1656707
Submitter: Jenkins
Branch: master

commit 18a2917504cf9be4370243fabc655d0de1656707
Author: jichenjc <email address hidden>
Date: Fri May 2 02:07:32 2014 +0800

    Adjust audit logs to avoid negative mem/cpu info

    we might have following audit info in the log:
    AUDIT nova.compute.resource_tracker [-] Free ram (MB): -1559
    AUDIT nova.compute.resource_tracker [-] Free disk (GB): 29
    AUDIT nova.compute.resource_tracker [-] Free VCPUS: -3

    which is really confusing to operater and useless
    This patch adjust the log to print phy info and virtual cpus.

    DocImpact

    Change-Id: I2bc63e1aae0787bf976660eed8fd8899bfffe593
    Closes-Bug: #1316916

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-3 → 2014.2
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.