From 3c305bf6ae37bd26cda8545bb1a76302dc830dee Mon Sep 17 00:00:00 2001 From: Roman Safronov Date: Wed, 1 Sep 2021 17:56:43 +0300 Subject: [PATCH] Skip FIP check if VALIDATE_MIGRATION is not True OVN migration script fails when VALIDATE_MIGRATION is not set to True. oc_check_public_network should return successfully in case VALIDATE_MIGRATION is set to False. Closes bug: #1942344 Change-Id: Ibd0aea5b4e6bf44803d5d0100cacc17d401b03cc --- tools/ovn_migration/tripleo_environment/ovn_migration.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ovn_migration/tripleo_environment/ovn_migration.sh b/tools/ovn_migration/tripleo_environment/ovn_migration.sh index 76ccf71e266..0d9ce66ed35 100644 --- a/tools/ovn_migration/tripleo_environment/ovn_migration.sh +++ b/tools/ovn_migration/tripleo_environment/ovn_migration.sh @@ -219,6 +219,7 @@ function check_stack { oc_check_public_network() { + [ "$VALIDATE_MIGRATION" != "True" ] && return 0 source $OVERCLOUDRC_FILE openstack network show $PUBLIC_NETWORK_NAME 1>/dev/null || { echo "ERROR: PUBLIC_NETWORK_NAME=${PUBLIC_NETWORK_NAME} can't be accessed by the"