ceilometer image collector is not JSON serializable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloudkitty |
Fix Released
|
Undecided
|
Guillaume Espanel |
Bug Description
The image collector in cloudkitty/
fails with an JSON serialization error. The image resource is
not transformed in cloudkitty/
2016-08-05 17:28:12.738 32649 CRITICAL cloudkitty [-] TypeError: <Resource {u'user_id': None, u'links': [{u'href': u'http://
a865-4a44-
6d64e2', u'rel': u'image.size'}, {u'href': u'http://
mage'}, {u'href': u'http://
ef': u'http://
id': u'1f8440ce-
-08-05T16:
sum': u'4b78f51628454
properties.
ram': u'0', u'size': u'320274432'}}> is not JSON serializable
2016-08-05 17:28:12.738 32649 ERROR cloudkitty Traceback (most recent call last):
2016-08-05 17:28:12.738 32649 ERROR cloudkitty File "/usr/local/
2016-08-05 17:28:12.738 32649 ERROR cloudkitty sys.exit(main())
2016-08-05 17:28:12.738 32649 ERROR cloudkitty File "/opt/stack/
2016-08-05 17:28:12.738 32649 ERROR cloudkitty processor.process()
2016-08-05 17:28:12.738 32649 ERROR cloudkitty File "/opt/stack/
2016-08-05 17:28:12.738 32649 ERROR cloudkitty worker.run()
2016-08-05 17:28:12.738 32649 ERROR cloudkitty File "/opt/stack/
2016-08-05 17:28:12.738 32649 ERROR cloudkitty self._storage.
2016-08-05 17:28:12.738 32649 ERROR cloudkitty File "/opt/stack/
2016-08-05 17:28:12.738 32649 ERROR cloudkitty self._dispatch(
2016-08-05 17:28:12.738 32649 ERROR cloudkitty File "/opt/stack/
2016-08-05 17:28:12.738 32649 ERROR cloudkitty self._append_
2016-08-05 17:28:12.738 32649 ERROR cloudkitty File "/opt/stack/
2016-08-05 17:28:12.738 32649 ERROR cloudkitty desc = json.dumps(
2016-08-05 17:28:12.738 32649 ERROR cloudkitty File "/usr/lib/
2016-08-05 17:28:12.738 32649 ERROR cloudkitty return _default_
2016-08-05 17:28:12.738 32649 ERROR cloudkitty File "/usr/lib/
2016-08-05 17:28:12.738 32649 ERROR cloudkitty chunks = self.iterencode(o, _one_shot=True)
2016-08-05 17:28:12.738 32649 ERROR cloudkitty File "/usr/lib/
2016-08-05 17:28:12.738 32649 ERROR cloudkitty return _iterencode(o, 0)
2016-08-05 17:28:12.738 32649 ERROR cloudkitty File "/usr/lib/
2016-08-05 17:28:12.738 32649 ERROR cloudkitty raise TypeError(repr(o) + " is not JSON serializable")
Changed in cloudkitty: | |
assignee: | nobody → David Höppner (0xffea) |
Changed in cloudkitty: | |
assignee: | David Höppner (0xffea) → Guillaume Espanel (guillaume-espanel) |
I got this problem too, hope u guys could fix it ASAP :)