From 02f0fbe6cf19ed0645df23e14cab16d61a400661 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Tue, 17 Mar 2015 14:55:04 +0000 Subject: neutron.configure: Ensure /var/run is a symlink to /run If /var/run is a directory that is not emptied every boot, then it will contain references to stale network namespaces, which do not work when neutron tries to create networks. If it is flushed appropriately then neutron will create the namespaces when it needs to. --- openstack-neutron.configure | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openstack-neutron.configure b/openstack-neutron.configure index 9097336d..5b71c09c 100644 --- a/openstack-neutron.configure +++ b/openstack-neutron.configure @@ -56,3 +56,12 @@ for service in ${services[@]}; do ln -sf "/etc/systemd/system/$service" \ "$ROOT/etc/systemd/system/multi-user.target.wants/$service" done + +############################################# +# Ensure /var/run is an appropriate symlink # +############################################# + +if ! link="$(readlink "$ROOT/var/run")" || [ "$link" != ../run ]; then + rm -rf "$ROOT/var/run" + ln -s ../run "$ROOT/var/run" +fi -- cgit v1.2.1