Rabbit: Be more verbose in test logs
This PS increases the feedback give by the rabbitmq test pod Change-Id: If8aa713017eccaf100c6186cd569a6a0f4b021e9 Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
parent
69cf377fd6
commit
939923db64
@ -31,6 +31,7 @@ RABBITMQ_ADMIN_PASSWORD=`echo $RABBITMQ_ADMIN_CONNECTION | awk -F'[@]' '{print $
|
|||||||
| awk -F'[//:]' '{print $5}'`
|
| awk -F'[//:]' '{print $5}'`
|
||||||
|
|
||||||
function rabbit_find_paritions () {
|
function rabbit_find_paritions () {
|
||||||
|
echo "Checking cluster partitions"
|
||||||
PARTITIONS=$(rabbitmqadmin \
|
PARTITIONS=$(rabbitmqadmin \
|
||||||
--host="${RABBIT_HOSTNAME}" \
|
--host="${RABBIT_HOSTNAME}" \
|
||||||
--port="${RABBIT_PORT}" \
|
--port="${RABBIT_PORT}" \
|
||||||
@ -54,7 +55,7 @@ for num, node in enumerate(obj):
|
|||||||
rabbit_find_paritions
|
rabbit_find_paritions
|
||||||
|
|
||||||
function rabbit_check_users_match () {
|
function rabbit_check_users_match () {
|
||||||
# Check users match on all nodes
|
echo "Checking users match on all nodes"
|
||||||
NODES=$(rabbitmqadmin \
|
NODES=$(rabbitmqadmin \
|
||||||
--host="${RABBIT_HOSTNAME}" \
|
--host="${RABBIT_HOSTNAME}" \
|
||||||
--port="${RABBIT_PORT}" \
|
--port="${RABBIT_PORT}" \
|
||||||
@ -62,7 +63,9 @@ function rabbit_check_users_match () {
|
|||||||
--password="${RABBITMQ_ADMIN_PASSWORD}" \
|
--password="${RABBITMQ_ADMIN_PASSWORD}" \
|
||||||
list nodes -f bash)
|
list nodes -f bash)
|
||||||
USER_LIST=$(mktemp --directory)
|
USER_LIST=$(mktemp --directory)
|
||||||
|
echo "Found the following nodes: ${NODES}"
|
||||||
for NODE in ${NODES}; do
|
for NODE in ${NODES}; do
|
||||||
|
echo "Checking Node: ${NODE#*@}"
|
||||||
rabbitmqadmin \
|
rabbitmqadmin \
|
||||||
--host=${NODE#*@} \
|
--host=${NODE#*@} \
|
||||||
--port="${RABBIT_PORT}" \
|
--port="${RABBIT_PORT}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user