Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova submodules can't connect to rabbitmq-server

When I ran

$ nova-cert

or

$ nova-conductor

and so on, I got this error log:

    2015-04-05 17:41:39.592 8722 DEBUG nova.service [req-2cdae57f-6644-4bb5-a60c-b7b860720e4d - - - - -] Creating RPC server for service cert start /usr/lib/python2.7/dist-packages/nova/service.py:188
2015-04-05 17:41:39.594 8722 DEBUG oslo_messaging._drivers.amqp [req-2cdae57f-6644-4bb5-a60c-b7b860720e4d - - - - -] Pool creating new connection create /usr/local/lib/python2.7/dist-packages/oslo.messaging-1.9.0-py2.7.egg/oslo_messaging/_drivers/amqp.py:98
2015-04-05 17:41:39.598 8722 INFO oslo_messaging._drivers.impl_rabbit [req-2cdae57f-6644-4bb5-a60c-b7b860720e4d - - - - -] Connecting to AMQP server on 10.0.0.11:5672
2015-04-05 17:41:42.612 8722 DEBUG oslo_messaging._drivers.impl_rabbit [req-2cdae57f-6644-4bb5-a60c-b7b860720e4d - - - - -] Received recoverable error from kombu: on_error /usr/local/lib/python2.7/dist-packages/oslo.messaging-1.9.0-py2.7.egg/oslo_messaging/_drivers/impl_rabbit.py:789
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit Traceback (most recent call last):
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 436, in _ensured
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit     return fun(*args, **kwargs)
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 507, in __call__
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit     self.revive(create_channel())
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 242, in channel
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit     chan = self.transport.create_channel(self.connection)
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 741, in connection
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit     self._connection = self._establish_connection()
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 696, in _establish_connection
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit     conn = self.transport.establish_connection()
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqp.py", line 112, in establish_connection
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit     conn = self.Connection(**opts)
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/dist-packages/amqp/connection.py", line 180, in __init__
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit     (10, 30),  # tune
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/dist-packages/amqp/abstract_channel.py", line 67, in wait
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit     self.channel_id, allowed_methods)
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/dist-packages/amqp/connection.py", line 240, in _wait_method
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit     self.method_reader.read_method()
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/dist-packages/amqp/method_framing.py", line 189, in read_method
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit     raise m
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit IOError: Socket closed
2015-04-05 17:41:42.612 8722 TRACE oslo_messaging._drivers.impl_rabbit
2015-04-05 17:41:42.615 8722 ERROR oslo_messaging._drivers.impl_rabbit [req-2cdae57f-6644-4bb5-a60c-b7b860720e4d - - - - -] AMQP server 10.0.0.11:5672 closed the connection. Check login credentials: Socket closed

and here is how I configured nova.conf in controller node:

notification_driver = rabbit
rpc_backend = rabbit
rabbit_host=10.0.0.11
rabbit_port=5672
rabbit_userid= guest
rabbit_password= os62511279
rabbit_virtual_host= /
rabbit_retry_interval = 1
rabbit_retry_backoff = 1
rabbit_max_retries = 3

and this is what I get from command :

# netstat -ntlp | grep 5672
tcp        0      0 0.0.0.0:25672           0.0.0.0:*               LISTEN      7230/beam.smp
tcp6       0      0 :::5672                 :::*                    LISTEN      7230/beam.smp

Why my rabbitmq only listens to port 5672 in IPV6? How could I fix it?