Unable to sync block storage database on kilo using withe CentOS 7

asked 2015-08-24 15:25:31 -0500

Rajan433 gravatar image

updated 2015-08-24 16:03:53 -0500

I am getting following errors while trying to sync cinder database:

[root@controller ~]# su -s /bin/sh -c "cinder-manage db sync" cinder
/usr/lib/python2.7/site-packages/cinder/openstack/common/service.py:38: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_config instead.
  from oslo.config import cfg
No handlers could be found for logger "oslo_config.cfg"

// cinder configuration file

[root@controller ~]# cat /etc/cinder/cinder.conf | grep -v ^#
rpc_backend = rabbit
my_ip = 10.6.1.248
auth_strategy = keystone
verbose = True

[database]
connection = mysql://cinder:password@controller/cinder

[keystone_authtoken]
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 = password

[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = password

[oslo_concurrency]
lock_path = /var/lock/cinder

I am getting following errors looking at api.log

2015-08-24 16:21:13.562 2376 ERROR oslo_messaging._drivers.impl_rabbit [req-275775f8-88c0-4b72-a3f6-2d967de10996 - - - - -] AMQP server on controller:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 2 seconds.
2015-08-24 16:21:17.580 2376 ERROR oslo_messaging._drivers.impl_rabbit [req-275775f8-88c0-4b72-a3f6-2d967de10996 - - - - -] AMQP server controller:5672 closed the connection. Check login credentials: Socket closed
2015-08-24 16:21:21.598 2376 ERROR oslo_messaging._drivers.impl_rabbit [req-275775f8-88c0-4b72-a3f6-2d967de10996 - - - - -] AMQP server controller:5672 closed the connection. Check login credentials: Socket closed

Errors in scheduler.log is also similar

2015-08-24 16:24:02.277 944 ERROR oslo_messaging._drivers.impl_rabbit [req-2360e2fd-43ee-4169-932c-e7e777cf8e70 - - - - -] AMQP server controller:5672 closed the connection. Check login credentials: Socket closed
2015-08-24 16:24:06.297 944 ERROR oslo_messaging._drivers.impl_rabbit [req-2360e2fd-43ee-4169-932c-e7e777cf8e70 - - - - -] AMQP server controller:5672 closed the connection. Check login credentials: Socket closed

Restarted all the services and rebooted nodes many time, but no luck.

Please advise!!

edit retag flag offensive close merge delete

Comments

Check if the rabbit user and password are the good credentials, also check if rabbitmq is running and if the port is reachable from your cinder node

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-08-24 16:08:08 -0500 )edit

Thank you for comment. I have disabled firewall and selinux. Also, I can sync all other database such as keystone, glance, etc. Also, error regarding AMQP is not seen anymore after rebooting controller node, but still can not sync. Any specific message/log you would like to see?

Rajan433 gravatar imageRajan433 ( 2015-08-25 08:01:39 -0500 )edit

I think this isn't an error, is a warning of deprecation. Check if the database is created and can create volumes.

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-08-25 09:34:25 -0500 )edit