From 3653b953a4a6d4e28f0229f636e3d8fb1f437e6b Mon Sep 17 00:00:00 2001 From: Lorenzo Bianconi Date: Fri, 3 Jan 2025 16:18:31 +0100 Subject: [PATCH] ovn_cluster: Fix CENTRAL_IC_ID default value Set default value for CENTRAL_IC_ID to ${CENTRAL_NAMES[0]}. This patch fix the following error when CENTRAL_IC_ID is not provided by the user: Error: no container with name or ID "ovn-central-az1-1" found: no such container Tested-by: Aaron Conole Signed-off-by: Lorenzo Bianconi --- ovn_cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovn_cluster.sh b/ovn_cluster.sh index 7cf4cb9..b0922b3 100755 --- a/ovn_cluster.sh +++ b/ovn_cluster.sh @@ -516,7 +516,7 @@ function start-db-cluster() { function start-ovn-ic() { if [ "$OVN_START_IC_DBS" = "yes" ]; then if [ -z "$CENTRAL_IC_ID" ]; then - CENTRAL_IC_ID="${CENTRAL_NAMES[0]}"-1 + CENTRAL_IC_ID="${CENTRAL_NAMES[0]}" fi ${RUNC_CMD} exec $CENTRAL_IC_ID ${OVNCTL_PATH} \