From 6696188bd9b6cb2ecf5507a74992b89e2b191836 Mon Sep 17 00:00:00 2001 From: Lucas Vargas Dias Date: Thu, 28 Nov 2024 13:15:43 -0300 Subject: [PATCH] Add --may-exist parameter to addition of ts 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 --- image/cinc/install_fedora_pkg.sh | 2 +- ovn_cluster.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/image/cinc/install_fedora_pkg.sh b/image/cinc/install_fedora_pkg.sh index 8023187..8381966 100755 --- a/image/cinc/install_fedora_pkg.sh +++ b/image/cinc/install_fedora_pkg.sh @@ -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 \ diff --git a/ovn_cluster.sh b/ovn_cluster.sh index 7376862..762e66a 100755 --- a/ovn_cluster.sh +++ b/ovn_cluster.sh @@ -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