openstack-ansible-os_neutron/templates/dnsmasq-neutron.conf.j2
Markos Chandras 7551ca4e53 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
2018-06-29 14:20:28 +01:00

7 lines
148 B
Django/Jinja

# {{ ansible_managed }}
{% for key, value in neutron_dhcp_config.items() %}
{{ key }}={{ value }}
{% endfor %}
user={{ neutron_system_user_name }}