SackDetectionError: int() argument must be a string or a number, not 'NoneType'

Bug #1755067 reported by xiaoxu790
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gnocchi (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

openstack: pike
gnocchiclient (7.0.1)

# tailf gnocchi/gnocchi-metricd.log

SackDetectionError: int() argument must be a string or a number, not 'NoneType'
2018-03-11 03:42:39,323 [1531702] ERROR gnocchi.storage.incoming._carbonara: Unable to detect the number of storage sacks. Ensure gnocchi-upgrade has been executed: int() argument must be a string or a number, not 'NoneType'
2018-03-11 03:42:39,323 [1531702] ERROR cotyledon._utils: Unhandled exception
Traceback (most recent call last):
  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cotyledon/_utils.py", line 95, in exit_on_exception
    yield
  File "/var/lib/kolla/venv/lib/python2.7/site-packages/cotyledon/_service.py", line 139, in _run
    self.run()
  File "/var/lib/kolla/venv/lib/python2.7/site-packages/gnocchi/cli.py", line 131, in run
    self._configure()
  File "/var/lib/kolla/venv/lib/python2.7/site-packages/tenacity/__init__.py", line 171, in wrapped_f
    return self.call(f, *args, **kw)
  File "/var/lib/kolla/venv/lib/python2.7/site-packages/tenacity/__init__.py", line 248, in call
    start_time=start_time)
  File "/var/lib/kolla/venv/lib/python2.7/site-packages/tenacity/__init__.py", line 203, in iter
    return fut.result()
  File "/var/lib/kolla/venv/lib/python2.7/site-packages/concurrent/futures/_base.py", line 422, in result
    return self.__get_result()
  File "/var/lib/kolla/venv/lib/python2.7/site-packages/tenacity/__init__.py", line 251, in call
    result = fn(*args, **kwargs)
  File "/var/lib/kolla/venv/lib/python2.7/site-packages/gnocchi/cli.py", line 206, in _configure
    six.moves.range(self.store.incoming.NUM_SACKS))
  File "/var/lib/kolla/venv/lib/python2.7/site-packages/gnocchi/storage/incoming/_carbonara.py", line 49, in NUM_SACKS
    raise incoming.SackDetectionError(e)
SackDetectionError: int() argument must be a string or a number, not 'NoneType'
2018-03-11 03:42:39,857 [1531705] ERROR gnocchi.storage.incoming._carbonara: Unable to detect the number of storage sacks. Ensure gnocchi-upgrade has been executed: int() argument must be a string or a number, not 'NoneType'
2018-03-11 03:42:39,858 [1531705] ERROR cotyledon._utils: Unhandled exception

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnocchi (Ubuntu):
status: New → Confirmed
Revision history for this message
Derek Yang (hswayne77) wrote :

I have the same issue, anyone else could give me some suggestions to solve this issue :(?

Revision history for this message
Derek Yang (hswayne77) wrote :

In my case, it can be solved when I try to upgrade my gnocchi server version from tag 4.2.0 to 4.2.5

Revision history for this message
Derek Yang (hswayne77) wrote :
Download full text (3.7 KiB)

I can also run this command "sudo docker exec -it gnocchi_metricd gnocchi-upgrade" to do database migration to solve this issue. Here is my execution log.

2018-07-18 20:34:12,882 [23054] ERROR cotyledon._utils: Unhandled exception
Traceback (most recent call last):
  File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/cotyledon/_utils.py", line 95, in exit_on_exception
    yield
  File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/cotyledon/_service.py", line 139, in _run
    self.run()
  File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/gnocchi/cli/metricd.py", line 76, in run
    self._configure()
  File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/tenacity/__init__.py", line 214, in wrapped_f
    return self.call(f, *args, **kw)
  File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/tenacity/__init__.py", line 295, in call
    start_time=start_time)
  File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/tenacity/__init__.py", line 252, in iter
    return fut.result()
  File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/concurrent/futures/_base.py", line 455, in result
    return self.__get_result()
  File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/tenacity/__init__.py", line 298, in call
    result = fn(*args, **kwargs)
  File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/gnocchi/cli/metricd.py", line 161, in _configure
    six.moves.range(self.incoming.NUM_SACKS))
  File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/gnocchi/incoming/__init__.py", line 56, in NUM_SACKS
    raise SackDetectionError(e)
SackDetectionError: int() argument must be a string or a number, not 'NoneType'
2018-07-18 20:34:12,996 [23074] INFO gnocchi.common.ceph: Ceph storage backend use 'cradox' python library
2018-07-18 20:34:13,823 [23074] INFO gnocchi.cli.metricd: Joined coordination group: gnocchi-processing
2018-07-18 20:34:18,019 [23107] INFO gnocchi.common.ceph: Ceph storage backend use 'cradox' python library
2018-07-18 20:34:18,020 [23106] INFO gnocchi.common.ceph: Ceph storage backend use 'cradox' python library
2018-07-18 20:34:18,025 [23108] INFO gnocchi.common.ceph: Ceph storage backend use 'cradox' python library
2018-07-18 20:34:18,031 [23110] INFO gnocchi.common.ceph: Ceph storage backend use 'cradox' python library
2018-07-18 20:34:18,845 [23074] DEBUG gnocchi.cli.metricd: 0 metrics processed from 128 sacks
2018-07-18 20:34:18,846 [23074] DEBUG gnocchi.cli.metricd: Full scan of sacks has been done
2018-07-18 20:34:19,320 [23108] INFO gnocchi.cli.metricd: Joined coordination group: gnocchi-processing
2018-07-18 20:34:19,323 [23110] INFO gnocchi.cli.metricd: Joined coordination group: gnocchi-processing
2018-07-18 20:34:19,355 [23106] INFO gnocchi.cli.metricd: Joined coordination group: gnocchi-processing
2018-07-18 20:34:19,361 [23107] INFO gnocchi.cli.metricd: Joined coordination group: gnocchi-processing
2018-07-18 20:34:19,731 [23108] DEBUG gnocchi.cli.metricd: 0 metrics processed from 39 sacks
2018-07-18 20:34:19,732 [23108] DEBUG gnocchi.cli.metricd: Full scan of sacks has been done
2018-07-18 20:34:20...

Read more...

Revision history for this message
yosef (yosex) wrote :

I am getting this on `gnocchi 7.0.6`

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.