glance-api cannot start - CentOS

Bug #1301726 reported by Boon Lee
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
High
Matt Kassawara

Bug Description

Hi there,

I was following the instructions to install openstack (icehouse) on centos and encountered issue with glance-api not able to start. I am following the installation sequence of the document - keystone installed & verified seems ok. Then I installed image service openstack-glance but glance-api won't start (glance-registry starts ok)

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

Looking at api.log, I can see these error logs:

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

[root@controller glance]# rpm -qa |grep glance
python-glanceclient-0.12.0-1.el6.noarch
openstack-glance-2014.1-0.4.b3.el6.noarch
python-glance-2014.1-0.4.b3.el6.noarch

[root@controller glance]# cat /etc/redhat-release
CentOS release 6.5 (Final)

Please advise & Thks!

Regards,
Boon Lee

-----------------------------------
Built: 2014-04-02T08:11:59 00:00
git SHA: 717faea9679634c218c4dfb1c3fec15e9cc27c80
URL: http://docs.openstack.org/trunk/install-guide/install/yum/content/glance-install.html
source File: file:/home/jenkins/workspace/openstack-install-deploy-guide-fedora/doc/install-guide/section_glance-install.xml
xml:id: glance-install

Revision history for this message
Tom Fifield (fifieldt) wrote :

One quick comment: It looks like your install is trying to look for rabbitMQ as a queueing service, whereas Centos should use QPID.

This could be a problem with the guide. Standby.

Revision history for this message
Tom Fifield (fifieldt) wrote :

Try running these commands and restarting the services:

# 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

Changed in openstack-manuals:
status: New → Confirmed
importance: Undecided → High
milestone: none → icehouse
tags: added: install-guide
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/84940

Changed in openstack-manuals:
assignee: nobody → Tom Fifield (fifieldt)
status: Confirmed → In Progress
Revision history for this message
Boon Lee (eupub) wrote :

Hi Tom,

glance-api runs now!

[root@controller ~]# service openstack-glance-api status
openstack-glance-api (pid 3655) is running...

Many Thks!

Regards,
Boon Lee

Changed in openstack-manuals:
assignee: Tom Fifield (fifieldt) → Matt Kassawara (ionosphere80)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/84940
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=740b76c8e08992d3a4de2bca38328673fd1b00ee
Submitter: Jenkins
Branch: master

commit 740b76c8e08992d3a4de2bca38328673fd1b00ee
Author: Tom Fifield <email address hidden>
Date: Thu Apr 3 13:01:31 2014 +0800

    Add explicit msg q conf instructions to glance

    As reported by user Boon Lee, the glance install instructions
    for Icehouse under Centos were failing because the message
    queue was not being configured.

    This patch includes explicit message queue configuration, such as
    in compute and networking.

    Change-Id: I04a15e56a7efc3360380f9157621977a9dff9e40
    Closes-Bug: 1301726

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.