Hbase dict metadata query failed

Bug #1206022 reported by Feilong Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Undecided
Feilong Wang

Bug Description

When I was working on defect: https://bugs.launchpad.net/ceilometer/+bug/1203699. The test case for Hbase will run into below issue. So I think there is a bug for the dict metadata query of Hbase.

FAIL: tests.api.v2.test_list_meters_scenarios.TestListMeters.test_list_meters_with_dict_metadata(hbase)
tags: worker-0
----------------------------------------------------------------------
pythonlogging:'': {{{
Server-side error: "u'f:r_properties.extra_prop'". Detail:
Traceback (most recent call last):

  File "/home/flwang/MyWorkSpace/workspace_community/ceilometer/.tox/py27/local/lib/python2.7/site-packages/wsmeext/pecan.py", line 70, in callfunction
    result = f(self, *args, **kwargs)

  File "/home/flwang/MyWorkSpace/workspace_community/ceilometer/ceilometer/api/controllers/v2.py", line 476, in get_all
    for e in pecan.request.storage_conn.get_samples(f, limit=limit)

  File "/home/flwang/MyWorkSpace/workspace_community/ceilometer/ceilometer/storage/impl_hbase.py", line 444, in get_samples
    if resource['f:r_' + k.split('.', 1)[1]] != v:

KeyError: u'f:r_properties.extra_prop'
}}}

Feilong Wang (flwang)
Changed in ceilometer:
assignee: nobody → Fei Long Wang (flwang)
Feilong Wang (flwang)
Changed in ceilometer:
status: New → In Progress
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/39624

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/39624
Committed: http://github.com/openstack/ceilometer/commit/bf9857e30ecae91f6d279239eaab0a0ff4b190dc
Submitter: Jenkins
Branch: master

commit bf9857e30ecae91f6d279239eaab0a0ff4b190dc
Author: Fei Long Wang <email address hidden>
Date: Wed Jul 31 23:13:37 2013 +0800

    Fixes dict metadata query issue of HBase

    Now HBase doesn't support query the metadata with the dictionary
    type. For example, the metadata of Glance image always has the
    metadata "properties" which is dictionary and has some attributes,
    size, kernel id, etc. So this fix will enable the HBase driver of
    CM to support query like "metadata.properties.tag=test".

    Fixes bug 1206022

    Change-Id: I7fa73cea94a948d47e27492dfb7e3a0e005ccb48

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