Ask Your Question

Cinder DB won't populate

asked 2015-07-31 14:17:51 -0500

ivarh gravatar image

updated 2015-07-31 15:54:36 -0500

I am having issues on a fresh Ubuntu 14.04 install of Openstack. The Cinder DB will not populate. When I run this command: su -s /bin/sh -c "cinder-manage db sync" cinder

It returns this error:
/usr/lib/python2.7/dist-packages/cinder/openstack/common/ DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_config instead. from oslo.config import cfg

I have checked the database and there are no tables.

Any help?

Here you go Eduardo - cinder.conf:

rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
connection = mysql://cinder:XXX@controller/cinder
rpc_backend = rabbit
auth_strategy = keystone
my_ip =
verbose = True

auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = cinder
password =XXX

rabbit_host = controller
rabbit_userid = openstack
rabbit_password = XXX

lock_path = /var/lock/cinder

But even if the message can be ignored I have no tables in my cinder DB?

edit retag flag offensive close merge delete



Can you paste cinder.conf to look if there is something wrong and see why tables are not created? I think this message is not relevant and can be ignored.

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-07-31 15:42:22 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-31 16:29:51 -0500

updated 2015-07-31 16:30:38 -0500

The "connection = mysql://cinder:XXX@controller/cinder" option must be in [database] section

Create the section if does not exists

edit flag offensive delete link more



You are my Hero! I have found that little dumb mistakes are causing my baldness...

ivarh gravatar imageivarh ( 2015-07-31 16:48:25 -0500 )edit

If the answer resolves your issue, please, mark the question as answered. This will maintain the quality and will help another users with the same or similar issues. Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-07-31 16:56:35 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-07-31 14:17:51 -0500

Seen: 730 times

Last updated: Jul 31 '15