Bug 1039773 - When switching notifier_strategy = rabbit dose not work
Summary: When switching notifier_strategy = rabbit dose not work
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: 2.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 4.0
Assignee: Flavio Percoco
QA Contact: Haim
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-10 00:08 UTC by Andy del Hierro
Modified: 2016-04-27 00:22 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-10 12:08:33 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Andy del Hierro 2013-12-10 00:08:09 UTC
Description of problem:When enabling the notifier on glance-api.conf to rabbit I keep getting that the notifier is not usable.


Version-Release number of selected component (if applicable):
openstack-glance.noarch                                                       2013.2-1.el6                                                            @openstack-havana

How reproducible:
Install with RDO packages with out packstack.

Steps to Reproduce:
1.Install OS as you would
2.load RDO repo
3.install glance and change the notifier to rabbit

Actual results:
2013-12-09 23:03:16.354 12545 CRITICAL glance [-] 'glance.notifier.notify_kombu.RabbitStrategy' is not an available notifier strategy.
2013-12-09 23:03:16.354 12545 TRACE glance Traceback (most recent call last):
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/bin/glance-api", line 10, in <module>
2013-12-09 23:03:16.354 12545 TRACE glance     sys.exit(main())
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/glance/cmd/api.py", line 62, in main
2013-12-09 23:03:16.354 12545 TRACE glance     server.start(config.load_paste_app('glance-api'), default_port=9292)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/glance/common/config.py", line 224, in load_paste_app
2013-12-09 23:03:16.354 12545 TRACE glance     app = deploy.loadapp("config:%s" % conf_file, name=app_name)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 247, in loadapp
2013-12-09 23:03:16.354 12545 TRACE glance     return loadobj(APP, uri, name=name, **kw)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 272, in loadobj
2013-12-09 23:03:16.354 12545 TRACE glance     return context.create()
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 710, in create
2013-12-09 23:03:16.354 12545 TRACE glance     return self.object_type.invoke(self)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 203, in invoke
2013-12-09 23:03:16.354 12545 TRACE glance     app = context.app_context.create()
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 710, in create
2013-12-09 23:03:16.354 12545 TRACE glance     return self.object_type.invoke(self)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 144, in invoke
2013-12-09 23:03:16.354 12545 TRACE glance     **context.local_conf)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/util.py", line 56, in fix_call
2013-12-09 23:03:16.354 12545 TRACE glance     val = callable(*args, **kw)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/glance/api/__init__.py", line 29, in root_app_factory
2013-12-09 23:03:16.354 12545 TRACE glance     return paste.urlmap.urlmap_factory(loader, global_conf, **local_conf)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 25, in urlmap_factory
2013-12-09 23:03:16.354 12545 TRACE glance     app = loader.get_app(app_name, global_conf=global_conf)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 350, in get_app
2013-12-09 23:03:16.354 12545 TRACE glance     name=name, global_conf=global_conf).create()
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 710, in create
2013-12-09 23:03:16.354 12545 TRACE glance     return self.object_type.invoke(self)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 146, in invoke
2013-12-09 23:03:16.354 12545 TRACE glance     return fix_call(context.object, context.global_conf, **context.local_conf)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/util.py", line 56, in fix_call
2013-12-09 23:03:16.354 12545 TRACE glance     val = callable(*args, **kw)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 471, in factory
2013-12-09 23:03:16.354 12545 TRACE glance     return cls(APIMapper())
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/glance/api/v2/router.py", line 51, in __init__
2013-12-09 23:03:16.354 12545 TRACE glance     images_resource = images.create_resource(custom_image_properties)
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/glance/api/v2/images.py", line 788, in create_resource
2013-12-09 23:03:16.354 12545 TRACE glance     controller = ImagesController()
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/glance/api/v2/images.py", line 50, in __init__
2013-12-09 23:03:16.354 12545 TRACE glance     self.notifier = notifier or glance.notifier.Notifier()
2013-12-09 23:03:16.354 12545 TRACE glance   File "/usr/lib/python2.6/site-packages/glance/notifier/__init__.py", line 72, in __init__
2013-12-09 23:03:16.354 12545 TRACE glance     raise exception.InvalidNotifierStrategy(strategy=strategy)
2013-12-09 23:03:16.354 12545 TRACE glance InvalidNotifierStrategy: 'glance.notifier.notify_kombu.RabbitStrategy' is not an available notifier strategy.
2013-12-09 23:03:16.354 12545 TRACE glance

Expected results:
To have the glance-api start with out errors


Additional info:

Comment 3 Flavio Percoco 2013-12-10 10:51:23 UTC
I think you're missing `python-kombu` which is not a hard dependency for glance. Could you please verify this?

Comment 4 Flavio Percoco 2013-12-10 12:08:33 UTC
I tested this in a fresh VM and indeed, what you're missing is python-kombu.

I installed glance and replicated your issue, then installed python-kombu and everything worked smoothly. 

As mentioned in my previous comment, python-kombu is not a hard dependency for Glance in RDO since its default broker is qpid.

Thanks for reporting it!

Comment 5 Andy del Hierro 2013-12-10 16:45:58 UTC
I just installed python-kombu and yes it is working.

As a side note i seen people complain that the to logfile is not working which i would now guess to say that python package is not installed.


Note You need to log in before you can comment on or make changes to this bug.