Skip to content

Commit

Permalink
Fix missing change name ovn central
Browse files Browse the repository at this point in the history
function start-ovn-ic must check if OVN_DB_CLUSTER is being used
to set CENTRAL_IC_ID name.
Running the following command, you will see the problem:
OS_BASE=ubuntu OS_IMAGE=docker.io/library/ubuntu:jammy ENABLE_SSL=no CENTRAL_COUNT=1 GW_COUNT=4 CHASSIS_COUNT=4 ./ovn_cluster.sh start

It creates ovn central with name ovn-central-az1, and function try to use ovn-central-az1-1

Signed-off-by: Lucas Vargas Dias <lucas.vdias@luizalabs.com>
  • Loading branch information
Lucas Vargas Dias committed Dec 11, 2024
1 parent cc53092 commit cbfd858
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ovn_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,11 @@ 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
if [ "$OVN_DB_CLUSTER" = "yes" ]; then
CENTRAL_IC_ID="${CENTRAL_NAMES[0]}"-1
else
CENTRAL_IC_ID="${CENTRAL_NAMES[0]}"
fi
fi

${RUNC_CMD} exec $CENTRAL_IC_ID ${OVNCTL_PATH} \
Expand Down

0 comments on commit cbfd858

Please sign in to comment.