Clearer error needed in nova-manage

Bug #1078563 reported by livemoon
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Unassigned

Bug Description

Hi,

I have successfully installed keystone and glance (Folsom)
I have installed nova, and when executing the command "nova-manage db sync" it is displaying the following output

root@Controller:~# nova-manage db sync
2012-11-06 11:28:00 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.migration' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/migration.pyc'> from (pid=8934) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658

==> /var/log/nova/nova-manage.log <==
2012-11-06 11:28:00 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.migration' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/migration.pyc'> from (pid=8934) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
root@Controller:~#

When checked the mysql database tables for nova, they havent created?
Before executing "nova-manage db sync" I have made sure that I have created the database nova in mysql database

Can you please let me know if i have missed anthing?

Thanks,
Narsing

Revision history for this message
Yaguang Tang (heut2008) wrote :

make sure you have correct mysql credentials in nova.conf

livemoon (mwjpiero)
Changed in nova:
status: New → Confirmed
Revision history for this message
chris grigg (chrislgrigg) wrote :

I am experiencing this exact same issue.

Revision history for this message
Gui Maluf Balzana (guimalufb) wrote :

Dimitri Racordon (dimitri-racordon) said on 2012-11-14: #4

You welcome.

I figured out my issue was related to a mistake in the configuration file nova.conf.

The configuration file I used was copied from the documentation appendix. Around line 13, the line "[keystone_authtoken]" seems to cause all the other flags to be unavailable to nova. I commented it and was then able to synchronize the correct database (MySQL). I do not know if that line "[keystone_authtoken]", which is a section header in INI syntax, is required by nova to authenticate itself to keystone, but at least so far, that fixed my issue with the database.

Maybe should the documentation example fixed about that?

Hope this helps,
Dimitri

https://answers.launchpad.net/nova/+question/213485

Thierry Carrez (ttx)
summary: - nova-manage cannot create table in mysql
+ Clearer error needed in nova-manage
Changed in nova:
importance: Undecided → Low
Revision history for this message
Andy McCrae (andrew-mccrae) wrote :

This has already been fixed, and will return an OperationalError, as follows:

user@test:/opt/$ nova-manage db sync
Command failed, please check log for more info
2013-04-12 12:54:05 CRITICAL [nova] (OperationalError) (1045, "Access denied for user 'root'@'localhost' (using password: YES)") None None

Changed in nova:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.