Ceilometer API doesn't returns resources with '/'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Triaged
|
Undecided
|
ZhiQiang Fan |
Bug Description
Some resources might have '/' in the name. For e.g. swift related resources:
"5ab4227b1c4a43
CLI call 'ceilometer resource-show' fails with next message:
ceilometer resource-show 5ab4227b1c4a43a
Resource not found: 5ab4227b1c4a43a
When running with debug output next lines are present:
DEBUG (client) REQ: curl -g -i -X 'GET' 'http://
INFO (connectionpool) Starting new HTTP connection (1): 192.0.2.18
DEBUG (connectionpool) "GET /v2/resources/
Resources are properly stored in the MongoDB backend:
> db.resource.
{
"_id" : "5ab4227b1c4a43
"source" : "openstack",
"user_id" : null,
"metadata" : null,
"meter" : [
{
},
{
}
]
}
Also, meters that belong to this resource can be filtered:
ceilometer meter-list -q 'resource_
+------
| Name | Type | Unit | Resource ID | User ID | Project ID |
+------
| storage.
| storage.
+------
Packages:
openstack-
openstack-
python-
openstack-
openstack-
openstack-
openstack-
openstack-
python-
openstack-
Regards,
Yurii
Changed in ceilometer: | |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
status: | Incomplete → Confirmed |
can you try to replace the / with %2F?