Revision history [back]

click to hide/show revision 1
initial version

ZeroMQ configuration assistance

Hi,

I am interested in trying out ZeroMQ on two nodes (controller + compute node/hypervisor). Currently the nova.conf on the controller consists of the following definitions:

rpc_zmq_bind_address=* 
rpc_zmq_matchmaker=oslo.messaging._drivers.matchmaker_ring.MatchMakerRing 
rpc_zmq_port=9501 
rpc_zmq_contexts=1 
rpc_zmq_ipc_dir=/var/run/openstack 
rpc_zmq_host=openstack5
rpc_backend=zmq

The directory '/var/run/openstack' created and owned by user nova. Installed ZeroMQ packages. Created the json file '/etc/oslo/matchmaker_ring.json' containing:

  {
    "conductor":["openstack5"],
    "compute":["openstack5"],
    "network":["openstack5"],
    "consoleauth":["openstack5"],
    "scheduler":["openstack5"]
  }

Not sure about the following, but I have manually started 'oslo-messaging-zmq-receiver --config-file /etc/nova/nova.conf' Output as follows:

DEBUG:oslo.messaging._drivers.impl_zmq:Connecting to tcp://*:9501 with PULL
DEBUG:oslo.messaging._drivers.impl_zmq:-> Subscribed to None
DEBUG:oslo.messaging._drivers.impl_zmq:-> bind: True
INFO:oslo.messaging._drivers.impl_zmq:In reactor registered
INFO:oslo.messaging._drivers.impl_zmq:Consuming socket
INFO:oslo.messaging._drivers.impl_zmq:Creating proxy for topic: conductor.master
DEBUG:oslo.messaging._drivers.impl_zmq:Connecting to ipc:///var/run/openstack/zmq_topic_conductor.master with PUSH
DEBUG:oslo.messaging._drivers.impl_zmq:-> Subscribed to None
DEBUG:oslo.messaging._drivers.impl_zmq:-> bind: True

Openstack logs:

Jul 25 16:05:31 openstack5 OpenStack[      nova:29123]    INFO: Registering reactor [-]
Jul 25 16:05:31 openstack5 OpenStack[      nova:29123]    INFO: In reactor registered [-]
Jul 25 16:05:31 openstack5 OpenStack[      nova:29123]    INFO: Skipping topic registration. Already registered. [-]
Jul 25 16:05:31 openstack5 OpenStack[      nova:29123]    INFO: Registering reactor [-]
Jul 25 16:05:31 openstack5 OpenStack[      nova:29123]    INFO: In reactor registered [-]
Jul 25 16:05:31 openstack5 OpenStack[      nova:29123]    INFO: Consuming socket [-]
Jul 25 16:05:31 openstack5 OpenStack[      nova:29123]    INFO: Consuming socket [-]

So far it looks to me as if the configuration on the contoller is okay (not sure about that though). Now the problem is that I did the same configuration steps for the compute node but I keep getting:

Jul 25 16:05:15 node001 OpenStack[ nova: 5933]CRITICAL: Timeout: Timeout while waiting on RPC response - topic: "<unknown>", RPC method: "<unknown>" info: "<unknown>"#012 [req-0ac7ad20-b0bb-4802-b8fc-2b4e30795077 None None] ....

If somebody could point out how the compute node should be configured, an example of controller + compute node with zeromq configuration would be very much appreciated.

Thanks in advance.