Returning exception Exchange.declare: (404) NOT_FOUND - no exchange

asked 2015-09-07 21:24:14 -0500

Nodir gravatar image

updated 2015-09-08 05:02:34 -0500

Hi,

My OpenStack call to attach the subnet to the router is failing and I see neutron agents status 'xxx'. I also see lots of following error messages in the neutron-server-log

 2015-09-07 17:44:10.639 27722 ERROR oslo_messaging._drivers.common [req-9256c4f9-0b6f-45d1-a4af-cfd8645aa15f ] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n    executor_callback))\n', '  File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 74, in reply\n    self._send_reply(conn, reply, failure, log_failure=log_failure)\n', '  File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 63, in _send_reply\n    conn.direct_send(self.reply_q, rpc_common.serialize_msg(msg))\n', '  File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1098, in direct_send\n    error_callback=None)\n', '  File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1065, in publisher_send\n    self.ensure(_publish, retry=retry, error_callback=error_callback)\n', '  File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 846, in ensure\n    ret, channel = autoretry_method()\n', '  File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 436, in _ensured\n    return fun(*args, **kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 508, in __call__\n    return fun(*args, channel=channels[0], **kwargs), channels[0]\n', '  File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 832, in execute_method\n    method()\n', '  File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1061, in _publish\n    **kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 412, in __init__\n    type=\'direct\', **options)\n', '  File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 377, in __init__\n    self.reconnect(channel)\n', '  File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 385, in reconnect\n    routing_key=self.routing_key)\n', '  File "/usr/lib/python2.7/dist-packages/kombu/messaging.py", line 85, in __init__\n    self.revive(self._channel)\n', '  File "/usr/lib/python2.7/dist-packages/kombu/messaging.py", line 218, in revive\n    self.declare()\n', '  File "/usr/lib/python2.7/dist-packages/kombu/messaging.py", line 105, in declare\n    self.exchange.declare()\n', '  File "/usr/lib/python2.7/dist-packages/kombu/entity.py", line 166, in declare\n    nowait=nowait, passive=passive,\n', '  File "/usr/lib/python2.7/dist-packages/amqp/channel.py", line 620, in exchange_declare\n    (40, 11),  # Channel.exchange_declare_ok\n', '  File "/usr/lib/python2.7/dist-packages/amqp/abstract_channel.py", line 69, in wait\n    return self.dispatch_method(method_sig, args, content)\n', '  File "/usr/lib/python2.7/dist-packages/amqp/abstract_channel.py", line 87, in dispatch_method\n    return amqp_method(self, args)\n', '  File "/usr/lib/python2.7/dist-packages/amqp/channel.py", line 241, in _close\n    reply_code, reply_text, (class_id, method_id), ChannelError,\n', "NotFound: Exchange.declare: (404) NOT_FOUND - no exchange 'reply_73dae291f34b47f185896702b4e8a0fb' in vhost '/'\n"]
2015-09-07 17:44:13.378 27722 ERROR oslo_messaging._drivers.impl_rabbit [req-e1566301-4064-46ae-8fd8-4b2411335307 ] Failed to publish message to topic 'reply_4da99f087e8a479fae9b95ae86357bd0': Exchange.declare: (404) NOT_FOUND - no exchange 'reply_4da99f087e8a479fae9b95ae86357bd0' in vhost '/'
2015-09-07 17:44:13.381 ...
(more)
edit retag flag offensive close merge delete

Comments

Try restarting rabbitmq-server and then neutron-server. After that, check if neutron services comes up(can take a minute) Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-08 05:06:08 -0500 )edit

Thanks, Eduardo! Restarting rabbitmq and neutron-server indeed resolves the issue.

However, after creating several more networks and VMs, I do see the error message again. Is there permanent solution? I don't think restarting rabbitmq and neutron-server often is a good solution in a long run.

Nodir gravatar imageNodir ( 2015-09-08 10:42:47 -0500 )edit

Maybe there is a problem with your rabbbitmq, can be a bottleneck

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-08 11:13:25 -0500 )edit