Merge "Deprecate support for amqp1 driver"

This commit is contained in:
Zuul 2023-08-17 04:01:07 +00:00 committed by Gerrit Code Review
commit 6b1b5cb91c
4 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,6 @@
# == Define: oslo::messaging::amqp
#
# DEPRECATED !!
# Configure oslo_messaging_amqp options
#
# This resource configures Oslo messaging resources for an OpenStack service.

View File

@ -37,6 +37,10 @@ define oslo::messaging::default(
$control_exchange = $facts['os_service_default'],
) {
if $transport_url =~ 'amqp://.+' {
warning('amqp1 driver support has been deprecated, because the driver is deprecated.')
}
$default_options = {
'DEFAULT/executor_thread_pool_size' => { value => $executor_thread_pool_size },
'DEFAULT/rpc_response_timeout' => { value => $rpc_response_timeout },

View File

@ -33,6 +33,10 @@ define oslo::messaging::notifications(
$topics = $facts['os_service_default'],
) {
if $transport_url =~ 'amqp://.+' {
warning('amqp1 driver support has been deprecated, because the driver is deprecated.')
}
# When we have a string value for driver, we keep passing it as string
# to reduce any chance of breaking things in a backwards incompatible way
$driver_real = $driver ? {

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
Support for the amqp1 driver has been deprecated and will be removed in
a future release.