Define lock directory for oslo_concurrency

With [1] it become required to define lock directory for oslo_concurrency
which was missing previously.

[1] https://review.opendev.org/c/openstack/os-brick/+/814139

Change-Id: Ibe3eb5d50f8e0904d73b93713dda2be0a6b38df7
(cherry picked from commit dc5845335d73d64c0a32a0b11a263b027ed1f300)
This commit is contained in:
Dmitriy Rabotyagov 2024-03-29 12:03:36 +01:00 committed by Dmitriy Rabotyagov
parent a5677359ab
commit 5452913487
2 changed files with 4 additions and 1 deletions

View File

@ -145,7 +145,7 @@
systemd_group_name: "{{ glance_system_group_name }}"
systemd_tempd_prefix: openstack
systemd_slice_name: glance
systemd_lock_path: /var/lock/glance
systemd_lock_path: /run/lock
systemd_CPUAccounting: true
systemd_BlockIOAccounting: true
systemd_MemoryAccounting: true

View File

@ -116,6 +116,9 @@ enabled = {{ glance_profiler_enabled }}
enable_proxy_headers_parsing = True
{% endif %}
[oslo_concurrency]
lock_path = {{ glance_use_uwsgi | ternary('/run/lock/' ~ glance_services['glance-api']['service_name'] ~ '/uwsgi', '/run/lock/glance') }}
{% if glance_cors_allowed_origin is not none %}
[cors]
allow_headers = origin,content-md5,x-image-meta-checksum,x-storage-token,accept-encoding,x-auth-token,x-identity-status,x-roles,x-service-catalog,x-user-id,x-tenant-id,x-openstack-request-id