ceilometer resource-list and ceilometer meter-list raise exception because of wrong resource_id type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Invalid
|
Low
|
Ananya Chatterjee |
Bug Description
I got an exception when i execute ceilometer resource-list and ceilometer meter-list.
The follows are log of error:
2014-02-17 10:41:11.753 27899 ERROR wsme.api [-] Server-side error: "resource_id: Wrong type. Expected '
<type 'unicode'>', got '<type 'int'>'". Detail:
Traceback (most recent call last):
File "/usr/lib/
result = f(self, *args, **kwargs)
File "/usr/lib/
for r in pecan.request.
File "/usr/lib/
ks
return cls(links=links, **(m.as_dict()))
File "/usr/lib/
super(Resource, self)._
File "/usr/lib/
raise ValueError("%s: %s" % (self.name, e))
ValueError: resource_id: Wrong type. Expected '<type 'unicode'>', got '<type 'int'>'
Then, i found the data in mongodb like this:
{
"_id" : ObjectId(
"counter_name" : "ip.floating",
"user_id" : null,
"message_
"timestamp" : ISODate(
"resource_id" : 11,
"resource_
"pool" : "nova",
"address" : "192.168.7.11"
},
"source" : "openstack",
"counter_unit" : "ip",
"counter_volume" : 1,
"project_id" : null,
"message_id" : "d527eede-
"counter_type" : "gauge"
}
I`m sure this error occured because of the resource_id .
The version of ceilometer i used is havana.
Changed in ceilometer: | |
assignee: | nobody → shihanzhang (shihanzhang) |
Changed in ceilometer: | |
status: | New → Incomplete |
status: | Incomplete → Triaged |
tags: | added: havana-backport-potential |
Changed in ceilometer: | |
importance: | Undecided → Medium |
Changed in ceilometer: | |
assignee: | shihanzhang (shihanzhang) → nobody |
Changed in ceilometer: | |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
Changed in ceilometer: | |
assignee: | ZhiQiang Fan (aji-zqfan) → nobody |
tags: | removed: havana-backport-potential |
Changed in ceilometer: | |
assignee: | nobody → Ananya Chatterjee (ananya23d) |
summary: |
ceilometer resource-list and ceilometer meter-list raise exception - because of wrong resource_id tpye + because of wrong resource_id type |
Changed in ceilometer: | |
status: | Triaged → Invalid |
what's the cli command you are using?