No module named MySQLdb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Undecided
|
gordon chung |
Bug Description
Installing ceilometer to virtualenv, all packages in requirements.txt have installed, but got the following error when type ceilometer-dbsync:
(.venv)[root@master ceilometer]# ceilometer-dbsync
2013-11-27 09:16:58.806 4020 DEBUG ceilometer.storage [-] looking for 'mysql' driver in 'ceilometer.
2013-11-27 09:16:59.418 4020 CRITICAL ceilometer [-] No module named MySQLdb
2013-11-27 09:16:59.418 4020 TRACE ceilometer Traceback (most recent call last):
2013-11-27 09:16:59.418 4020 TRACE ceilometer File "/root/
2013-11-27 09:16:59.418 4020 TRACE ceilometer sys.exit(dbsync())
2013-11-27 09:16:59.418 4020 TRACE ceilometer File "/root/
2013-11-27 09:16:59.418 4020 TRACE ceilometer get_connection(
2013-11-27 09:16:59.418 4020 TRACE ceilometer File "/root/
2013-11-27 09:16:59.418 4020 TRACE ceilometer session = sqlalchemy_
2013-11-27 09:16:59.418 4020 TRACE ceilometer File "/root/
2013-11-27 09:16:59.418 4020 TRACE ceilometer engine = get_engine(
2013-11-27 09:16:59.418 4020 TRACE ceilometer File "/root/
2013-11-27 09:16:59.418 4020 TRACE ceilometer sqlite_
2013-11-27 09:16:59.418 4020 TRACE ceilometer File "/root/
2013-11-27 09:16:59.418 4020 TRACE ceilometer engine = sqlalchemy.
2013-11-27 09:16:59.418 4020 TRACE ceilometer File "/root/
2013-11-27 09:16:59.418 4020 TRACE ceilometer return strategy.
2013-11-27 09:16:59.418 4020 TRACE ceilometer File "/root/
2013-11-27 09:16:59.418 4020 TRACE ceilometer dbapi = dialect_
2013-11-27 09:16:59.418 4020 TRACE ceilometer File "/root/
2013-11-27 09:16:59.418 4020 TRACE ceilometer return __import_
2013-11-27 09:16:59.418 4020 TRACE ceilometer ImportError: No module named MySQLdb
Is it missing MySQL-python package in requirements.txt ?
Changed in ceilometer: | |
milestone: | none → icehouse-1 |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | icehouse-1 → 2014.1 |
i tend to agree we should add MySQL-python to requirements.txt. it is the default backend for ceilometer in devstack. the question is should we have both pymongo and MySQL-python listed? we don't have kombu and qpid listed...