HA: fix rabbitmq readiness check for rabbitmq-server 3.8
In HA profiles, we wait for rabbitmq application readiness by
parsing the output of "rabbitmqctl status". This breaks with
rabbitmq-server 3.8 which changed the output of that command.
Fix our check by using a "rabbitmqctl eval" and by relying on
a stable function call rather than parsing output. This
approach works for rabbitmq-server 3.6 to 3.8.
Change-Id: Id88d0aee74e4b26fd64bbc2da5d0c0fc4bbd6644
Co-Authored-By: Yatin Karel <email address hidden>
Closes-Bug: #1864962
(cherry picked from commit e60351ee09eed0217d52aa1bad80f8c02501f0fe)
Reviewed: https:/ /review. opendev. org/740307 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=207e6d621e5 055a62c557fb051 621f34c96c8e42
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 207e6d621e5055a 62c557fb051621f 34c96c8e42
Author: Damien Ciabrini <email address hidden>
Date: Thu Feb 27 12:35:32 2020 +0100
HA: fix rabbitmq readiness check for rabbitmq-server 3.8
In HA profiles, we wait for rabbitmq application readiness by
parsing the output of "rabbitmqctl status". This breaks with
rabbitmq-server 3.8 which changed the output of that command.
Fix our check by using a "rabbitmqctl eval" and by relying on
a stable function call rather than parsing output. This
approach works for rabbitmq-server 3.6 to 3.8.
Change-Id: Id88d0aee74e4b2 6fd64bbc2da5d0c 0fc4bbd6644 17d52aa1bad80f8 c02501f0fe)
Co-Authored-By: Yatin Karel <email address hidden>
Closes-Bug: #1864962
(cherry picked from commit e60351ee09eed02