Ask Your Question
0

glance-api cannot start - DriverLoadFailure: Failed to load transport driver "rabbit" [closed]

asked 2014-04-02 21:23:03 -0500

eupub gravatar image

updated 2014-06-13 17:19:10 -0500

smaffulli gravatar image

Hi there,

I am following docs.openstack.org to install openstack on centOS. I am having a problem getting openstack-glance-api to start. A pid file is always created.

[root@controller glance]# service openstack-glance-api status
openstack-glance-api dead but pid file exists

Debug log seems to suggest something about glance-api trying to load rabbit but failed.

Appreciate all help please!

From glance-api --debug:

2014-04-03 10:14:29.855 2894 ERROR stevedore.extension [-] Could not load 'rabbit': No module named kombu
2014-04-03 10:14:29.855 2894 ERROR stevedore.extension [-] No module named kombu
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension Traceback (most recent call last):
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension   File "/usr/lib/python2.6/site-packages/stevedore/extension.py", line 162, in _load_plugins
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension     verify_requirements,
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension   File "/usr/lib/python2.6/site-packages/stevedore/named.py", line 123, in _load_one_plugin
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension     verify_requirements,
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension   File "/usr/lib/python2.6/site-packages/stevedore/extension.py", line 177, in _load_one_plugin
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension     plugin = ep.load(require=verify_requirements)
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension   File "/usr/lib/python2.6/site-packages/oslo/messaging/_drivers/impl_rabbit.py", line 23, in <module>
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension     import kombu
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension ImportError: No module named kombu
2014-04-03 10:14:29.855 2894 TRACE stevedore.extension
2014-04-03 10:14:29.857 2894 DEBUG stevedore.extension [-] found extension EntryPoint.parse('fake = oslo.messaging._drivers.impl_fake:FakeDriver') _load_plugins /usr/lib/python2.6/site-packages/stevedore/extension.py:156
2014-04-03 10:14:29.858 2894 CRITICAL glance [-] DriverLoadFailure: Failed to load transport driver "rabbit": No 'oslo.messaging.drivers' driver found, looking for 'rabbit'

2014-04-03 10:14:29.858 2894 TRACE glance Traceback (most recent call last):
2014-04-03 10:14:29.858 2894 TRACE glance   File "/usr/bin/glance-api", line 10, in <module>
2014-04-03 10:14:29.858 2894 TRACE glance     sys.exit(main())
2014-04-03 10:14:29.858 2894 TRACE glance   File "/usr/lib/python2.6/site-packages/glance/cmd/api.py", line 63, in main
2014-04-03 10:14:29.858 2894 TRACE glance     server.start(config.load_paste_app('glance-api'), default_port=9292)
2014-04-03 10:14:29.858 2894 TRACE glance   File "/usr/lib/python2.6/site-packages/glance/common/config.py", line 205, in load_paste_app
2014-04-03 10:14:29.858 2894 TRACE glance     app = deploy.loadapp("config:%s" % conf_file, name=app_name)
2014-04-03 10:14:29.858 2894 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 247, in loadapp
2014-04-03 10:14:29.858 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-06-17 07:09:55.125890

Comments

Version info: openstack-glance-2014.1-0.4.b3.el6.noarch python-glance-2014.1-0.4.b3.el6.noarch

eupub gravatar imageeupub ( 2014-04-02 23:10:05 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-06-14 07:39:30 -0500

mriedem gravatar image

You don't have kombu installed:

ImportError: No module named kombu

On CentOS this would be the python-kombu rpm.

edit flag offensive delete link more
0

answered 2014-04-03 00:11:05 -0500

eupub gravatar image

updated 2014-06-13 17:18:21 -0500

smaffulli gravatar image

glance-id was trying to use RabbitMQ for message whereas on centos qpid should be used.

Adding these commands solved the problem: (controller is hostname, change accordingly)

# openstack-config --set /etc/glance/glance-api.conf \
  DEFAULT rpc_backend glance.openstack.common.rpc.impl_qpid
# openstack-config --set /etc/glance/glance-api.conf DEFAULT qpid_hostname controller

# openstack-config --set /etc/glance/glance-registry.conf \
  DEFAULT rpc_backend glance.openstack.common.rpc.impl_qpid
# openstack-config --set /etc/glance/glance-registry.conf DEFAULT qpid_hostname controller
edit flag offensive delete link more

Comments

I found that after I ran this it still failed until I ran # service openstack-glance-api force-reload

TomM gravatar imageTomM ( 2014-04-17 16:22:34 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-04-02 21:23:03 -0500

Seen: 1,988 times

Last updated: Jun 14 '14