"Failed to import upgrade file", ESXi Custom ISO upgrade through VCF fails while importing package
search cancel

"Failed to import upgrade file", ESXi Custom ISO upgrade through VCF fails while importing package

book

Article ID: 330336

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

Symptoms:

  • ESXI Custom ISO upgrade through VCF fails when importing package.
  • In LCM logs we will see entries like 'Failed to import the upgrade file.'
/var/log/vmware/vcf/lcm/lcm.log
2020-07-23T04:19:13.461+0000 ERROR [83388a50d0988988,5078,upgradeId=########-####-####-####-########5f57,resourceType=ESX_HOST,resourceId=########-####-####-####-########c19d,bundleElementId=29218b17-7405-4a2f-8517-04
6807371ca0] [c.v.e.s.l.p.i.e.EsxVumUpdateStageRunnerImpl,ThreadPoolTaskExecutor-10] Failed to import upgrade file:
com.vmware.vim.binding.integrity.fault.HostUpgradeInvalidPackage: integrity.fault.HostUpgradeInvalidPackage.summary
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

 
  • VMware Update Manager (VUM) logs will report 'Error opening ISO image for reading'.
/var/log/vmware/vmware-updatemgr/vum-server/vmware-vum-server-log4cpp.log:
[2020-07-23 14:19:11:446 'HUProductMgr' 140567636440832 ERROR] [productMgrImpl, 412] Error while extracting file: UPGRADE/METADATA.XML from ISO, Error:Error opening ISO image for reading
[2020-07-23 14:19:11:448 'UpgradeImportTask.ImportRelease{27}' 140567636440832 ERROR] [upgradeImportTask, 83] ImportProduct failed with exception Fault cause: integrity.fault.HostUpgradeInvalidPackage
[2020-07-23 14:19:11:449 'UpgradeImportTask.ImportRelease{27}' 140567636440832 INFO] [vciTaskBase, 1354] SerializeToVimFault fault: (integrity.fault.HostUpgradeInvalidPackage) { faultCause = (vmodl.MethodFault) nu
ll, faultMessage = <unset> msg = "" } Converted fault: (vim.fault.ExtendedFault) { faultCause = (vmodl.MethodFault) null, faultMessage = <unset>, faultTypeId = "com.vmware.vcIntegrity.HostUpgradeInva
lidPackage", data = (vim.KeyValue) [ (vim.KeyValue) { key = "faultCause", value = "" }, (vim.KeyValue) { key = "faultMessage", value = "" } ] ms
g = "" }

 



Cause

This issue is caused due to lack of permissions on the image file.

Resolution

  • The permission on the directory where the ISO file is copied and the ISO file itself needs to have the right permission.
 
  • Change permissions on the directory where you copied the ISO. For example,

    chmod -R 775 /nfs/vmware/vcf/nfs-mount/esx-upgrade-partner-binaries/


Additional Information