Skip to content

Commit c582b99

Browse files
committed
Reduce network interruption of quorum migration
We can reduce the potential network connectivity interruption caused by quorum migration by stopping Keystone and Neutron last and starting them first, at the expense of longer API downtime (because each kayobe invocation first generates configuration).
1 parent 3e35c51 commit c582b99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/rabbitmq-quorum-migration.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
set -ex
44

5-
RABBITMQ_SERVICES_TO_RESTART=barbican,blazar,cinder,cloudkitty,designate,heat,ironic,keystone,magnum,manila,neutron,nova,octavia
5+
RABBITMQ_CRITICAL_SERVICES_TO_RESTART=keystone,neutron
6+
RABBITMQ_SERVICES_TO_RESTART=barbican,blazar,cinder,cloudkitty,designate,heat,ironic,magnum,manila,nova,octavia
67
RABBITMQ_CONTAINER_NAME=rabbitmq
78

89
if [[ ! $KAYOBE_CONFIG_PATH ]]; then
@@ -30,6 +31,7 @@ fi
3031
# Generate new config, stop services using rabbit, and reset rabbit state
3132
kayobe overcloud service configuration generate --node-config-dir /etc/kolla --kolla-skip-tags rabbitmq-ha-precheck
3233
kayobe kolla ansible run "stop --yes-i-really-really-mean-it" -kt $RABBITMQ_SERVICES_TO_RESTART
34+
kayobe kolla ansible run "stop --yes-i-really-really-mean-it" -kt $RABBITMQ_CRITICAL_SERVICES_TO_RESTART
3335
kayobe kolla ansible run rabbitmq-reset-state
3436

3537
if [[ ! "$1" = "--skip-checks" ]]; then
@@ -47,6 +49,7 @@ if [[ ! "$1" = "--skip-checks" ]]; then
4749
fi
4850

4951
# Redeploy with quorum queues enabled
52+
kayobe kolla ansible run deploy-containers -kt $RABBITMQ_CRITICAL_SERVICES_TO_RESTART
5053
kayobe kolla ansible run deploy-containers -kt $RABBITMQ_SERVICES_TO_RESTART
5154

5255
if [[ ! "$1" = "--skip-checks" ]]; then

0 commit comments

Comments
 (0)