Skip to content

Commit 8da8f16

Browse files
committed
Fix RabbitMQ queue migration host command run
1 parent ce60192 commit 8da8f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/rabbitmq-queue-migration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fi
3737
kayobe overcloud service configuration generate --node-config-dir /etc/kolla --kolla-skip-tags rabbitmq-ha-precheck
3838
kayobe kolla ansible run "stop --yes-i-really-really-mean-it" -kt $RABBITMQ_SERVICES_TO_RESTART
3939
# Stop Designate services except for ``designate_backend_bind`` containers
40-
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"
40+
kayobe overcloud host command run -b -l controllers --command "systemctl list-units --all --type=service --no-legend --plain | awk '/kolla-designate/ && !/backend_bind9/ {print \$1}' | xargs -r systemctl stop || true"
4141
kayobe kolla ansible run rabbitmq-reset-state
4242

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

0 commit comments

Comments
 (0)