Error when starting glance-api - unable to redeclare queue

Bug #1057325 reported by Endre Karlson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned
glance (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

root@os-svc01:~# glance-api
2012-09-27 09:09:45 4649 DEBUG glance.common.config [-] Loading glance-api from /etc/glance/glance-api-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185
2012-09-27 09:09:45 4649 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties
2012-09-27 09:09:45 4649 INFO glance.db.sqlalchemy.api [-] not auto-creating glance registry DB
2012-09-27 09:09:45 4649 DEBUG glance.notifier [-] Converted strategy alias rabbit to glance.notifier.notify_kombu.RabbitStrategy __init__ /usr/lib/python2.7/dist-packages/glance/notifier/__init__.py:54
2012-09-27 09:09:45 4649 INFO glance.notifier.notify_kombu [-] Connecting to AMQP server on mq.os.lan:5672
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/poll.py", line 97, in wait
    readers.get(fileno, noop).cb(fileno)
  File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
    result = function(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/channel.py", line 1381, in queue_declare
    (50, 11), # Channel.queue_declare_ok
  File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/abstract_channel.py", line 97, in wait
    return self.dispatch_method(method_sig, args, content)
  File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/abstract_channel.py", line 115, in dispatch_method
    return amqp_method(self, args)
  File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/channel.py", line 273, in _close
    (class_id, method_id))
AMQPChannelException: (406, u"PRECONDITION_FAILED - parameters for queue 'glance_notifications.warn' in vhost '/' not equivalent", (50, 10), 'Channel.queue_declare')
Removing descriptor: 7
2012-09-27 09:09:45 4649 CRITICAL glance [-] (406, u"PRECONDITION_FAILED - parameters for queue 'glance_notifications.warn' in vhost '/' not equivalent", (50, 10), 'Channel.queue_declare')
2012-09-27 09:09:45 4649 CRITICAL glance [-] (406, u"PRECONDITION_FAILED - parameters for queue 'glance_notifications.warn' in vhost '/' not equivalent", (50, 10), 'Channel.queue_declare')
2012-09-27 09:09:45 4649 TRACE glance Traceback (most recent call last):
2012-09-27 09:09:45 4649 TRACE glance File "/usr/bin/glance-api", line 56, in <module>
2012-09-27 09:09:45 4649 TRACE glance server.start(config.load_paste_app, default_port=9292)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 197, in start
2012-09-27 09:09:45 4649 TRACE glance self.pool.spawn_n(self._single_run, self.app_func(), self.sock)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/common/config.py", line 187, in load_paste_app
2012-09-27 09:09:45 4649 TRACE glance app = deploy.loadapp("config:%s" % conf_file, name=app_name)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2012-09-27 09:09:45 4649 TRACE glance return loadobj(APP, uri, name=name, **kw)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2012-09-27 09:09:45 4649 TRACE glance return context.create()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2012-09-27 09:09:45 4649 TRACE glance return self.object_type.invoke(self)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 203, in invoke
2012-09-27 09:09:45 4649 TRACE glance app = context.app_context.create()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2012-09-27 09:09:45 4649 TRACE glance return self.object_type.invoke(self)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2012-09-27 09:09:45 4649 TRACE glance **context.local_conf)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
2012-09-27 09:09:45 4649 TRACE glance val = callable(*args, **kw)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/api/__init__.py", line 31, in root_app_factory
2012-09-27 09:09:45 4649 TRACE glance return paste.urlmap.urlmap_factory(loader, global_conf, **local_conf)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 25, in urlmap_factory
2012-09-27 09:09:45 4649 TRACE glance app = loader.get_app(app_name, global_conf=global_conf)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2012-09-27 09:09:45 4649 TRACE glance name=name, global_conf=global_conf).create()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2012-09-27 09:09:45 4649 TRACE glance return self.object_type.invoke(self)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146, in invoke
2012-09-27 09:09:45 4649 TRACE glance return fix_call(context.object, context.global_conf, **context.local_conf)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
2012-09-27 09:09:45 4649 TRACE glance val = callable(*args, **kw)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 402, in factory
2012-09-27 09:09:45 4649 TRACE glance return cls(routes.Mapper())
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/api/v2/router.py", line 42, in __init__
2012-09-27 09:09:45 4649 TRACE glance images_resource = images.create_resource(custom_image_properties)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/api/v2/images.py", line 728, in create_resource
2012-09-27 09:09:45 4649 TRACE glance controller = ImagesController()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/api/v2/images.py", line 49, in __init__
2012-09-27 09:09:45 4649 TRACE glance self.notifier = notifier or glance.notifier.Notifier()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/notifier/__init__.py", line 64, in __init__
2012-09-27 09:09:45 4649 TRACE glance self.strategy = strategy_class()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/notifier/notify_kombu.py", line 68, in __init__
2012-09-27 09:09:45 4649 TRACE glance self.reconnect()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/notifier/notify_kombu.py", line 130, in reconnect
2012-09-27 09:09:45 4649 TRACE glance self._connect()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/notifier/notify_kombu.py", line 121, in _connect
2012-09-27 09:09:45 4649 TRACE glance queue.declare()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/kombu/entity.py", line 381, in declare
2012-09-27 09:09:45 4649 TRACE glance self.queue_declare(nowait, passive=False)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/kombu/entity.py", line 401, in queue_declare
2012-09-27 09:09:45 4649 TRACE glance nowait=nowait)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/kombu/syn.py", line 23, in blocking
2012-09-27 09:09:45 4649 TRACE glance return __sync_current(fun, *args, **kwargs)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/kombu/syn.py", line 49, in __eblocking__
2012-09-27 09:09:45 4649 TRACE glance return spawn(fun, *args, **kwargs).wait()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
2012-09-27 09:09:45 4649 TRACE glance return self._exit_event.wait()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2012-09-27 09:09:45 4649 TRACE glance return hubs.get_hub().switch()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
2012-09-27 09:09:45 4649 TRACE glance return self.greenlet.switch()
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
2012-09-27 09:09:45 4649 TRACE glance result = function(*args, **kwargs)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/channel.py", line 1381, in queue_declare
 2012-09-27 09:09:45 4649 TRACE glance (50, 11), # Channel.queue_declare_ok
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/abstract_channel.py", line 97, in wait
2012-09-27 09:09:45 4649 TRACE glance return self.dispatch_method(method_sig, args, content)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/abstract_channel.py", line 115, in dispatch_method
2012-09-27 09:09:45 4649 TRACE glance return amqp_method(self, args)
2012-09-27 09:09:45 4649 TRACE glance File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/channel.py", line 273, in _close
2012-09-27 09:09:45 4649 TRACE glance (class_id, method_id))
2012-09-27 09:09:45 4649 TRACE glance AMQPChannelException: (406, u"PRECONDITION_FAILED - parameters for queue 'glance_notifications.warn' in vhost '/' not equivalent", (50, 10), 'Channel.queue_declare')
2012-09-27 09:09:45 4649 TRACE glance

Revision history for this message
Endre Karlson (endre-karlson) wrote :

ii glance 2012.2+git201209250330~precise-0ubuntu1 OpenStack Image Registry and Delivery Service - Daemons
ii glance-api 2012.2+git201209250330~precise-0ubuntu1 OpenStack Image Registry and Delivery Service - API
ii glance-common 2012.2+git201209250330~precise-0ubuntu1 OpenStack Image Registry and Delivery Service - Common
ii glance-registry 2012.2+git201209250330~precise-0ubuntu1 OpenStack Image Registry and Delivery Service - Registry
ii python-glance 2012.2+git201209250330~precise-0ubuntu1 OpenStack Image Registry and Delivery Service - Python library
ii python-glanceclient 1:0.5.1.6.ff3060c+git201209251330~precise-0ubuntu1 Client library for Openstack glance server.

Ubuntu precise 64 bit

Revision history for this message
Brian Waldon (bcwaldon) wrote :

It looks like the package you have has eafed25ba64f5fd8af97bcbe8e9f12a1fe4f7c9f but not 35ba3e080b06dc7ba254489db8f45fe585510175. The second commit fixes a bug introduced by the first that could cause this type of failure. You could build your own packages, install from source, or wait until Ubuntu updates their packages.

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

As Endre has noted the Ubuntu precise packages for glance are in use, targetting at Ubuntu.

affects: ubuntu → glance (Ubuntu)
Changed in glance:
status: New → Invalid
Changed in glance (Ubuntu):
status: New → Confirmed
Revision history for this message
Chuck Short (zulcss) wrote :

This has been fixed in ubuntu as well since this was included in the final release of glance.

Changed in glance (Ubuntu):
status: Confirmed → Fix Released
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.