How to clean up old/ installed bundles in SDDC manager using Bundle Cleanup Utility
search cancel

How to clean up old/ installed bundles in SDDC manager using Bundle Cleanup Utility

book

Article ID: 312173

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

This article provides instructions for removing old upgrade and install bundles to free up space on the NFS partition

  • Error :  LcmException: LCM crashed during bundle download in SDDC Manager under Bundle Management.

 

Environment

VMware Cloud Foundation 3.x
VMware Cloud Foundation 4.x
VMware Cloud Foundation 5.x

Resolution

Use the following steps to remove the bundle(s) to free up space

  1. Browse to bundle management section in the SDDC-Manager UI under Lifecycle management.
  2. Refine search to "Downloaded".
    Note : If the bundle has been used to update/upgrade a component, it will be available under "Download history"
  3. Open the older bundle that is to be deleted to get the bundle id for step 6
  4. Create a snapshot of the SDDC Manager VM
  5. SSH to the SDDC Manager as vcf user and elevate to the root user: su
  6. From the command line, issue the following command using the bundle id retrieved in step 3

python /opt/vmware/vcf/lcm/lcm-app/bin/bundle_cleanup.py <bundle id>

 

Notes:

Additional Information

Impact/Risks:
  • Bundles cleaned up using this utility will need to be download again in case required for upgrades.
  • Upgrade history will be removed after removing bundle from SDDC DB
  • LcmException: LCM crashed during bundle download -> This issue occurred because bundles in Failed and Pending state were there in SDDC DB. This can be validated from postgres-db-dump.