IndexError: index is out of bounds for axis with size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnocchi (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I am receiving the following trace from gnocchi
2019-12-20 16:35:06,334 [31] ERROR gnocchi.chef: Error processing new measures
Traceback (most recent call last):
File "/usr/lib/
for metric in metrics
File "/usr/lib/
before_
File "/usr/lib/
return_value = before_
File "/usr/lib/
tstamp = max(bound_
IndexError: index 0 is out of bounds for axis 0 with size 0
Unfortunately there is not enough information here to determine what measurement is causing the issue.
Could gnocchi/chef.py be modified to try/catch the single failed self.storage.
try:
with self.incoming.
# process only active metrics. deleted metrics with unprocessed
# measures will be skipped until cleaned by janitor.
if not measures:
-------- try:
})
-------- except:
except Exception:
if sync:
return 0
finally:
Status changed to 'Confirmed' because the bug affects multiple users.