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"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"
29
+
exit 1
30
+
fi
31
+
fi
32
+
33
+
# Generate new config, stop services using rabbit, and reset rabbit state
34
+
kayobe overcloud service configuration generate --node-config-dir /etc/kolla --kolla-skip-tags rabbitmq-ha-precheck
35
+
kayobe kolla ansible run "stop --yes-i-really-really-mean-it" -kt $RABBITMQ_SERVICES_TO_RESTART
36
+
kayobe kolla ansible run rabbitmq-reset-state
37
+
38
+
if [[ !"$1"="--skip-checks" ]];then
39
+
# Fail if any queues still exist
40
+
sleep 20
41
+
if ( kayobe overcloud host command run -l controllers -b --command "docker exec $RABBITMQ_CONTAINER_NAME rabbitmqctl list_queues name --silent | grep -v '^$'" );then
42
+
echo"Failed check: RabbitMQ has not stopped properly, queues still exist"
43
+
exit 1
44
+
fi
45
+
# Fail if any exchanges still exist (excluding those starting with 'amq.')
46
+
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
47
+
echo"Failed check: RabbitMQ has not stopped properly, exchanges still exist"
48
+
exit 1
49
+
fi
50
+
fi
51
+
52
+
# Redeploy with quorum queues enabled
53
+
kayobe kolla ansible run deploy-containers -kt $RABBITMQ_SERVICES_TO_RESTART
54
+
55
+
if [[ !"$1"="--skip-checks" ]];then
56
+
sleep 20
57
+
# Assert that at least one quorum queue exists on each controller
0 commit comments