Skip to content

Commit

Permalink
Support to upgrade vic appliance from 1.5.7 (#2602)
Browse files Browse the repository at this point in the history
  • Loading branch information
ading007 authored Jun 25, 2021
1 parent ccb42f7 commit bc07ce6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions installer/build/scripts/upgrade/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ VER_1_5_3="v1.5.3"
VER_1_5_4="v1.5.4"
VER_1_5_5="v1.5.5"
VER_1_5_6="v1.5.6"
VER_1_5_7="v1.5.7"

function usage {
echo -e "Usage: $0 [args...]
Expand All @@ -91,7 +92,7 @@ function usage {
[--appliance-username value]: Username of the old appliance. (Ignored if --manual-disks is specified.)
[--appliance-password value]: Password of the old appliance. (Ignored if --manual-disks is specified.)
[--appliance-target value]: IP Address of the old appliance. (Ignored if --manual-disks is specified.)
[--appliance-version value]: Version of the old appliance. v1.2.1, v1.3.0, v1.3.1, v1.4.0, v1.4.1, v1.4.2, v1.4.3, v1.4.4, v1.5.0 v1.5.1 v1.5.2 v1.5.3 v1.5.4 v1.5.5 or v1.5.6.
[--appliance-version value]: Version of the old appliance. v1.2.1, v1.3.0, v1.3.1, v1.4.0, v1.4.1, v1.4.2, v1.4.3, v1.4.4, v1.5.0 v1.5.1 v1.5.2 v1.5.3 v1.5.4 v1.5.5 v1.5.6 or v1.5.7.
[--destroy]: Destroy the old appliance after upgrade is finished. (Ignored if --manual-disks is specified.)
[--manual-disks]: Skip the automated govc disk migration.
Expand Down Expand Up @@ -241,7 +242,7 @@ function proceedWithUpgrade {
checkUpgradeStatus "VIC Appliance" ${appliance_upgrade_status}
local ver="$1"

if [ "$ver" == "$VER_1_2_1" ] || [ "$ver" == "$VER_1_3_0" ] || [ "$ver" == "$VER_1_3_1" ] || [ "$ver" == "$VER_1_4_0" ] || [ "$ver" == "$VER_1_4_1" ] || [ "$ver" == "$VER_1_4_2" ] || [ "$ver" == "$VER_1_4_3" ] || [ "$ver" == "$VER_1_4_4" ] || [ "$ver" == "$VER_1_5_0" ] || [ "$ver" == "$VER_1_5_1" ] || [ "$ver" == "$VER_1_5_2" ] || [ "$ver" == "$VER_1_5_3" ] || [ "$ver" == "$VER_1_5_4" ] || [ "$ver" == "$VER_1_5_5" ] || [ "$ver" == "$VER_1_5_6" ]; then
if [ "$ver" == "$VER_1_2_1" ] || [ "$ver" == "$VER_1_3_0" ] || [ "$ver" == "$VER_1_3_1" ] || [ "$ver" == "$VER_1_4_0" ] || [ "$ver" == "$VER_1_4_1" ] || [ "$ver" == "$VER_1_4_2" ] || [ "$ver" == "$VER_1_4_3" ] || [ "$ver" == "$VER_1_4_4" ] || [ "$ver" == "$VER_1_5_0" ] || [ "$ver" == "$VER_1_5_1" ] || [ "$ver" == "$VER_1_5_2" ] || [ "$ver" == "$VER_1_5_3" ] || [ "$ver" == "$VER_1_5_4" ] || [ "$ver" == "$VER_1_5_5" ] || [ "$ver" == "$VER_1_5_6" ] || [ "$ver" == "$VER_1_5_7" ]; then
log ""
log "Detected old appliance's version as $ver."

Expand Down
2 changes: 1 addition & 1 deletion installer/build/scripts/upgrade/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function getApplianceVersion() {
local VER_1_1_1="v1.1.1"
local VER_1_2_0="v1.2.0"
local VER_1_2_1="v1.2.1"
local VALID_VER=($VER_1_2_1 "v1.3.0" "v1.3.1" "v1.4.0" "v1.4.1" "v1.4.2" "v1.4.3" "v1.4.4" "v1.5.0" "v1.5.1" "v1.5.2" "v1.5.3" "v1.5.4" "v1.5.5" "v1.5.6")
local VALID_VER=($VER_1_2_1 "v1.3.0" "v1.3.1" "v1.4.0" "v1.4.1" "v1.4.2" "v1.4.3" "v1.4.4" "v1.5.0" "v1.5.1" "v1.5.2" "v1.5.3" "v1.5.4" "v1.5.5" "v1.5.6" "v1.5.7")
local COPIED_DIR="$1"
local ver=""
local tag=""
Expand Down

0 comments on commit bc07ce6

Please sign in to comment.