Skip to content

Commit

Permalink
ovn_cluster: Fix CENTRAL_IC_ID default value
Browse files Browse the repository at this point in the history
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 <aconole@redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
  • Loading branch information
LorenzoBianconi committed Jan 3, 2025
1 parent af24758 commit 3653b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ovn_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand Down

0 comments on commit 3653b95

Please sign in to comment.