Collector can not persistence compute node CPU metrics when set ‘compute_monitors = ComputeDriverCPUMonitor’ in nova

Bug #1295004 reported by li jian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Undecided
li jian

Bug Description

Reproduce step:
1.Set ‘compute_monitors = ComputeDriverCPUMonitor’ in nova.conf
2.Start the ceilometer-collector,ceilometer-agent-notification and nova-compute
Then you can see the following error trace in ceilometer-collector console:
http://paste.openstack.org/show/73874/

The root cause of that issue is the counter_type is the 'tuple', In actually the type of the counter_type should be String, so it can not persistence to DB success, please refer to the SQL, the counter_type value is [u'cumulative'] that is a 'tuple'

INSERT INTO meter (counter_name, user_id, project_id, resource_id, resource_metadata, counter_type, counter_unit, counter_volume, timestamp, message_signature, message_id) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)('compute.node.cpu.idle.time', None, None, 'localhost.localdomain_localhost.localdomain', '{"name": "cpu.idle.time", "timestamp": "2014-03-20T04:09:59.462867", "value": 25406680000000, "source": "libvirt.LibvirtDriver", "host": "compute.localhost.localdomain", "event_type": "compute.metrics.update"}', [u'cumulative'], 'ns', 25406680000000, Decimal('1395288599.462867'), '425bec815573bf6b66ce0103aa5a61c879a2902397b0733428103d5be5a811c4', '80d34bfe-afe5-11e3-9564-0c82685348ee')

li jian (blacker1981)
Changed in ceilometer:
assignee: nobody → li jian (blacker1981)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

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

Changed in ceilometer:
status: New → In Progress
gordon chung (chungg)
Changed in ceilometer:
milestone: none → icehouse-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/81729
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=bd522b17947204fa572a7011b2b5da5b2d4a90d4
Submitter: Jenkins
Branch: master

commit bd522b17947204fa572a7011b2b5da5b2d4a90d4
Author: lijian <email address hidden>
Date: Thu Mar 20 15:51:56 2014 +0800

    Change the sample_type from tuple to string

    The Collector can not persistence compute node CPU metrics when set
    ‘compute_monitors = ComputeDriverCPUMonitor’ in nova.
    The root cause of that issue is the counter_type is the 'tuple',
    In actually the type of the counter_type should be String,
    so it can not persistence to DB success, please refer to the SQL,
    the counter_type value is [u'cumulative'] that is a 'tuple'.

    Change-Id: I8d1218f813d081e1031c331c59a17c227c9a8958
    Closes-Bug: #1295004

Changed in ceilometer:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: icehouse-rc1 → 2014.1
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.