Skip to content

Commit 0f5e399

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
1 parent e3a33aa commit 0f5e399

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
@@ -14,6 +14,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1414

1515
{{ macros.kolla_patch_sources() }}
1616

17+
COPY extend_start.sh /usr/local/bin/kolla_extend_start
18+
1719
{% block neutron_dhcp_agent_footer %}{% endblock %}
1820
{% block footer %}{% endblock %}
1921

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)