Ask Your Question
0

cinder-manage db sync Error

asked 2014-10-07 08:17:21 -0500

hemden gravatar image

updated 2014-10-07 13:09:14 -0500

mpetason gravatar image

When i try to synchronise my data base with cinder i got this error :

#sudo cinder-manage db sync

Traceback (most recent call last):
  File "/usr/bin/cinder-manage", line 62, in <module>
    from oslo import messaging
ImportError: cannot import name messaging

here is my cinder.conf file

[DEFAULT]
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
rpc_backend = cinder.openstack.common.rpc.impl_kombu
rabbit_host = 10.10.10.51
rabbit_port = 5672
rabbit_userid = guest


[database]
connection = mysql://user:user@10.10.10.51/cinder

[keystone_authtoken]
auth_uri = http://10.10.10.51:5000
auth_host = 10.10.10.51
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = cinder
admin_password = cinder
edit retag flag offensive close merge delete

Comments

I did pip install oslo.messaging and the system told me that's already installed. And yes i verified that all packages listed are installed.

hemden gravatar imagehemden ( 2014-10-08 03:11:23 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-10-07 13:10:29 -0500

mpetason gravatar image

See if you missed the package for oslo messaging. Verify that you installed all of the packages listed in the guide.

edit flag offensive delete link more

Comments

i did the upgrade of oslo.messaging and it solves the probleme and that's weared because i did the upgrade and the update of all my packages before that.

#sudo pip install --upgrade oslo.messaging

thanks for your help

hemden gravatar imagehemden ( 2014-10-08 04:05:28 -0500 )edit

Good deal. When you see errors in tracebacks about importing from "*" it's usually because the code doesn't include it:

Traceback (most recent call last): File "/usr/bin/cinder-manage", line 62, in <module> from oslo import messaging ImportError: cannot import name messaging

mpetason gravatar imagempetason ( 2014-10-08 10:07:50 -0500 )edit
0

answered 2014-11-12 18:19:17 -0500

med gravatar image

I've seen this as well in Trusty with Icehouse python-oslo.messaging and, here's the weird part, it works on some puppet hosts and not on others (all of which were installed with puppet ie, the same way.)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-10-07 08:17:21 -0500

Seen: 1,831 times

Last updated: Oct 08 '14