@@ -20,16 +20,16 @@ if [[ ! "$1" = "--skip-checks" ]]; then
2020 exit 1
2121 fi
2222 kayobe overcloud service configuration generate --node-config-dir /tmp/rabbit-migration --kolla-tags none
23- # Fail if HA is set or Quorum is not
23+ # Fail if HA is set or quorum is not
2424 if ! grep ' om_enable_rabbitmq_quorum_queues: true' $KOLLA_CONFIG_PATH /globals.yml || grep ' om_enable_rabbitmq_high_availability: true' $KOLLA_CONFIG_PATH /globals.yml; then
2525 echo " Failed precheck: om_enable_rabbitmq_quorum_queues must be enabled, om_enable_rabbitmq_high_availability must be disabled"
2626 exit 1
2727 fi
2828fi
2929
3030# Generate new config, stop services using rabbit, and reset rabbit state
31- kayobe overcloud service configuration generate --node-config-dir /etc/kolla --kolla-skip-tags rabbitmq-ha-precheck &&
32- kayobe kolla ansible run " stop --yes-i-really-really-mean-it" -kt $RABBITMQ_SERVICES_TO_RESTART &&
31+ kayobe overcloud service configuration generate --node-config-dir /etc/kolla --kolla-skip-tags rabbitmq-ha-precheck
32+ kayobe kolla ansible run " stop --yes-i-really-really-mean-it" -kt $RABBITMQ_SERVICES_TO_RESTART
3333kayobe kolla ansible run rabbitmq-reset-state
3434
3535if [[ ! " $1 " = " --skip-checks" ]]; then
@@ -46,7 +46,7 @@ if [[ ! "$1" = "--skip-checks" ]]; then
4646 fi
4747fi
4848
49- # Redeploy with Quorum Queues enabled
49+ # Redeploy with quorum queues enabled
5050kayobe kolla ansible run deploy-containers -kt $RABBITMQ_SERVICES_TO_RESTART
5151
5252if [[ ! " $1 " = " --skip-checks" ]]; then
@@ -55,6 +55,6 @@ if [[ ! "$1" = "--skip-checks" ]]; then
5555 if kayobe overcloud host command run -l controllers -b --command " docker exec $RABBITMQ_CONTAINER_NAME rabbitmqctl list_queues type | grep quorum" ; then
5656 echo " Queues migrated successfully"
5757 else
58- echo " Failed post-check: A controller does not have any Quorum queues"
58+ echo " Failed post-check: A controller does not have any quorum queues"
5959 fi
6060fi
0 commit comments