Software Upgrade on VeloCloud Gateway is failing
search cancel

Software Upgrade on VeloCloud Gateway is failing

book

Article ID: 372667

calendar_today

Updated On:

Products

VMware VeloCloud SD-WAN

Issue/Introduction

While attempting a software upgrade on a VeloCloud Gateway (VCG), the following errors are seen and the upgrade fails.


2024-07-17 19:33:20,385 - UPGRADE - ERROR - Failed to locate upgrade package in /var/lib/velocloud/software_update/
2024-07-17 19:49:43,254 - UPGRADE - WARNING - Verification key does not exist: /var/lib/velocloud/software_update/keys/software.key
WARNING: failed to verify package identity. Proceed as untrusted [y/n] [n]: y
2024-07-17 19:49:45,812 - UPGRADE - WARNING - WARNING: installing untrusted package
2024-07-17 19:49:45,812 - UPGRADE - INFO - Loading manifest and extracting package content.
Traceback (most recent call last):
  File "/opt/vc/bin/vcg_software_update", line 645, in <module>
    main(args)
  File "/opt/vc/bin/vcg_software_update", line 627, in main
    run_upgrade(args)
  File "/opt/vc/bin/vcg_software_update", line 553, in run_upgrade
    package.extract(STAGINGFOLDER)
  File "/opt/vc/bin/vcg_software_update", line 389, in extract
    for m in tf.getmembers():
  File "/usr/lib/python3.6/tarfile.py", line 1763, in getmembers
    self._load()        # all members, we first have to
  File "/usr/lib/python3.6/tarfile.py", line 2360, in _load
    tarinfo = self.next()
  File "/usr/lib/python3.6/tarfile.py", line 2293, in next
    raise ReadError("unexpected end of data")
tarfile.ReadError: unexpected end of data

Cause

These errors generally indicate that the software image being used for the upgrade is incomplete or was corrupted during the transfer.

Resolution

Confirm the MD5 has of the downloaded software image.

Ensure the VM that is hosting the VCG has sufficient memory for the new software image.

This should allow the upgrade to complete as expected.