Skip to content

Commit

Permalink
Add --may-exist parameter to addition of ts
Browse files Browse the repository at this point in the history
Without --may-exist, ovn-ic-nbctl ts-add ts1 could return error
and doesn't execute the following steps of function.

Signed-off-by: Lucas Vargas Dias <lucas.vdias@luizalabs.com>
  • Loading branch information
Lucas Vargas Dias committed Nov 28, 2024
1 parent 16f6fe5 commit 6696188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion image/cinc/install_fedora_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ systemctl mask \
systemd-udevd.service \
systemd-vconsole-setup.service

dnf -y install --skip-broken \
dnf -y --skip-broken install \
autoconf \
automake \
conntrack-tools \
Expand Down
2 changes: 1 addition & 1 deletion ovn_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ EOF
chmod 0755 ${FAKENODE_MNT_DIR}/create_ovn_res.sh

# add ts transit switch.
${RUNC_CMD} exec ${CENTRAL_IC_ID} ovn-ic-nbctl --may-exist ts-add ts1
${RUNC_CMD} exec ${CENTRAL_IC_ID} ovn-ic-nbctl ts-add ts1
# wait for ovn-ic to kick in
while sleep 2; do
${RUNC_CMD} exec ${CENTRAL_IC_ID} ovn-nbctl ls-list | grep -q ts1 && break
Expand Down

0 comments on commit 6696188

Please sign in to comment.