"Update is not staged" or "Error copying packages" while patching VC
search cancel

"Update is not staged" or "Error copying packages" while patching VC

book

Article ID: 406285

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • While trying to patch the vCenter, staging was failing with the error “Error copying packages”
  • Multiple RPMs will be having checksum errors as per  /var/log/vmware/applmgmt/update-microservice.log

      task_manager::                        update:  80 -    DEBUG - UpdateTask: status=RUNNING, progress=147, message={'id': 'com.vmware.appliance.plain_message', 'default_message': '%s', 'args': ['Downloading RPM wget-1.21.3-2.ph3.x86_64.rpm']}
YYYY-MM-DD HH-MM-SS,000 - 7052 -         rpmfunctions::               isChecksumValid: 356 -    ERROR - Checksum does not match, expected [c9cef###################], found [47f8###################]
YYYY-MM-DD HH-MM-SS,000 - 7052 -         rpmfunctions::                   downloadRpm: 642 -    ERROR - Checksum failed for RPM {wget-1.21.3-2.ph3.x86_64.rpm}
YYYY-MM-DD HH-MM-SS,000 - 7052 -           update_b2b::                 _copyPackages:1032 -    DEBUG - Download/Checksum failed for wget-1.21.3-2.ph3.x86_64.rpm. Will attempt a retry for this rpm.
YYYY-MM-DD HH-MM-SS,000 - 7052 -           update_b2b::                 _copyPackages:1017 -    DEBUG - Downloading RPM [xerces-c-3.2.5-1.ph3.x86_64.rpm] [dac###################]
YYYY-MM-DD HH-MM-SS,000 - 7052 -         rpmfunctions::               isChecksumValid: 356 -    ERROR - Checksum does not match, expected [dac###################], found [740d###################]
YYYY-MM-DD HH-MM-SS,000 - 7052 -         rpmfunctions::                   downloadRpm: 642 -    ERROR - Checksum failed for RPM {xerces-c-3.2.5-1.ph3.x86_64.rpm}
YYYY-MM-DD HH-MM-SS,000 - 7052 -           update_b2b::                 _copyPackages:1032 -    DEBUG - Download/Checksum failed for xerces-c-3.2.5-1.ph3.x86_64.rpm. Will attempt a retry for this rpm.
YYYY-MM-DD HH-MM-SS,000 - 7052 -           update_b2b::                 _copyPackages:1040 -    ERROR - RPM download failed after repeated attempts. Exception while copying packages
YYYY-MM-DD HH-MM-SS,000 - 7052 -     update_functions::                    unmountISO: 483 -    DEBUG - Unmounting ISO
YYYY-MM-DD HH-MM-SS,000 - 7052 -           update_b2b::                    stage_rpms:3095 -    ERROR - Returning from resume_download(). Exception: Exception('RPM download failed after repeated attempts. Exception while copying packages')
Traceback (most recent call last):
  File "/usr/lib/applmgmt/update/py/vmware/appliance/update/update_b2b.py", line 3074, in stage_rpms
    count = coroutine.send(1)
  File "/usr/lib/applmgmt/update/py/vmware/appliance/update/update_b2b.py", line 1075, in _stageFromIso
    yield coroutine.send(1)
  File "/usr/lib/applmgmt/update/py/vmware/appliance/update/update_b2b.py", line 1041, in _copyPackages
    raise Exception(emsg)
Exception: RPM download failed after repeated attempts. Exception while copying packages

  • As per /var/log/vmware/applmgmt/PatchRunner.log

YYYY-MM-DD HH-MM-SS,000 INFO vmware_b2b.patching.phases.discoverer Check if there is enough storage for RPM installation
YYYY-MM-DD HH-MM-SS,000 INFO vmware_b2b.patching.phases.discoverer RPM stage dir is /storage/core/software-update/updates/7.0.3.02400/patch_runner/../../../stage/stageDir.json
YYYY-MM-DD HH-MM-SS,000 INFO __main__ Discovery of vCSA patching components succeeded

Environment

VMware vCenter Server 7.x

VMware vCenter Server 8.x

Cause

Due to incomplete/corrupt downloads, the checksum value will be incorrect for the downloaded file as compared to the actual Patch-ISO available on Broadcom Support Portal

Resolution

  • Validate the checksum value of the ISO being used from a local machine while running below command:
    • From Windows machine , open command prompt and run the below 2 commands:
      1. To check the MD5 checksum

                                certutil -hashfile ISO_name MD5

                       2. To check the SHA256 checksum value

                                certutil -hashfile ISO_name SHA256

    • From Linux machine,open ssh or putty to linux or run from the terminal and run the below commands:
      1. To check the MD5 checksum

                                md5sum ISO_name >md5sums.txt

                       2. To check the SHA256 checksum value

                                sha256sum ISO_name >sha256sums.txt

  • Validate the checksum for the same version on Broadcom Support portal . The MD5 and checksum value for the ISO would be given along with the images as below.