
This patch removes the conditional check `om_enable_queue_manager` for `oslo_concurrency` as it was inconsistently applied across services and is actually unrelated to the queue manager. Simply said somewhere the conditional was present and somewhere it wasn't. While `oslo.concurrency` itself does not require a specific path, the implementation of the queue manager expects locks to be placed under `/var/lib/<service>/tmp`, making it necessary to define this path explicitly. Therefore, the lock path is set accordingly across all services, regardless of whether the queue manager is used. Additionally, this patch adds missing `lock_path` configurations where they were absent to ensure uniformity. Change-Id: I93bbaa61b2d8b5cb0d1a11783086b37a860173b6
47 lines
1.4 KiB
Django/Jinja
47 lines
1.4 KiB
Django/Jinja
[DEFAULT]
|
|
debug = {{ masakari_logging_debug }}
|
|
log_dir = /var/log/kolla/masakari
|
|
|
|
[api]
|
|
region = {{ openstack_region_name }}
|
|
auth_url = {{ keystone_internal_url }}
|
|
user_domain_id = {{ default_user_domain_id }}
|
|
project_name = service
|
|
project_domain_id = {{ default_project_domain_id }}
|
|
username = {{ masakari_keystone_user }}
|
|
password = {{ masakari_keystone_password }}
|
|
cafile = {{ openstack_cacert }}
|
|
api_interface = internal
|
|
|
|
{% if service_name == 'masakari-instancemonitor' %}
|
|
[libvirt]
|
|
connection_uri = "qemu+tcp://{{ migration_interface_address | put_address_in_context('url') }}/system"
|
|
{% endif %}
|
|
|
|
{% if service_name == 'masakari-hostmonitor' %}
|
|
[host]
|
|
{#
|
|
NOTE(yoctozepto): ``restrict_to_remotes`` is due to being unable to monitor
|
|
both types at once and Kolla has remotes on dedicated computes so it is
|
|
a better default choice.
|
|
This limitation may be lifted in the near future (Xena+).
|
|
#}
|
|
restrict_to_remotes = True
|
|
{#
|
|
NOTE(yoctozepto): ``disable_ipmi_check`` is due to ``restrict_to_remotes``
|
|
above.
|
|
See https://bugs.launchpad.net/masakari-monitors/+bug/1933203
|
|
#}
|
|
disable_ipmi_check = True
|
|
{% if inventory_hostname in groups['hacluster'] %}
|
|
pacemaker_node_type = cluster
|
|
corosync_multicast_interfaces = {{ api_interface }}
|
|
corosync_multicast_ports = {{ hacluster_corosync_port }}
|
|
{% elif inventory_hostname in groups['hacluster-remote'] %}
|
|
pacemaker_node_type = remote
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
[oslo_concurrency]
|
|
lock_path = /var/lib/masakari/tmp
|