Gnocchi-metricd fails to process new measures for metrics due to an overflowerror:
2016-02-23 16:56:20.336 27783 DEBUG gnocchi.storage._carbonara [-] Retrieve measuresfor 02a45193-04ff-423a-9b88-778a7cfdec0f/std/86400.0 in 0.01s _add_measures /usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py:210
2016-02-23 16:56:20.331 27785 DEBUG gnocchi.storage._carbonara [-] Store measures for 28618f18-9e84-4ef7-ac76-c1120d7a14d7/count/300.0 in 0.02s _add_measures /usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py:219
2016-02-23 16:56:20.344 27785 DEBUG gnocchi.storage._carbonara [-] Expire measures for 28618f18-9e84-4ef7-ac76-c1120d7a14d7/count/300.0 in 0.00s _add_measures /usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py:230
2016-02-23 16:56:20.345 27785 DEBUG gnocchi.storage._carbonara [-] Store measures for 28618f18-9e84-4ef7-ac76-c1120d7a14d7/count/1440.0 in 0.01s _add_measures /usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py:219
2016-02-23 16:56:20.347 27785 DEBUG gnocchi.storage._carbonara [-] Expire measures for 28618f18-9e84-4ef7-ac76-c1120d7a14d7/count/1440.0 in 0.00s _add_measures /usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py:230
2016-02-23 16:56:20.350 27783 DEBUG gnocchi.storage._carbonara [-] Retrieve measuresfor 02a45193-04ff-423a-9b88-778a7cfdec0f/std/604800.0 in 0.02s _add_measures /usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py:210
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara [-] Error processing new measures
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara Traceback (most recent call last):
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py", line 405, in process_measures
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara ignore_too_old_timestamps=True)
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/gnocchi/carbonara.py", line 223, in set_values
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara before_truncate_callback(self)
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py", line 398, in _map_add_measures
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara for aggregation in agg_methods
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py", line 502, in _map_in_thread
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara return list(executor.map(lambda args: method(*args), list_of_args))
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/concurrent/futures/_base.py", line 581, in result_iterator
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara yield future.result()
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/concurrent/futures/_base.py", line 398, in result
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara return self.__get_result()
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/concurrent/futures/thread.py", line 55, in run
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara result = self.fn(*self.args, **self.kwargs)
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py", line 502, in <lambda>
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara return list(executor.map(lambda args: method(*args), list_of_args))
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py", line 227, in _add_measures
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara oldest_point_to_keep)
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py", line 263, in _delete_metric_measures_before
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara timestamp, granularity)
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/gnocchi/carbonara.py", line 315, in get_split_key
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara cls.get_split_key_datetime(timestamp, sampling))
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/gnocchi/carbonara.py", line 303, in get_split_key_datetime
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara timestamp, freq=sampling * cls.POINTS_PER_SPLIT * 10e8)
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "/usr/local/lib/python2.7/dist-packages/gnocchi/carbonara.py", line 145, in _round_timestamp
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara (pandas.Timestamp(ts).value // freq) * freq)
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "pandas/tslib.pyx", line 299, in pandas.tslib.Timestamp.__new__ (pandas/tslib.c:8973)
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "pandas/tslib.pyx", line 1184, in pandas.tslib.convert_to_tsobject (pandas/tslib.c:22829)
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara File "pandas/tslib.pyx", line 3283, in pandas.tslib.cast_from_unit (pandas/tslib.c:56150)
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara OverflowError: Python int too large to convert to C long
2016-02-23 16:56:20.363 27785 ERROR gnocchi.storage._carbonara
2016-02-23 16:56:20.365 27783 DEBUG gnocchi.storage._carbonara [-] Store measures for 02a45193-04ff-423a-9b88-778a7cfdec0f/std/86400.0 in 0.01s _add_measures /usr/local/lib/python2.7/dist-packages/gnocchi/storage/_carbonara.py:219
The exact same host, using the same configuration and backend can process new measures if I deploy stable/1.3.
just some notes:
this happens on an storage backend that hasn't been upgraded. there is a random entry of
DatetimeIndex( ['2016- 02-23 19:36:00', '2016-02-23 20:00:00'], dtype=' datetime64[ ns]', freq=None)
that is passed into _round_timestamp as it's timestamp.