source field wrong for user-defined samples

Bug #1202689 reported by Frédéric FAURE
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
High
Mehdi Abaakouk

Bug Description

When POSTing user-defined data in Ceilometer : if we set the source field ("test" for example) in the sample, the returned sample from POST contains the inserted value with a prefix:

"source": "97f9a6aaa9d842fcab73797d3abb2f53:test"

but when requesting after on the sample, the prefix is missing:

"source": "test"

Either no prefix at all or it should be sent back AND stored.

Julien Danjou (jdanjou)
Changed in ceilometer:
status: New → Confirmed
importance: Undecided → High
Changed in ceilometer:
assignee: nobody → Frédéric FAURE (frederic-faure)
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/38463

Changed in ceilometer:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in ceilometer:
assignee: Frédéric FAURE (frederic-faure) → Mehdi Abaakouk (sileht)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/39031
Committed: http://github.com/openstack/ceilometer/commit/82c3574100fa7b0938831bcf920c9136f677c2e0
Submitter: Jenkins
Branch: master

commit 82c3574100fa7b0938831bcf920c9136f677c2e0
Author: Mehdi Abaakouk <email address hidden>
Date: Sat Jul 27 23:01:28 2013 +0200

    Api V2 post sample refactoring

    Refactoring of the post sample rest api to set the correct
    source in the publisher context.
    The content of the pipeline is now checked
    The admin role special case is now tested

    Fixes bug #1202689
    Fixes bug #1204593

    Change-Id: Id605ae676eddfb4a471e8a3d9f5581e0bf2b8ff0

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.