Some sample metadata are missing when we request samples via the v2 API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
High
|
Feilong Wang |
Bug Description
Some sample metadata are missing when we request samples via the v2 API
For example when you have some properties set on a glance image and you get all samples with this properties, this properties don't appear in the returned json.
# curl -X GET -H "X-Auth-Token: $t" -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-
[
{
"name": "cirros-
"size": "25165824",
},
"source": "openstack",
"user_id": null
}
]
I think is related to the type declaration in the Sample v2 controller that declare resource_metadata as a dictionary of text or the value of the dictionary can be a other dictionary.
ie:
in ceilometer/
'resource_metadata = {wtypes.text: wtypes.text}'
Cheers
Changed in ceilometer: | |
assignee: | nobody → Fei Long Wang (flwang) |
Changed in ceilometer: | |
status: | In Progress → Fix Committed |
Changed in ceilometer: | |
importance: | Undecided → Medium |
importance: | Medium → High |
Changed in ceilometer: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | havana-3 → 2013.2 |
I'm not really sure this is a dup of https:/ /bugs.launchpad .net/ceilometer /+bug/1200577, but I believe they're related.