You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"${RED}Failed precheck: The following must be enabled: om_enable_queue_manager, om_enable_rabbitmq_quorum_queues, om_enable_rabbitmq_transient_quorum_queue, om_enable_rabbitmq_stream_fanout"
32
+
exit 1
33
+
fi
34
+
fi
35
+
36
+
# Generate new config, stop services using rabbit, and reset rabbit state
37
+
kayobe overcloud service configuration generate --node-config-dir /etc/kolla --kolla-skip-tags rabbitmq-ha-precheck
38
+
kayobe kolla ansible run "stop --yes-i-really-really-mean-it" -kt $RABBITMQ_SERVICES_TO_RESTART
39
+
kayobe kolla ansible run rabbitmq-reset-state
40
+
41
+
if [[ !"$1"="--skip-checks" ]];then
42
+
# Fail if any queues still exist
43
+
sleep 20
44
+
# Note(mattcrees): We may the text grey here so the failed Ansible calls don't freak anyone out
45
+
CURRENTTERM=${TERM}
46
+
export TERM=xterm-mono
47
+
if ( kayobe overcloud host command run -l controllers -b --command "docker exec $RABBITMQ_CONTAINER_NAME rabbitmqctl list_queues name --silent | grep -v '^$'" );then
48
+
export TERM=${CURRENTTERM}
49
+
echo -e "${RED}Failed check: RabbitMQ has not stopped properly, queues still exist"
50
+
exit 1
51
+
fi
52
+
# Fail if any exchanges still exist (excluding those starting with 'amq.')
53
+
if ( kayobe overcloud host command run -l controllers -b --command "docker exec $RABBITMQ_CONTAINER_NAME rabbitmqctl list_exchanges name --silent | grep -v '^$' | grep -v '^amq.'" );then
54
+
export TERM=${CURRENTTERM}
55
+
echo -e "${RED}Failed check: RabbitMQ has not stopped properly, exchanges still exist"
56
+
exit 1
57
+
fi
58
+
export TERM=${CURRENTTERM}
59
+
fi
60
+
61
+
# Redeploy with quorum queues enabled
62
+
kayobe kolla ansible run deploy-containers -kt $RABBITMQ_SERVICES_TO_RESTART
63
+
64
+
if [[ !"$1"="--skip-checks" ]];then
65
+
sleep 20
66
+
# Assert that at least one quorum queue exists on each controller
0 commit comments