Nova issue - InternalError: (1049, u"Unknown database 'nova_api'")

Bug #1620028 reported by Tung Doan
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
devstack
Confirmed
Undecided
Unassigned

Bug Description

Hi all,

I run stack.sh with devstack today. Devstack is still installed successfully but when I tracked stack.sh log I found an error:

InternalError: (1049, u"Unknown database 'nova_api'")

The detailed log is attached here: http://paste.openstack.org/show/566648/

and full stack.sh log:
https://drive.google.com/file/d/0B7Fzz6EvT2F9T0tVUHUtdk55SVE/view

Thanks

Tung Doan (tungdoan)
Changed in nova:
status: New → Invalid
Tung Doan (tungdoan)
Changed in nova:
status: Invalid → New
Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

Not sure how you ended up with that, but I'd recommend you to ./unstack.sh, ./clean.sh, do a fresh devstack git pull to get the latest master, wipe the /opt/stack repositories, ./stack.sh again and see whether you have a 2nd DB being created as "nova_api".

The stack.sh log you mention doesn't look having any problem at all.

Changed in nova:
status: New → Invalid
Revision history for this message
Lenny (lennyb) wrote :

I am also getting this error

http://13.69.151.247/Nova-ML2-Sriov/6310_cloudx-23/logs/stack.sh.log.gz line 9847

016-09-05 08:14:13.229 | 2016-09-05 11:14:13.225 26996 ERROR oslo_db.sqlalchemy.exc_filters File "/usr/local/lib/python2.7/dist-packages/pymysql/err.py", line 115, in _check_mysql_exception
2016-09-05 08:14:13.229 | 2016-09-05 11:14:13.225 26996 ERROR oslo_db.sqlalchemy.exc_filters raise InternalError(errno, errorvalue)
2016-09-05 08:14:13.230 | 2016-09-05 11:14:13.225 26996 ERROR oslo_db.sqlalchemy.exc_filters InternalError: (1049, u"Unknown database 'nova_api'")

Revision history for this message
Erlon R. Cruz (sombrafam) wrote :
Changed in nova:
status: Invalid → New
affects: nova → devstack-plugin-sheepdog
affects: devstack-plugin-sheepdog → devstack
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :
Changed in devstack:
status: New → Confirmed
Revision history for this message
Diana Clarke (diana-clarke) wrote :

I think the following patch might fix this bug:

  lib/nova: create api db first
  https://review.openstack.org/#/c/384916/

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

I think it's a duplicate of https://bugs.launchpad.net/nova/+bug/1631033 , the traceback will be gone with new release of oslo.db - 4.14.0

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.