Merge "Refactor definition of lock path"

This commit is contained in:
Zuul 2021-12-01 19:51:06 +00:00 committed by Gerrit Code Review
commit 9200186888
4 changed files with 5 additions and 8 deletions

View File

@ -66,9 +66,10 @@ nova_system_group_name: nova
nova_system_shell: /bin/bash
nova_system_comment: nova system user
nova_system_home_folder: "/var/lib/{{ nova_system_user_name }}"
nova_system_slice_name: nova
nova_libvirt_save_path: "{{ nova_system_home_folder }}/save"
nova_lock_path: "/var/lock/nova"
nova_lock_dir: "{{ openstack_lock_dir | default('/run/lock') }}"
nova_management_address: "127.0.0.1"

View File

@ -211,8 +211,8 @@
systemd_user_name: "{{ nova_system_user_name }}"
systemd_group_name: "{{ nova_system_group_name }}"
systemd_tempd_prefix: openstack
systemd_slice_name: nova
systemd_lock_path: /var/lock/nova
systemd_slice_name: "{{ nova_system_slice_name }}"
systemd_lock_dir: "{{ nova_lock_dir }}"
systemd_CPUAccounting: true
systemd_BlockIOAccounting: true
systemd_MemoryAccounting: true

View File

@ -112,15 +112,11 @@
mode: "0750"
owner: "root"
group: "root"
- path: "/var/cache/nova"
- path: "{{ nova_system_home_folder }}"
- path: "{{ nova_system_home_folder }}/.ssh"
mode: "0700"
- path: "{{ nova_system_home_folder }}/cache/api"
- path: "{{ nova_system_home_folder }}/instances"
- path: "{{ nova_lock_path }}"
mode: "2755"
- path: "/var/run/nova"
tags:
- nova-dirs

View File

@ -209,7 +209,7 @@ pool_timeout = {{ nova_api_db_pool_timeout }}
{% endif %}
[oslo_concurrency]
lock_path = {{ nova_lock_path }}
lock_path = {{ nova_lock_dir }}/{{ nova_system_slice_name }}
{% if nova_virt_type == 'ironic' %}