Skip to content

Commit 5e94215

Browse files
committed
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 0f5e399)
1 parent 86d6fac commit 5e94215

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docker/neutron/neutron-dhcp-agent/Dockerfile.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1212

1313
{{ macros.install_packages(neutron_dhcp_agent_packages | customizable("packages")) }}
1414

15+
COPY extend_start.sh /usr/local/bin/kolla_extend_start
16+
1517
{% block neutron_dhcp_agent_footer %}{% endblock %}
1618
{% block footer %}{% endblock %}
1719

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
if [[ ! -d "/var/log/kolla/neutron" ]]; then
2+
mkdir -p /var/log/kolla/neutron
3+
fi
4+
if [[ ! -f "/var/log/kolla/neutron/dnsmasq.log" ]]; then
5+
touch /var/log/kolla/neutron/dnsmasq.log
6+
chown neutron:kolla /var/log/kolla/neutron/dnsmasq.log
7+
fi
8+
9+
. /usr/local/bin/kolla_neutron_extend_start

0 commit comments

Comments
 (0)