vmware / vic-product

vSphere Integrated Containers enables VMware customers to deliver a production-ready container solution to their developers and DevOps teams.
https://vmware.github.io/vic-product/
Other
177 stars 92 forks source link

VIC appliance upgrade from VIC 1.5.5 to VIC 1.5.6 fails with error: "Detected old appliance's version as unknown" #2579

Closed jitinkumar2018 closed 4 years ago

jitinkumar2018 commented 4 years ago

Bug Report Basic Information

vCenter Server version: ob-16130882 Embedded or external PSC: Embedded Old Vic Build: v1.5.5-7767-a7161963.ova New Vic Build: https://storage.googleapis.com/vic-product-ova-builds/vic-v1.5.6-rc1-7812-b20709b8.ova How was the OVA deployed? ovftool Does the VIC appliance recieve configuration by DHCP? No What stage of the Appliance Lifecycle is the VIC appliance in? Upgrade

Bug Report Detailed Information What operation was being performed when the failure was noticed? VIC appliance upgrade from 1.5.5 to 1.5.6 RC1 using command line options

The upgrade script fails with the following details:

Starting upgrade 2020-08-26 21:16:07 +0000 UTC

Generating public/private rsa key pair.
Your identification has been saved in /root/.ssh/vic-appliance-automation-key.
Your public key has been saved in /root/.ssh/vic-appliance-automation-key.pub.
The key fingerprint is:
SHA256:jKChz6W7fPc5i+S83Hu1T7AzNkfCKHlMfdcoz0Xkit0 VIC Appliance Upgrade Automation Key
The key's randomart image is:
+---[RSA 4096]----+
|               .o|
|           .   +.|
|  . .     . o o =|
| . o . o + o B = |
|. . . . S + = * E|
| o o     o  .=   |
|  +   .    .*.o  |
| . ..=.o.....*   |
|  +o .*o*=   ..  |
+----[SHA256]-----+
2020-08-26 21:16:52 [=] Please enter the VIC appliance password for root@10.199.56.103
Warning: Permanently added '10.199.56.103' (ECDSA) to the list of known hosts.
##########################################################################
##  SSH access to the vSphere Integrated Containers Appliance can be    ##
##  used in exceptional cases that cannot be handled through standard   ##
##  remote management or CLI tools. This is primarily intended for use  ##
##  in break-fix scenarios, under the guidance of VMware GSS.           ##
##########################################################################
scp: /data/version: No such file or directory
scp: /data/admiral/configs/psc-config.properties: No such file or directory
##########################################################################
##  SSH access to the vSphere Integrated Containers Appliance can be    ##
##  used in exceptional cases that cannot be handled through standard   ##
##  remote management or CLI tools. This is primarily intended for use  ##
##  in break-fix scenarios, under the guidance of VMware GSS.           ##
##########################################################################
2020-08-26 21:17:01 [=]
2020-08-26 21:17:01 [=] Detected old appliance's version as unknown.
2020-08-26 21:17:01 [=] Upgrade from this version is not a supported upgrade path.
2020-08-26 21:17:01 [=] If the old appliance's version is not detected correctly, please contact VMware support.
2020-08-26 21:17:01 [=]
2020-08-26 21:17:01 [=] -------------------------
2020-08-26 21:17:01 [=] Upgrade failed.
2020-08-26 21:17:01 [=] Please save /var/log/vmware/upgrade.log and contact VMware support.
2020-08-26 21:17:01 [=] -------------------------
2020-08-26 21:17:01 [=]

Noticed that the supported versions available for VIC appliance upgrade in the /etc/vmware/upgrade/upgrade.sh of the new appliance are only:

# cat /etc/vmware/upgrade/upgrade.sh | grep 'appliance-version'
      [--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 or v1.5.4.

@renmaosheng @luwang-vmware