diff --git a/openstack-helm-infra/centos/openstack-helm-infra.spec b/openstack-helm-infra/centos/openstack-helm-infra.spec index 23be46ee..5f44ec77 100644 --- a/openstack-helm-infra/centos/openstack-helm-infra.spec +++ b/openstack-helm-infra/centos/openstack-helm-infra.spec @@ -31,6 +31,7 @@ Patch19: 0019-Add-force_boot-command-to-rabbit-start-template.patch Patch20: 0020-Fix-tls-in-openstack-helm-infra.patch Patch21: 0021-Remove-mariadb-tls.patch Patch22: 0022-Remove-rabbitmq-tls.patch +Patch23: 0023-Update-RabbitMQ-probes.patch BuildRequires: helm BuildRequires: chartmuseum @@ -56,6 +57,7 @@ Openstack Helm Infra charts %patch20 -p1 %patch21 -p1 %patch22 -p1 +%patch23 -p1 %build # Host a server for the charts diff --git a/openstack-helm-infra/debian/deb_folder/patches/0023-Update-RabbitMQ-probes.patch b/openstack-helm-infra/debian/deb_folder/patches/0023-Update-RabbitMQ-probes.patch new file mode 100644 index 00000000..b148da1d --- /dev/null +++ b/openstack-helm-infra/debian/deb_folder/patches/0023-Update-RabbitMQ-probes.patch @@ -0,0 +1,70 @@ +From 3a76480c003dc6c1a522fba1c70278bad04930c2 Mon Sep 17 00:00:00 2001 +From: Roy Tang +Date: Fri, 13 Aug 2021 19:08:21 -0400 +Subject: [PATCH] Update RabbitMQ probes + +The current health check that is used for readiness and liveness +probes is considered intrusive and is prompt to produce false +positives[0]. The command is also deprecated and will be removed +in future version. Updating the probes based on current +recommenation from community[1]. + +Ref: +[0] https://www.rabbitmq.com/monitoring.html#deprecations +[1] https://www.rabbitmq.com/monitoring.html#health-checks + +Change-Id: I83750731150ff9a276f59e3c1288129581fceba5 +--- + rabbitmq/Chart.yaml | 2 +- + rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl | 3 +-- + rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl | 2 +- + releasenotes/notes/rabbitmq.yaml | 1 + + 4 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/rabbitmq/Chart.yaml b/rabbitmq/Chart.yaml +index 79b0daff..061ead2d 100644 +--- a/rabbitmq/Chart.yaml ++++ b/rabbitmq/Chart.yaml +@@ -15,6 +15,6 @@ apiVersion: v1 + appVersion: v3.7.26 + description: OpenStack-Helm RabbitMQ + name: rabbitmq +-version: 0.1.13 ++version: 0.1.14 + home: https://github.com/rabbitmq/rabbitmq-server + ... +diff --git a/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl b/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl +index 943209aa..d07626b2 100644 +--- a/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl ++++ b/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl +@@ -19,6 +19,5 @@ set -e + if [ -f /tmp/rabbit-disable-liveness-probe ]; then + exit 0 + else +- timeout 5 bash -c "true &>/dev/null +Date: Fri, 13 Aug 2021 19:08:21 -0400 +Subject: [PATCH] Update RabbitMQ probes + +The current health check that is used for readiness and liveness +probes is considered intrusive and is prompt to produce false +positives[0]. The command is also deprecated and will be removed +in future version. Updating the probes based on current +recommenation from community[1]. + +Ref: +[0] https://www.rabbitmq.com/monitoring.html#deprecations +[1] https://www.rabbitmq.com/monitoring.html#health-checks + +Change-Id: I83750731150ff9a276f59e3c1288129581fceba5 +--- + rabbitmq/Chart.yaml | 2 +- + rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl | 3 +-- + rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl | 2 +- + releasenotes/notes/rabbitmq.yaml | 1 + + 4 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/rabbitmq/Chart.yaml b/rabbitmq/Chart.yaml +index 79b0daff..061ead2d 100644 +--- a/rabbitmq/Chart.yaml ++++ b/rabbitmq/Chart.yaml +@@ -15,6 +15,6 @@ apiVersion: v1 + appVersion: v3.7.26 + description: OpenStack-Helm RabbitMQ + name: rabbitmq +-version: 0.1.13 ++version: 0.1.14 + home: https://github.com/rabbitmq/rabbitmq-server + ... +diff --git a/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl b/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl +index 943209aa..d07626b2 100644 +--- a/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl ++++ b/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl +@@ -19,6 +19,5 @@ set -e + if [ -f /tmp/rabbit-disable-liveness-probe ]; then + exit 0 + else +- timeout 5 bash -c "true &>/dev/null