Removing /dev/log on rsyslog start

Currently we seem to be experiencing races between containers.
If another containers tries to write to rsyslog before rsyslog container
is up and running it will create /dev/log as directory,
and that will prevent rsyslog from starting.

Change-Id: I88ac27693d12e605f95e3a945fc98783516d7933
Closes-Bug: #1501694
backport: liberty
This commit is contained in:
Michal Jastrzebski 2015-10-01 12:36:00 +02:00
parent e230c0752e
commit 865ba80231
2 changed files with 7 additions and 0 deletions

View File

@ -13,4 +13,6 @@ RUN apt-get install -y --no-install-recommends rsyslog \
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
{{ include_footer }}

View File

@ -0,0 +1,5 @@
#!/bin/bash
if [[ -e "/dev/log" ]]; then
rm -rf /dev/log
fi