bootstrap_gnocchi error log: ImportError: No module named 'rados' nor 'cradox'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Medium
|
Eddie Yen | ||
Rocky |
Fix Released
|
Medium
|
Eddie Yen |
Bug Description
I met an issue when trying to deploy OpenStack.
Using kolla-ansible downloaded from git with stable/rocky branch.
And below is few informations from globals.yml:
kolla_base_distro: "ubuntu"
kolla_install_type: "binary"
openstack_release: rocky
enable_aodh: yes
enable_ceilometer: yes
enable_ceph: yes
enable_cinder: yes
enable_gnocchi: yes
enable_grafana: yes
enable_neutron_dvr: yes
enable_
enable_
enable_prometheus: yes
...
glance_
glance_
Other settings not shows is set as default.
During deployment, it stuck at "TASK: Running gnocchi bootstrap container" and need to stop manually.
And I check that container's log (docker logs bootstrap_
2019-06-11 10:59:17,707 [19] 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)
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'
This error not only occurred on image from Docker Hub, but also the image built by kolla-build.
But if I change install type to source, then everything is fine.
This issue has already happening about 3~4 weeks.
description: | updated |
description: | updated |
tags: |
added: in-stable-rocky removed: rocky |
Changed in kolla: | |
importance: | Undecided → Medium |
status: | New → Fix Released |
assignee: | nobody → Eddie Yen (aksn74) |
Found the issue that the gnocchi deb package on Ubuntu will install gnocchi-api & gnocchi-upgrade which using python3 as python execution application.
To fix this, need to build the image which installed require python packages in Python3 method. But it caused another issue from apache2 that port 8041 already in use after launch gnocchi-api and keep restarting container.
So there're two approaches to fix:
1. Build the image with require packages in python3, then check why default port has already in use.
2. Change gnocchi binary to use python2 or virtual env.