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.10.x
VMware Cloud Foundation 3.9.x
VMware Cloud Foundation 4.x
VMware Cloud Foundation 3.8.x
VMware Cloud Foundation 5.2.1

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
  2. Refine search to "Downloaded" only
  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 VM and change to the root user: su
  6. From the command line, issue the following command using the bundle id you got in step 3

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

 

Notes:

Additional Information

Impact/Risks:
  • If you delete a bundle that is needed for future upgrade or install, you will need to redownload.
  • 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.