Follow

Known Issue: ANA-204 - Event extraction fails with Index out of Range error

Users running Zenoss Analytics 5.0.7 and 5.0.8 may experience a failure to extract events with a list index out of range exception if no ZenPack which declares an extractable event detail is installed.

The exception looks like this:

ERROR zen.etl.EventEtlTask: Failed to execute batch 5
Traceback (most recent call last):
 File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenETL-5.0.4-py2.7.egg/ZenPacks/zenoss/ZenETL/tasks/BaseEtlTask.py", line 318, in executeBatch
 self._extract, timeRange, batch_infos, batch
 File "/opt/zenoss/lib/python2.7/site-packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
 result = result.throwExceptionIntoGenerator(g)
 File "/opt/zenoss/lib/python2.7/site-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
 return g.throw(self.type, self.value, self.tb)
 File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenETL-5.0.4-py2.7.egg/ZenPacks/zenoss/ZenETL/tasks/EventEtlTask.py", line 57, in _extract
 count = yield defer.maybeDeferred(extractor.extract)
 File "/opt/zenoss/lib/python2.7/site-packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
 result = result.throwExceptionIntoGenerator(g)
 File "/opt/zenoss/lib/python2.7/site-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
 return g.throw(self.type, self.value, self.tb)
 File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenETL-5.0.4-py2.7.egg/ZenPacks/zenoss/ZenETL/extract/events.py", line 87, in extract
 extractCount += yield extractor.retrieveEventsAndWriteToCSV()
 File "/opt/zenoss/lib/python2.7/site-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
 result = g.send(result)
 File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenETL-5.0.4-py2.7.egg/ZenPacks/zenoss/ZenETL/extract/ZepCSVExtractor.py", line 293, in retrieveEventsAndWriteToCSV
 csv_writer.writerow(self._convertCsvRow(row))
 File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenETL-5.0.4-py2.7.egg/ZenPacks/zenoss/ZenETL/extract/ZepCSVExtractor.py", line 305, in _convertCsvRow
 ) = self._infoGetter.get_info(row[ELEMENT_UUID])
IndexError: list index out of range

A fix will be made available in an upcoming release.

Was this article helpful?
0 out of 0 found this helpful

Comments

Powered by Zendesk