Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docker/dnsmasq/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% set dnsmasq_packages = ['dnsmasq'] %}
{{ macros.install_packages(dnsmasq_packages| customizable("packages")) }}

COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 644 /usr/local/bin/kolla_extend_start

{% block dnsmasq_footer %}{% endblock %}
{% block footer %}{% endblock %}
12 changes: 12 additions & 0 deletions docker/dnsmasq/extend_start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

if [[ ! -d "/var/log/kolla/ironic" ]]; then
mkdir -p /var/log/kolla/ironic
fi
if [[ $(stat -c %a /var/log/kolla/ironic) != "755" ]]; then
chmod 755 /var/log/kolla/ironic
fi
if [[ ! -r "/var/log/kolla/ironic/dnsmasq.log" ]]; then
touch /var/log/kolla/ironic/dnsmasq.log
chown ironic:ironic /var/log/kolla/ironic/dnsmasq.log
fi
2 changes: 2 additions & 0 deletions docker/openvswitch/openvswitch-base/extend_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ if [[ $(stat -c %a /var/log/kolla/openvswitch) != "755" ]]; then
chmod 755 /var/log/kolla/openvswitch
fi

chown -R openvswitch:openvswitch /var/log/kolla/openvswitch

. /usr/local/bin/kolla_openvswitch_extend_start
5 changes: 5 additions & 0 deletions docker/openvswitch/openvswitch-db-server/extend_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ fi
if [[ $(ovsdb-tool needs-conversion /var/lib/openvswitch/conf.db) == yes ]]; then
ovsdb-tool convert "/var/lib/openvswitch/conf.db"
fi

if [[ ! -r "/var/log/kolla/openvswitch/ovsdb-server.log" ]]; then
touch /var/log/kolla/openvswitch/ovsdb-server.log
chown openvswitch:openvswitch /var/log/kolla/openvswitch/ovsdb-server.log
fi
5 changes: 5 additions & 0 deletions docker/openvswitch/openvswitch-vswitchd/extend_start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/bin/bash

if [[ ! -r "/var/log/kolla/openvswitch/ovs-vswitchd.log" ]]; then
touch /var/log/kolla/openvswitch/ovs-vswitchd.log
chown openvswitch:openvswitch /var/log/kolla/openvswitch/ovs-vswitchd.log
fi

modprobe openvswitch