Add support for [oslo_messaging_rabbit] enable_cancel_on_failover
Depends-on: https://review.opendev.org/928440 Change-Id: I4d8e37f5f6e02df7f405c555b6f1c8e0c01265f3
This commit is contained in:
parent
5fdb3a7a24
commit
90bf5ed359
@ -104,6 +104,11 @@
|
||||
# (Optional) Limit the number of memory bytes used by the quorum queue.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*rabbit_enable_cancel_on_failover*]
|
||||
# (Optional) Enable x-cancel-on-ha-failover flag so that rabbitmq server will
|
||||
# cancel and notify consumers when queue is down.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*kombu_ssl_ca_certs*]
|
||||
# (optional) SSL certification authority file (valid only if SSL enabled).
|
||||
# Defaults to $facts['os_service_default']
|
||||
@ -180,6 +185,7 @@ class designate(
|
||||
$rabbit_quorum_delivery_limit = $facts['os_service_default'],
|
||||
$rabbit_quorum_max_memory_length = $facts['os_service_default'],
|
||||
$rabbit_quorum_max_memory_bytes = $facts['os_service_default'],
|
||||
$rabbit_enable_cancel_on_failover = $facts['os_service_default'],
|
||||
$kombu_ssl_ca_certs = $facts['os_service_default'],
|
||||
$kombu_ssl_certfile = $facts['os_service_default'],
|
||||
$kombu_ssl_keyfile = $facts['os_service_default'],
|
||||
@ -230,6 +236,7 @@ class designate(
|
||||
rabbit_quorum_delivery_limit => $rabbit_quorum_delivery_limit,
|
||||
rabbit_quorum_max_memory_length => $rabbit_quorum_max_memory_length,
|
||||
rabbit_quorum_max_memory_bytes => $rabbit_quorum_max_memory_bytes,
|
||||
enable_cancel_on_failover => $rabbit_enable_cancel_on_failover,
|
||||
}
|
||||
|
||||
oslo::messaging::default { 'designate_config':
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new ``designate::rabbit_enable_cancel_on_failover`` parameter has been
|
||||
added.
|
@ -125,6 +125,7 @@ describe 'designate' do
|
||||
:rabbit_quorum_delivery_limit => '<SERVICE DEFAULT>',
|
||||
:rabbit_quorum_max_memory_length => '<SERVICE DEFAULT>',
|
||||
:rabbit_quorum_max_memory_bytes => '<SERVICE DEFAULT>',
|
||||
:enable_cancel_on_failover => '<SERVICE DEFAULT>',
|
||||
)
|
||||
end
|
||||
|
||||
@ -144,6 +145,7 @@ describe 'designate' do
|
||||
:rabbit_quorum_delivery_limit => 3,
|
||||
:rabbit_quorum_max_memory_length => 5,
|
||||
:rabbit_quorum_max_memory_bytes => 1073741824,
|
||||
:rabbit_enable_cancel_on_failover => false,
|
||||
:kombu_reconnect_delay => '1.0',
|
||||
:kombu_failover_strategy => 'shuffle',
|
||||
})
|
||||
@ -163,6 +165,7 @@ describe 'designate' do
|
||||
:rabbit_quorum_delivery_limit => 3,
|
||||
:rabbit_quorum_max_memory_length => 5,
|
||||
:rabbit_quorum_max_memory_bytes => 1073741824,
|
||||
:enable_cancel_on_failover => false,
|
||||
:kombu_reconnect_delay => '1.0',
|
||||
:kombu_failover_strategy => 'shuffle'
|
||||
) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user