Merge "Fix faulty precheck for RabbitMQ" into stable/xena

This commit is contained in:
Zuul 2023-04-28 19:14:03 +00:00 committed by Gerrit Code Review
commit 3ab62fe591
3 changed files with 12 additions and 0 deletions

View File

@ -111,3 +111,5 @@ rabbitmq_plugins:
enabled: "{{ rabbitmq_enable_prometheus_plugin | bool }}"
rabbitmq_enabled_plugins: "{{ rabbitmq_plugins | selectattr('enabled', 'equalto', true) | list }}"
kolla_externally_managed_cert: False

View File

@ -86,6 +86,7 @@
fail:
msg: No TLS certificate provided for RabbitMQ.
when:
- not kolla_externally_managed_cert | bool
- rabbitmq_enable_tls | bool
- cert | length == 0
@ -99,6 +100,7 @@
fail:
msg: No TLS key provided for RabbitMQ.
when:
- not kolla_externally_managed_cert | bool
- rabbitmq_enable_tls | bool
- key | length == 0
@ -177,6 +179,7 @@
fail:
msg: No TLS certificate provided for outward RabbitMQ.
when:
- not kolla_externally_managed_cert | bool
- enable_outward_rabbitmq | bool
- rabbitmq_enable_tls | bool
- cert | length == 0
@ -191,6 +194,7 @@
fail:
msg: No TLS key provided for outward RabbitMQ.
when:
- not kolla_externally_managed_cert | bool
- enable_outward_rabbitmq | bool
- rabbitmq_enable_tls | bool
- key | length == 0

View File

@ -0,0 +1,6 @@
---
fixes:
- |
The precheck for RabbitMQ failed incorrectly when
``kolla_externally_managed_cert`` was set to ``true``.
`LP#1999081 <https://bugs.launchpad.net/kolla-ansible/+bug/1999081>`__