Fix tmpfiles.d when multiple service are running.

adding {{ neutron_lock_path }} for the neutron lock dir.

Change-Id: I661dd9da6b9a65be3266907e560703caa0a0d6af
This commit is contained in:
Marc Gariepy 2016-11-03 14:40:42 -04:00 committed by Jesse Pretorius (odyssey4me)
parent b62a312bf4
commit 1ee6c091f2
5 changed files with 8 additions and 6 deletions

View File

@ -63,6 +63,7 @@ neutron_lib_dir: "{{ neutron_bin | dirname }}/lib/python2.7/site-packages/"
# Set the Neutron configuration path
neutron_conf_dir: /etc/neutron
neutron_lock_path: "/var/lock/neutron"
# Enable/Disable designate
neutron_designate_enabled: False

View File

@ -29,10 +29,10 @@
group: "{{ system_group }}"
mode: "02755"
- name: Create tempfile.d entry
- name: Create tmpfiles.d entry
template:
src: "neutron-systemd-tempfiles.j2"
dest: "/etc/tmpfiles.d/neutron.conf"
src: "neutron-systemd-tmpfiles.j2"
dest: "/etc/tmpfiles.d/{{ program_name }}.conf"
mode: "0644"
owner: "root"
group: "root"

View File

@ -44,7 +44,7 @@
- { path: "{{ neutron_conf_dir }}/rootwrap.d", owner: "root", group: "root" }
- { path: "/etc/sudoers.d", mode: "0750", owner: "root", group: "root" }
- { path: "/var/cache/neutron" }
- { path: "/var/lock/neutron" }
- { path: "{{ neutron_lock_path }}" }
- { path: "/var/run/neutron" }
- { path: "{{ neutron_system_home_folder }}", mode: "0755" }
- { path: "{{ neutron_system_home_folder }}/ha_confs" }

View File

@ -2,3 +2,4 @@
D /var/lock/{{ program_name }} 2755 {{ system_user }} {{ system_group }}
D /var/run/{{ program_name }} 2755 {{ system_user }} {{ system_group }}
D {{ neutron_lock_path }} 2755 {{ system_user }} {{ system_group }}

View File

@ -197,4 +197,4 @@ transport_url = rabbit://{% for host in neutron_rabbitmq_telemetry_servers.split
# Concurrency (locking mechanisms)
[oslo_concurrency]
lock_path = /var/lock/neutron
lock_path = {{ neutron_lock_path }}