[Openstack] nova-manage fails with "unable to open database file None None"

Daniel Ellison daniel at syrinx.net
Thu Apr 25 11:48:18 UTC 2013


Hi all,

I've come across a situation that has stumped me. I've searched the archives here but can find no solution. I /did/ find a bug filed in Launchpad (https://bugs.launchpad.net/nova/+bug/1169439) that may be what's happening, but there's no solution.

When I run the command "nova-manage --debug service list" I get this output, the last line being most pertinent:

2013-04-25 07:36:59.797 15203 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db __new__ /usr/lib/python2.7/dist-packages/nova/servicegroup/api.py:61
2013-04-25 07:36:59.869 DEBUG nova.openstack.common.lockutils [req-4383e6cf-d92c-4ab0-bbea-6db89825c073 None None] Got semaphore "dbapi_backend" for method "__get_backend"... inner /usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py:186
Command failed, please check log for more info
2013-04-25 07:37:00.092 CRITICAL nova [req-4383e6cf-d92c-4ab0-bbea-6db89825c073 None None] (OperationalError) unable to open database file None None

This happens with almost all nova-manage commands. Additionally, there is /no/ log output in /var/log/nova-manage.log. The log file is there, but has zero length.

The bug I referenced implies that nova-manage is trying to open a sqlite database despite the fact that a MySQL database has been specified in nova.conf. I have definitely defined MySQL as the database, and it works fine in all other cases. I've logged into MySQL with the credentials I've defined in nova.conf with no problem. I've removed the nova.sqlite file, stopped/started all of the nova-* services and still I get this error.

Is this familiar to anyone?

Thanks,
Daniel



More information about the Openstack mailing list