Set lock_path for openstack services
The Oslo.messaging project implemented a nice feature called Queue Manager. This means that instead of using random queue names in RabbitMQ, it uses queue names composed of hostname, process-name and some integer. For proper functioning, the code using lockutils from oslo_concurrency and it's failing if lock_path is not set. This patch simply set lock_path of oslo_concurrency for services which can potentionally use Queue Manager. This is enabled when ``om_enable_queue_manager`` is set to ``True``. Queue Manager will be supported in a follow-up patch. Change-Id: Ided3b2bce03ea11fb34820fc40b4a3d694b8b44c
This commit is contained in:
parent
b4c8edf10f
commit
a944fad527
ansible/roles
aodh/templates
barbican/templates
blazar/templates
ceilometer/templates
cyborg/templates
heat/templates
ironic/templates
keystone/templates
masakari/templates
mistral/templates
octavia/templates
tacker/templates
trove/templates
venus/templates
@ -72,3 +72,8 @@ amqp_durable_queues = true
|
||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||
rabbit_quorum_queue = true
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/aodh/tmp
|
||||
{% endif %}
|
||||
|
@ -103,3 +103,8 @@ enable_proxy_headers_parsing = True
|
||||
[oslo_policy]
|
||||
policy_file = {{ barbican_policy_file }}
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/barbican/tmp
|
||||
{% endif %}
|
||||
|
@ -71,3 +71,8 @@ rabbit_quorum_queue = true
|
||||
[oslo_policy]
|
||||
policy_file = {{ blazar_policy_file }}
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/blazar/tmp
|
||||
{% endif %}
|
||||
|
@ -57,3 +57,8 @@ policy_file = {{ ceilometer_policy_file }}
|
||||
backend = oslo_cache.memcache_pool
|
||||
enabled = True
|
||||
memcache_servers = {% for host in groups['memcached'] %}{{ 'api' | kolla_address(host) | put_address_in_context('memcache') }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/ceilometer/tmp
|
||||
{% endif %}
|
||||
|
@ -81,3 +81,8 @@ amqp_durable_queues = true
|
||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||
rabbit_quorum_queue = true
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/cyborg/tmp
|
||||
{% endif %}
|
||||
|
@ -106,3 +106,8 @@ connection_string = {{ osprofiler_backend_connection_string }}
|
||||
|
||||
[volumes]
|
||||
backups_enabled = {{ enable_cinder_backup | bool }}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/heat/tmp
|
||||
{% endif %}
|
||||
|
@ -218,3 +218,8 @@ enable_proxy_headers_parsing = True
|
||||
[dhcp]
|
||||
dhcp_provider = none
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/ironic/tmp
|
||||
{% endif %}
|
||||
|
@ -99,3 +99,8 @@ remote_id_attribute = {{ keystone_remote_id_attribute_oidc }}
|
||||
[auth]
|
||||
methods = password,token,openid,application_credential
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/keystone/tmp
|
||||
{% endif %}
|
||||
|
@ -84,3 +84,8 @@ backend_url = {{ redis_connection_string }}
|
||||
backend_url = etcd3+{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ etcd_client_port }}?api_version=v3{% if openstack_cacert %}?ca_cert={{ openstack_cacert }}{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/masakari/tmp
|
||||
{% endif %}
|
||||
|
@ -100,3 +100,8 @@ connection_string = {{ osprofiler_backend_connection_string }}
|
||||
|
||||
[coordination]
|
||||
backend_url = {{ redis_connection_string }}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/mistral/tmp
|
||||
{% endif %}
|
||||
|
@ -163,3 +163,8 @@ jobboard_backend_password = "{{ redis_master_password }}"
|
||||
jobboard_backend_port = "{{ redis_port }}"
|
||||
jobboard_backend_hosts = {% for host in groups['redis'] %}{{ 'api' | kolla_address(host) | put_address_in_context('url') }}{% if not loop.last %},{% endif %}{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/octavia/tmp
|
||||
{% endif %}
|
||||
|
@ -88,3 +88,8 @@ policy_file = {{ tacker_policy_file }}
|
||||
|
||||
[glance_store]
|
||||
filesystem_store_datadir = /var/lib/tacker/csar_files
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/tacker/tmp
|
||||
{% endif %}
|
||||
|
@ -99,3 +99,8 @@ connection_string = {{ osprofiler_backend_connection_string }}
|
||||
[oslo_policy]
|
||||
policy_file = {{ trove_policy_file }}
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/trove/tmp
|
||||
{% endif %}
|
||||
|
@ -33,3 +33,8 @@ memcached_servers = {% for host in groups['memcached'] %}{{ 'api' | kolla_addres
|
||||
[elasticsearch]
|
||||
url = {{ opensearch_internal_endpoint }}
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_queue_manager | bool %}
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/venus/tmp
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user