From 767c6dfa0ee42c4803e28a88e62276b2b0edf7f6 Mon Sep 17 00:00:00 2001 From: Eric Windisch Date: Thu, 23 May 2013 11:55:40 -0400 Subject: [PATCH] Create usable IPC directory for ZeroMQ By default, the zeromq driver looks for /var/run/openstack which needs to be created and given the right permissions. It is easier and just as safe in the case of devstack to just use mktemp to establish a temporary working directory. Change-Id: I4cec33e49d2b042a244420fb40d83d476e4971cd --- lib/rpc_backend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/rpc_backend b/lib/rpc_backend index fc439ecfb3..16882192ea 100644 --- a/lib/rpc_backend +++ b/lib/rpc_backend @@ -86,6 +86,10 @@ function cleanup_rpc_backend { else exit_distro_not_supported "zeromq installation" fi + + # Necessary directory for socket location. + sudo mkdir -p /var/run/openstack + sudo chown $STACK_USER /var/run/openstack fi }