neutron-dhcp-agent: change dnsmasq.log rights
Fixes /var/log/kolla/neutron/dnsmasq.log rights so fluentd can read logs from that file. Closes-Bug: #1693712 Change-Id: I57e36ef07e8840eead2efde77e0ab9dfd4842931 (cherry picked from commit 0f5e39954292a51e7a967d4015a6f024d6ba42f9)
This commit is contained in:
parent
01a9e7b992
commit
1b880e8f99
@ -12,6 +12,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
||||
|
||||
{{ macros.install_packages(neutron_dhcp_agent_packages | customizable("packages")) }}
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||
|
||||
{% block neutron_dhcp_agent_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
|
||||
|
9
docker/neutron/neutron-dhcp-agent/extend_start.sh
Normal file
9
docker/neutron/neutron-dhcp-agent/extend_start.sh
Normal file
@ -0,0 +1,9 @@
|
||||
if [[ ! -d "/var/log/kolla/neutron" ]]; then
|
||||
mkdir -p /var/log/kolla/neutron
|
||||
fi
|
||||
if [[ ! -f "/var/log/kolla/neutron/dnsmasq.log" ]]; then
|
||||
touch /var/log/kolla/neutron/dnsmasq.log
|
||||
chown neutron:kolla /var/log/kolla/neutron/dnsmasq.log
|
||||
fi
|
||||
|
||||
. /usr/local/bin/kolla_neutron_extend_start
|
Loading…
x
Reference in New Issue
Block a user