| Summary: | When switching notifier_strategy = rabbit dose not work | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Andy del Hierro <andelhie> |
| Component: | openstack-glance | Assignee: | Flavio Percoco <fpercoco> |
| Status: | CLOSED WONTFIX | QA Contact: | Haim <hateya> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.1 | CC: | abaron, andelhie, eglynn, fpercoco, hateya, yeylon |
| Target Milestone: | --- | ||
| Target Release: | 4.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-10 12:08:33 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
I think you're missing `python-kombu` which is not a hard dependency for glance. Could you please verify this? 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! 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. |
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: