DBNonExistenceDatabase: Unknown database "nova_cell0"

Bug #1670262 reported by Digambar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

When we run "nova list" or "openstack server list", we get this error.
I have installed fresh devstack and then I am getting this error.

openstack server list

- go to n-api screen

2017-03-06 11:30:56.894 TRACE nova.api.openstack.extensions packet.check_error()
2017-03-06 11:30:56.894 TRACE nova.api.openstack.extensions File "/usr/local/lib/python2.7/dist-packages/pymysql/connections.py", line 393, in check_error
2017-03-06 11:30:56.894 TRACE nova.api.openstack.extensions err.raise_mysql_exception(self._data)
2017-03-06 11:30:56.894 TRACE nova.api.openstack.extensions File "/usr/local/lib/python2.7/dist-packages/pymysql/err.py", line 107, in raise_mysql_exception
2017-03-06 11:30:56.894 TRACE nova.api.openstack.extensions raise errorclass(errno, errval)
2017-03-06 11:30:56.894 TRACE nova.api.openstack.extensions DBNonExistentDatabase: (pymysql.err.InternalError) (1049, u"Unknown database 'nova_cell0'")
2017-03-06 11:30:56.894 TRACE nova.api.openstack.extensions
2017-03-06 11:30:56.897 INFO nova.api.openstack.wsgi [req-cd845e73-f456-4120-b5c4-f274e054d300 admin admin] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_db.exception.DBNonExistentDatabase'>

Revision history for this message
Digambar (digambarpatil15) wrote :

I think 'nova_cell0' db is not created through devstack.

Revision history for this message
jichenjc (jichenjc) wrote :

maybe you need check you devstack first, I can see my devstack has this nova_cell0 db

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| cinder |
| glance |
| keystone |
| mysql |
| neutron |
| nova |
| nova_api |
| nova_cell0 |
| performance_schema |
| sys |
+--------------------+

Changed in nova:
status: New → Incomplete
Revision history for this message
Matt Riedemann (mriedem) wrote :

The nova_cell0 database is created here by devstack:

https://github.com/openstack-dev/devstack/blob/8fe48af1625cd2deca496de81dd72573e78b3ef2/lib/nova#L709

I'm assuming you have the n-api service enabled?

Changed in nova:
status: Incomplete → Invalid
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.