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>
Reviewed: https:/ /review. openstack. org/531352 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=1cfecc39dc3 7a01bbaea114773 397c062367ae42
Committed: https:/
Submitter: Zuul
Branch: master
commit 1cfecc39dc37a01 bbaea114773397c 062367ae42
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
Co-Authored-By: John Eckersberg <email address hidden>