From 030a5ac10ab1702192f0a86a0b84ce82b738941a Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Wed, 10 Sep 2025 14:28:05 +0100 Subject: [PATCH] Keep running designate_backend_bind9 on RMQ migration The container ``designate_backend_bind9`` is responsible for running named service inside. As this does not use RabbitMQ queues, we can avoid stopping it for having less disruption during RabbitMQ queue migration. --- tools/rabbitmq-queue-migration.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/rabbitmq-queue-migration.sh b/tools/rabbitmq-queue-migration.sh index d0f8023412..afb31f12c4 100755 --- a/tools/rabbitmq-queue-migration.sh +++ b/tools/rabbitmq-queue-migration.sh @@ -5,7 +5,7 @@ set -ex RED='\033[0;31m' GREEN='\033[0;32m' -RABBITMQ_SERVICES_TO_RESTART=barbican,blazar,cinder,cloudkitty,designate,heat,ironic,keystone,magnum,manila,neutron,nova,octavia +RABBITMQ_SERVICES_TO_RESTART=barbican,blazar,cinder,cloudkitty,heat,ironic,keystone,magnum,manila,neutron,nova,octavia # Stop Designate separately RABBITMQ_CONTAINER_NAME=rabbitmq if [[ ! $KAYOBE_CONFIG_PATH ]]; then @@ -36,6 +36,8 @@ fi # Generate new config, stop services using rabbit, and reset rabbit state kayobe overcloud service configuration generate --node-config-dir /etc/kolla --kolla-skip-tags rabbitmq-ha-precheck kayobe kolla ansible run "stop --yes-i-really-really-mean-it" -kt $RABBITMQ_SERVICES_TO_RESTART +# Stop Designate services except for ``designate_backend_bind`` containers +kayobe overcloud host command run -b -l controllers --command "set -o pipefail && systemctl list-units --all --type=service --no-legend --plain | grep -E kolla-designate | grep -E -v backend_bind9 | awk '{print \$NF}' | xargs systemctl stop" kayobe kolla ansible run rabbitmq-reset-state if [[ ! "$1" = "--skip-checks" ]]; then @@ -58,6 +60,9 @@ if [[ ! "$1" = "--skip-checks" ]]; then export TERM=${CURRENTTERM} fi +# Include designate services to kolla deployment +RABBITMQ_SERVICES_TO_RESTART=$RABBITMQ_SERVICES_TO_RESTART,designate + # Redeploy with all durable-type queues enabled kayobe kolla ansible run deploy-containers -kt $RABBITMQ_SERVICES_TO_RESTART