Explicitly set the value of heartbeat_in_pthread
The ``[oslo_messaging_rabbit] heartbeat_in_pthread`` config option is set to ``true`` for wsgi applications to allow the RabbitMQ heartbeats to function. For non-wsgi applications it is set to ``false`` as it may otherwise break the service [1]. [1] https://docs.openstack.org/releasenotes/oslo.messaging/zed.html#upgrade-notes Change-Id: Id89bd6158aff42d59040674308a8672c358ccb3c
This commit is contained in:
parent
62f3c62bb3
commit
8b8b4a8217
@ -60,8 +60,9 @@ topics = {{ aodh_enabled_notification_topics | map(attribute='name') | join(',')
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = {{ service_name == 'aodh-api' }}
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -78,8 +78,9 @@ topics = {{ barbican_enabled_notification_topics | map(attribute='name') | join(
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -53,8 +53,9 @@ topics = {{ blazar_enabled_notification_topics | map(attribute='name') | join(',
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -35,8 +35,9 @@ ca_file = /etc/ceilometer/vmware_ca
|
||||
[oslo_messaging_notifications]
|
||||
transport_url = {{ notify_transport_url }}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -65,8 +65,9 @@ topics = {{ cinder_enabled_notification_topics | map(attribute='name') | join(',
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = {{ service_name == 'cinder-api' }}
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -44,8 +44,9 @@ lock_path = /var/lib/cloudkitty/tmp
|
||||
policy_file = {{ cloudkitty_policy_file }}
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = {{ service_name == 'cloudkitty-api' }}
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -57,8 +57,9 @@ topics = {{ cyborg_enabled_notification_topics | map(attribute='name') | join(',
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -92,8 +92,9 @@ topics = {{ designate_enabled_notification_topics | map(attribute='name') | join
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -120,8 +120,9 @@ topics = {{ glance_enabled_notification_topics | map(attribute='name') | join(',
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -72,8 +72,9 @@ topics = {{ heat_enabled_notification_topics | map(attribute='name') | join(',')
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = {{ service_name == 'heat-api' or service_name == 'heat-api-cfn' }}
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -12,8 +12,9 @@ transport_url = {{ rpc_transport_url }}
|
||||
[oslo_messaging_notifications]
|
||||
transport_url = {{ notify_transport_url }}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = true
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -27,8 +27,9 @@ topics = {{ ironic_enabled_notification_topics | map(attribute='name') | join(',
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = {{ service_name == 'ironic-api' }}
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -59,8 +59,9 @@ topics = {{ keystone_enabled_notification_topics | map(attribute='name') | join(
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = {{ service_name == 'keystone' }}
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -126,8 +126,9 @@ topics = {{ magnum_enabled_notification_topics | map(attribute='name') | join(',
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -56,8 +56,9 @@ topics = {{ manila_enabled_notification_topics | map(attribute='name') | join(',
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -50,8 +50,9 @@ topics = notifications
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = {{ service_name == 'masakari-api' }}
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -72,8 +72,9 @@ topics = {{ mistral_enabled_notification_topics | map(attribute='name') | join('
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -61,8 +61,9 @@ topics = {{ murano_enabled_notification_topics | map(attribute='name') | join(',
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -137,8 +137,9 @@ topics = {{ neutron_enabled_notification_topics | map(attribute='name') | join('
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -184,8 +184,9 @@ topics = {{ nova_enabled_notification_topics | map(attribute='name') | join(',')
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -138,8 +138,9 @@ topics = {{ nova_enabled_notification_topics | map(attribute='name') | join(',')
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = {{ service_name == 'nova-api' }}
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -122,8 +122,9 @@ rpc_thread_pool_size = 2
|
||||
[oslo_messaging_notifications]
|
||||
transport_url = {{ notify_transport_url }}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = {{ service_name == 'octavia-api' }}
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -40,8 +40,9 @@ topics = {{ sahara_enabled_notification_topics | map(attribute='name') | join(',
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -68,8 +68,9 @@ topics = {{ senlin_enabled_notification_topics | map(attribute='name') | join(',
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -67,8 +67,9 @@ memcached_servers = {% for host in groups['memcached'] %}{{ 'api' | kolla_addres
|
||||
[oslo_messaging_notifications]
|
||||
transport_url = {{ notify_transport_url }}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -68,8 +68,9 @@ topics = {{ tacker_enabled_notification_topics | map(attribute='name') | join(',
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -71,8 +71,9 @@ topics = {{ trove_enabled_notification_topics | map(attribute='name') | join(','
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -69,8 +69,9 @@ topics = {{ vitrage_enabled_notification_topics | map(attribute='name') | join('
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = {{ service_name == 'vitrage-api' }}
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -59,8 +59,9 @@ topics = {{ watcher_enabled_notification_topics | map(attribute='name') | join('
|
||||
driver = noop
|
||||
{% endif %}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = false
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -124,8 +124,9 @@ docker_remote_api_port = 2375
|
||||
[cni_daemon]
|
||||
cni_daemon_port = {{ zun_cni_daemon_port }}
|
||||
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
[oslo_messaging_rabbit]
|
||||
heartbeat_in_pthread = {{ service_name == 'zun-api' }}
|
||||
{% if om_enable_rabbitmq_tls | bool %}
|
||||
ssl = true
|
||||
ssl_ca_file = {{ om_rabbitmq_cacert }}
|
||||
{% endif %}
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
The value of ``[oslo_messaging_rabbit] heartbeat_in_pthread`` is explicitly
|
||||
set to either ``true`` for wsgi applications, or ``false`` otherwise.
|
Loading…
Reference in New Issue
Block a user