Define lock directory for oslo_concurrency

Change-Id: I79c12449542609381460a7a2a8153da3261bbfd3
This commit is contained in:
Dmitriy Rabotyagov 2024-05-10 15:35:25 +02:00
parent 58f36dadf9
commit 00528b2ad7
2 changed files with 4 additions and 1 deletions

View File

@ -149,7 +149,7 @@
systemd_group_name: "{{ blazar_system_group_name }}"
systemd_tempd_prefix: openstack
systemd_slice_name: blazar
systemd_lock_path: /var/lock/blazar
systemd_lock_dir: /run/lock/
systemd_service_cpu_accounting: true
systemd_service_block_io_accounting: true
systemd_service_memory_accounting: true

View File

@ -19,6 +19,9 @@ os_auth_version = v3
# oslo.messaging default transport
transport_url = {{ blazar_oslomsg_rpc_transport }}://{% for host in blazar_oslomsg_rpc_servers.split(',') %}{{ blazar_oslomsg_rpc_userid }}:{{ blazar_oslomsg_rpc_password }}@{{ host }}:{{ blazar_oslomsg_rpc_port }}{% if not loop.last %},{% else %}/{{ _blazar_oslomsg_rpc_vhost_conf }}{% if blazar_oslomsg_rpc_use_ssl | bool %}?ssl=1&ssl_version={{ blazar_oslomsg_rpc_ssl_version }}&ssl_ca_file={{ blazar_oslomsg_rpc_ssl_ca_file }}{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
[oslo_concurrency]
lock_path = /run/lock/{{ blazar_services['blazar-api']['service_name'] }}/uwsgi
{% if blazar_oslomsg_rpc_transport == 'rabbit' %}
[oslo_messaging_rabbit]
ssl = {{ blazar_oslomsg_notify_use_ssl | bool }}