VMware Cloud Community
amirzadeh
Contributor
Contributor

Upgrading vSphere from 7.0.1.0300 to 7.0.2.000

Hi,

I tried to do the upgrade via the VMware Appliance Management, the pre-check and staging worked but the install failed at 60%.

Installation failed
Exception occurred in install precheck phase. 

I found this error in the logs: Error in method invocation [Errno 2] No such file or directory: '/storage/core/software-update/updates/index'  The directory does exist.

I unstagged the update and tried it on the command line to see if I can get a better error message.

I used the SSH Command prompt:

Command> software-packages install 
 [2021-03-27T20:41:47.086] : For the first instance of the identity domain, this is the password given to the Administrator account.  Otherwise, this is the password of the Administrator account of the replication partner.
Enter Single Sign-On administrator password: 

 [2021-03-27T20:41:51.086] : Validating software update payload
 [2021-03-27T20:41:51.086] : UpdateInfo: Using product version 7.0.1.00300 and build 17491101
 [2021-03-27 20:41:51,764] : Running validate script.....
 [2021-03-27T20:41:57.086] : Validation successful
 [2021-03-27 20:41:57,795] : Copying software packages  [2021-03-27T20:42:15.086] : Installation process failed
 [2021-03-27T20:42:15.086] : Package checksum verification failed.

 

Reply
0 Kudos
6 Replies
VMAKS
VMware Employee
VMware Employee

@amirzadeh

 

Thank you for your post on VMware Communities.

Check if you can access this URL from vCenter Server https://vapp-updates.vmware.com/
Run the below command to check if you are able to establish connection to the update manager repository:



/usr/bin/wget --no-check-certificate --connect-timeout 10 -P /tmp/ https://vapp-updates.vmware.com/vai-catalog/valm/vmw/8d167796-34d5-4899-be0a-6daade4005a3/7.0.2.0000...

/usr/bin/wget --no-check-certificate --connect-timeout 10 -P /tmp/ https://vapp-updates.vmware.com/vai-catalog/valm/vmw/8d167796-34d5-4899-be0a-6daade4005a3/7.0.2.0000... -e use_proxy=yes -e http_proxy=https://xxx:8080"



Note: xxx needs to be replaced with the proxy server details

If you are not able to connect to the repository, please check if there is any network issue.

 

You can also manually download the VCSA patch from my.vmware.com and patch through CLI following the below VMware KB:

https://kb.vmware.com/s/article/56510?lang=en_US

 

Arun Kumar

Install Upgrade Specialist

"Did you find this helpful? Let us know by completing this survey (takes 1 minute!)"

Regards,
Arun Kumar
Install Upgrade Specialist
"Did you find this helpful? Let us know by completing this survey (takes 1 minute!)
Reply
0 Kudos
amirzadeh
Contributor
Contributor

@VMAKSthanks for the notes.

The wget (no proxy) works fine, pulls the manifest and it's a valid XML file.

The link you provided to do the update seems to be for v6, and I need the v7 link?

I should mention that the steps in that KB to do the manual install is exactly what I followed which resulted in the error in the original post.  Via URL, rather than ISO.

command> software-packages stage --url
command> software-packages list --staged
command>
software-packages install --staged

Reply
0 Kudos
VMAKS
VMware Employee
VMware Employee

@amirzadeh

 

 

Thank you for all the information.

Please share the output of the command while patching the VCSA from CLI after running:

command> software-packages install --staged

 

Also please share Patchrunner.log available at /var/log/vmware/applmgmt for further investigation.

 

Arun Kumar

Install Upgrade Specialist

"Did you find this helpful? Let us know by completing this survey (takes 1 minute!)"

Regards,
Arun Kumar
Install Upgrade Specialist
"Did you find this helpful? Let us know by completing this survey (takes 1 minute!)
Reply
0 Kudos
asengupta1
Contributor
Contributor

I am seeing the same issue in 2 of my VCenters and its failing everytime on install Precheck . Any solution for this ? 

Reply
0 Kudos
amirzadeh
Contributor
Contributor

I was going to just post my previous attempts logs but decided to capture a fresh log so I reset the applmgr service and status and tried again

Lo and behold it worked this time. 

Here is the log:

Command> software-packages list --staged
[2021-04-05T21:35:28.095] :
category: Bugfix
kb: https://docs.vmware.com/en/VMware-vSphere/7.0/rn/vsphere-vcenter-server-702-release-notes.html
leaf_services: ['vmware-pod', 'vsphere-ui', 'wcp', 'vlcm']
vendor: VMware, Inc.
name: VC-7.0.2
size in MB: 5313
tags: []
changesetnumber: 8786438
version_supported: []
productname: VMware vCenter Server
releasedate: March 9, 2021
executeurl: https://my.vmware.com/group/vmware/get-download?downloadGroup=VC70U2
version: 7.0.2.00000
updateversion: True
allowedSourceVersions: [7.0.0.0,]
buildnumber: 17694817
rebootrequired: False
summary: {'id': 'patch.summary', 'translatable': 'In-place upgrade for vCenter appliances.', 'localized': 'In-place upgrade for vCenter appliances.'}
type: Update
severity: Critical
TPP_ISO: False
url: https://vapp-updates.vmware.com/vai-catalog/valm/vmw/8d167796-34d5-4899-be0a-6daade4005a3/7.0.0.1030...
thirdPartyAvailable: False
nonThirdPartyAvailable: True
thirdPartyInstallation: False
timeToInstall: 0
requiredDiskSpace: {'/storage/core': 5.785542793273925, '/storage/seat': 7.36015625}
eulaAcceptTime: 2021-04-05 21:32:58 UTC
Command> software-packages install --staged
[2021-04-05T21:36:25.095] : For the first instance of the identity domain, this is the password given to the Administrator account. Otherwise, this is the password of the Administrator account of the replication partner.
Enter Single Sign-On administrator password:

[2021-04-05T21:36:59.095] : Validating software update payload
[2021-04-05T21:36:59.095] : UpdateInfo: Using product version 7.0.1.00300 and build 17491101
[2021-04-05 21:36:59,462] : Running validate script.....
[2021-04-05T21:37:07.095] : Validation successful
[2021-04-05 21:37:07,500] : Copying software packages 150/150
[2021-04-05 21:42:16,579] : Running system-prepare script.....
[2021-04-05 21:42:24,617] : Running test transaction ....
[2021-04-05 21:42:29,662] : Running prepatch script.....
[2021-04-05 21:45:39,048] : Upgrading software packages ....
[2021-04-05T21:50:04.095] : Setting appliance version to 7.0.2.00000 build 17694817
[2021-04-05 21:50:04,826] : Running patch script.....
[2021-04-05 22:03:16,683] : Starting all services ....
[2021-04-05T22:03:18.095] : Services started.
[2021-04-05T22:03:18.095] : Installation process completed successfully

Reply
0 Kudos
amirzadeh
Contributor
Contributor

One thing I can suggest is if you can download the ISO and mount it to the vcenter.  That'll skip the download stage issue, that was going to be my next attempt.

Reply
0 Kudos