Ask Your Question

mitaka nova database population error

asked 2017-09-23 04:13:35 -0500

Sudhin gravatar image

updated 2017-09-23 04:14:23 -0500

Hi i had upgraded openstack from liberty to mitaka, after that i had changed the configuration files according to mitaka release. So after configuring nova by editing nova.conf, i tried to populate the nova db it's showing some error.

  root@controller:/usr/lib/python2.7/dist-packages/nova# su -s /bin/sh -c "nova-manage db sync" nova
Traceback (most recent call last):
  File "/usr/bin/nova-manage", line 10, in <module>
  File "/usr/lib/python2.7/dist-packages/nova/cmd/", line 1515, in main
  File "/usr/lib/python2.7/dist-packages/nova/", line 66, in parse_args
    options.set_defaults(CONF, connection=_DEFAULT_SQL_CONNECTION,sqlite_db='nova.sqlite')
TypeError: set_defaults() got an unexpected keyword argument 'sqlite_db'

This is my nova.conf file

enabled_apis = osapi_compute,metadata
rpc_backend = rabbit
auth_strategy = keystone
my_ip =
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver

connection = mysql+pymysql://nova:abcd@controller/nova_api

connection = mysql+pymysql://nova:abcd@controller/nova

rabbit_host = controller
rabbit_userid = openstack
rabbit_password = abcd

auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = abcd

vncserver_listen = $my_ip
vncserver_proxyclient_address = $my_ip

api_servers = http://controller:9292

lock_path = /var/lib/nova/tmp

Please help me to resolve this issue.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-09-23 05:31:47 -0500

hoboland gravatar image

Observation - I notice you have a mysql driver defined in the nova.conf and the error is sqlite_db. It seems like an inconsistency.

edit flag offensive delete link more


But in this document they had mentioned to do so.

Sudhin gravatar imageSudhin ( 2017-09-23 06:04:15 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-09-23 04:13:35 -0500

Seen: 705 times

Last updated: Sep 23 '17