Fix rabbitmq-ready check for single node HA deployments
The current rabbitmq-ready exec waits for rabbitmq to become clustered
before it allows user creation. Unfortunately this doesn't work when
the deployment contains a single node, because rabbit doesn't trigger
the clustering mode at all.
Set the exec test according to the number of rabbit nodes, in order
to check for cluster state only when necessary.
Closes-Bug: #1741345
Change-Id: I24e5e344b7f657ce5d42a7c7c45be7b5ed5e6445
Co-Authored-By: John Eckersberg <email address hidden>
(cherry picked from commit 1cfecc39dc37a01bbaea114773397c062367ae42)
Reviewed: https:/ /review. openstack. org/531448 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=958f824c85b f5c97ce4068ed63 d976791ac3ed63
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 958f824c85bf5c9 7ce4068ed63d976 791ac3ed63
Author: Damien Ciabrini <email address hidden>
Date: Fri Jan 5 09:50:17 2018 +0000
Fix rabbitmq-ready check for single node HA deployments
The current rabbitmq-ready exec waits for rabbitmq to become clustered
before it allows user creation. Unfortunately this doesn't work when
the deployment contains a single node, because rabbit doesn't trigger
the clustering mode at all.
Set the exec test according to the number of rabbit nodes, in order
to check for cluster state only when necessary.
Closes-Bug: #1741345
Change-Id: I24e5e344b7f657 ce5d42a7c7c45be 7b5ed5e6445 bbaea114773397c 062367ae42)
Co-Authored-By: John Eckersberg <email address hidden>
(cherry picked from commit 1cfecc39dc37a01