Upgrade to queens results in ImportError: No module named 'rados' nor 'cradox'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnocchi Charm |
Fix Released
|
High
|
James Page | ||
charms.openstack |
Fix Released
|
High
|
James Page |
Bug Description
After changing openstack-origin from cloud:xenial-pike to cloud:xenial-
2018-06-28 06:19:21,056 [1306829] ERROR gnocchi.utils: Unable to initialize storage driver
Traceback (most recent call last):
File "/usr/lib/
result = fn(*args, **kwargs)
File "/usr/lib/
conf.storage, coord)
File "/usr/lib/
self.rados, self.ioctx = ceph.create_
File "/usr/lib/
raise ImportError("No module named 'rados' nor 'cradox'")
ImportError: No module named 'rados' nor 'cradox'
Package python-rados is installed, but not python3-rados. The gnocchi-metricd process is using Python 3.
If I install python3-rados, the traceback changes:
2018-06-28 06:30:37,027 [1352834] ERROR cotyledon._utils: Unhandled exception
Traceback (most recent call last):
File "/usr/lib/
self._num_sacks = int(self.
File "/usr/lib/
self.
File "rados.pyx", line 498, in rados.requires.
File "rados.pyx", line 2695, in rados.Ioctx.read (/build/
rados.ObjectNot
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
yield
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
return self.call(f, *args, **kw)
File "/usr/lib/
start_
File "/usr/lib/
return fut.result()
File "/usr/lib/
return self.__get_result()
File "/usr/lib/
raise self._exception
File "/usr/lib/
result = fn(*args, **kwargs)
File "/usr/lib/
six.
File "/usr/lib/
raise SackDetectionEr
gnocchi.
tags: | added: upgrade |
Changed in charm-gnocchi: | |
status: | New → Confirmed |
Changed in charms.openstack: | |
status: | New → Confirmed |
Changed in charm-gnocchi: | |
importance: | Undecided → High |
Changed in charms.openstack: | |
importance: | Undecided → High |
status: | Confirmed → Triaged |
Changed in charm-gnocchi: | |
status: | Confirmed → Triaged |
Changed in charm-gnocchi: | |
assignee: | nobody → James Page (james-page) |
status: | Triaged → In Progress |
Changed in charm-gnocchi: | |
milestone: | none → 18.08 |
Changed in charm-gnocchi: | |
status: | Fix Committed → Fix Released |
Tried deploying a fresh unit rather than troubleshooting the upgraded ones. Unfortunately, still seeing the second traceback in the logs on a fresh (i.e. not upgraded, started at Queens) unit.