Comment 3 for bug 1619065

Revision history for this message
Tim Hinrichs (thinrichs) wrote :

There's also a weird return value, where we're capturing the stack trace (presumably by accident):

$ openstack congress datasource row update push events '[{"id": "0", "time": "2016", "type": "compute.host.down", "hostname": "bob", "status": "up", "monitor": "here", "monitor_event_id": "there"}]'

u'\'details\'\nTraceback (most recent call last):\n\n File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming\n res = self.dispatcher.dispatch(message)\n\n File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 150, in dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n\n File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 121, in _do_dispatch\n result = func(ctxt, **new_args)\n\n File "/opt/stack/congress/congress/datasources/datasource_driver.py", line 1257, in update_entire_data\n return self.service.update_entire_data(table_id, objs)\n\n File "/opt/stack/congress/congress/datasources/datasource_driver.py", line 1232, in update_entire_data\n tablename, PushedDataSourceDriver.convert_objs(objs, translator))\n\n File "/opt/stack/congress/congress/datasources/datasource_driver.py", line 1043, in convert_objs\n obj_list = translator[cls.OBJECTS_EXTRACT_FN](objects)\n\n File "/opt/stack/congress/congress/datasources/doctor_driver.py", line 80, in flatten_events\n details = event.pop(\'details\')\n\nKeyError: \'details\'\n' (HTTP 400) (Request-ID: req-d789ba64-6bc8-46f3-ae23-95b09d26360d)