From 7551ca4e53cc78662a8a643e38dda5f6144807d1 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 29 Jun 2018 12:43:15 +0100 Subject: [PATCH] templates: dnsmasq-neutron.conf: Fix user for dnsmasq process The dnsmasq process needs to access certain files from directories owned by the neutron user. However, dnsmasq may be running as a different user resulting to the following failures: Jun 29 07:50:09 dnsmasq[8750]: failed to load names from /var/lib/neutron/dhcp/b245a1a3-6516-4208-931a-3f46d5e99cc3/addn_hosts: Permission denied Jun 29 07:50:09 dnsmasq[8750]: cannot read /var/lib/neutron/dhcp/b245a1a3-6516-4208-931a-3f46d5e99cc3/host: Permission denied Jun 29 07:50:09 dnsmasq[8750]: cannot read /var/lib/neutron/dhcp/b245a1a3-6516-4208-931a-3f46d5e99cc3/opts: Permission denied As such, we need to make sure that dnsmasq is running as the same user with neutron. Change-Id: Id7536ef6e49c93282f1debcb3b2d92452e4aac8b --- templates/dnsmasq-neutron.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/dnsmasq-neutron.conf.j2 b/templates/dnsmasq-neutron.conf.j2 index 15e912eb..ebd1d620 100644 --- a/templates/dnsmasq-neutron.conf.j2 +++ b/templates/dnsmasq-neutron.conf.j2 @@ -3,3 +3,4 @@ {% for key, value in neutron_dhcp_config.items() %} {{ key }}={{ value }} {% endfor %} +user={{ neutron_system_user_name }}