Browse code

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

Eric Windisch authored on 2013/05/24 00:55:40
Showing 1 changed files
... ...
@@ -86,6 +86,10 @@ function cleanup_rpc_backend {
86 86
         else
87 87
             exit_distro_not_supported "zeromq installation"
88 88
         fi
89
+
90
+        # Necessary directory for socket location.
91
+        sudo mkdir -p /var/run/openstack
92
+        sudo chown $STACK_USER /var/run/openstack
89 93
     fi
90 94
 }
91 95