Gnocchi-upgrade fails when moving to latest master
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnocchi |
Fix Released
|
High
|
gordon chung |
Bug Description
With a deploy made in mid-January (from branch master), gnocchi-upgrade fails when deploying gnocchi 2.0.1.dev1 (current master as of feb 22).
The stack is:
CRITI [gnocchi] TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
Traceback (most recent call last):
File "/usr/local/
sys.
File "/usr/local/
s.upgrade(
File "/usr/local/
((metric,) for metric in index.list_
File "/usr/local/
return list(executor.
File "/usr/local/
yield future.result()
File "/usr/local/
return self.__get_result()
File "/usr/local/
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/
return list(executor.
File "/usr/local/
archive = carbonara.
File "/usr/local/
return cls.from_
File "/usr/local/
return cls([Aggregated
File "/usr/local/
prev_timestamp = pandas.
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
I've fixed it by editing /usr/local/
def from_dict(cls, d):
"""Build a time series from a dict.
The dict format must be datetime as key and values as values.
:param d: The dict.
:returns: A TimeSerie object
"""
sampling = d.get('sampling')
-> prev_timestamp = pandas.
timestamps = []
-> if d.get('timestamp'):
for delta in d.get('
return cls.from_data(
After editing those two lines, gnocchi-upgrade finished with no errors.
Changed in gnocchi: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in gnocchi: | |
status: | Triaged → Fix Committed |
assignee: | nobody → gordon chung (chungg) |
Changed in gnocchi: | |
milestone: | none → 2.1.0 |
status: | Fix Committed → Fix Released |
upgrade path is broken from lz4 compression