Ask Your Question
0

openstack-cinder-volume fails on startup with error: 'module' object has no attribute 'create_connection'

asked 2015-01-05 09:57:33 -0600

Jean-Marc Chevalier gravatar image

updated 2015-01-05 14:15:47 -0600

mpetason gravatar image

I a learning to setup Openstack Icehouse using Fedora 20 and I refer to this doc: http://docs.openstack.org/icehouse/install-guide/install/yum/content/cinder-node.html

When starting the service, it fails with these error. Is it a problem with the python version used in Fedora or can it be something missing in my setup?

2015-01-05 09:48:58.510 17344 ERROR cinder.service [req-c5be19bf-300d-490f-96d3-7f2f2ba9f7cc None None] Unhandled exception
2015-01-05 09:48:58.510 17344 TRACE cinder.service Traceback (most recent call last):
2015-01-05 09:48:58.510 17344 TRACE cinder.service   File "/usr/lib/python2.7/site-packages/cinder/service.py", line 228, in _start_child
2015-01-05 09:48:58.510 17344 TRACE cinder.service     self._child_process(wrap.server)
2015-01-05 09:48:58.510 17344 TRACE cinder.service   File "/usr/lib/python2.7/site-packages/cinder/service.py", line 205, in _child_process
2015-01-05 09:48:58.510 17344 TRACE cinder.service     launcher.run_server(server)
2015-01-05 09:48:58.510 17344 TRACE cinder.service   File "/usr/lib/python2.7/site-packages/cinder/service.py", line 96, in run_server
2015-01-05 09:48:58.510 17344 TRACE cinder.service     server.start()
2015-01-05 09:48:58.510 17344 TRACE cinder.service   File "/usr/lib/python2.7/site-packages/cinder/service.py", line 369, in start
2015-01-05 09:48:58.510 17344 TRACE cinder.service     self.conn = rpc.create_connection(new=True)
2015-01-05 09:48:58.510 17344 TRACE cinder.service   File "/usr/lib/python2.7/site-packages/cinder/openstack/common/rpc/__init__.py", line 95, in create_connection
2015-01-05 09:48:58.510 17344 TRACE cinder.service     return _get_impl().create_connection(CONF, new=new)
2015-01-05 09:48:58.510 17344 TRACE cinder.service AttributeError: 'module' object has no attribute 'create_connection'
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-05 14:16:58 -0600

mpetason gravatar image

It may the be Python version, it is expecting to import module and have "create_connection" which might not be available:

2015-01-05 09:48:58.510 17344 TRACE cinder.service AttributeError: 'module' object has no attribute 'create_connection'

Try updating Python or see which version is in the repositories for RDO or whichever repository you are using.

edit flag offensive delete link more

Comments

The Python version is python-2.7.5-15.fc20.x86_64. I really don't know what to look for next.

The script where the error occurs is in package python-cinder-2013.2.3-1.fc20.noarch

Both packages are part of the Fedora update repository.

Jean-Marc Chevalier gravatar imageJean-Marc Chevalier ( 2015-01-06 13:11:14 -0600 )edit

Fedora isn't supposed to need any other packages, but I would recommend checking it against versions in:

https://repos.fedorapeople.org/repos/...http://fedoraproject.org/wiki/EPEL

Another "fix" people tend to try is to remove the package then re-install. Sometimes works, doesn't get an RCA

mpetason gravatar imagempetason ( 2015-01-06 13:22:12 -0600 )edit

I just installed this rpm to add the OpenStack Icehouse Repository and peformed an update. Now the openstack-cinder-volume seems to be starting and remains active:

https://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-4.noarch.rpm (https://repos.fedorapeople.org/repos/...)

Jean-Marc Chevalier gravatar imageJean-Marc Chevalier ( 2015-01-06 14:34:51 -0600 )edit

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: 2015-01-05 09:57:33 -0600

Seen: 654 times

Last updated: Jan 05 '15