How to remove references to ESXi 6.5 EP5 from the VMware Cloud Foundation LCM inventory
search cancel

How to remove references to ESXi 6.5 EP5 from the VMware Cloud Foundation LCM inventory

book

Article ID: 301156

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

This article provides instructions and a script to remove references to the ESXi 6.5 EP5 patch bundle from the VMware Cloud Foundation LCM inventory.

Resolution

Note: Only complete these steps if the ESXi 6.5 EP5 patch bundle is present on the Lifecycle-->Repository page in the SDDC Manager UI. This patch bundle can be easily identified by having the Product Version 2.2.1.1 and Bundle ID: 4e412dcc-5606-490f-a886-713c6454b905. 
  1. Download the attached 52402_bundle_cleanup.zip file. Once downloaded, extract the bundle_cleanup.py script from the zip file.
  2. Use a file transfer utility to copy the extracted bundle_cleanup.py file to the /tmp folder on the SDDC Manager Controller virtual machine as the root user.
  3. SSH to the SDDC Manager Controller virtual machine as the root user.
  4. Issue the following commands to modify the ownership and permissions on the /tmp/bundle_cleanup.py script:

chown vrack:vfabric /tmp/bundle_cleanup.py
chmod 0755 /tmp/bundle_cleanup.py

  1. Issue the following commands to execute the uploaded script:
su - vrack
python /tmp/bundle_cleanup.py

Note: Output will be logged to the screen and to /home/vrack/bundle_cleanup.log.


Additional Information

It is possible that a recalled VMware Cloud Foundation 2.3.0 bundle manifest was downloaded while briefly available. If the download of this bundle was attempted after the bundle was recalled, the 2.3.0 bundle in question will be marked as "UNRETRYABLE". Any such bundles need to be removed from the LCM inventory using the following steps.

For each bundle that is marked "UNRETRYABLE":
  1. Find the bundle id by clicking on the "more" link for the bundle on the Lifecycle-->Repository page in the SDDC Manager UI.
  2. Execute commands similar to the following to remove reference to the offending bundle:
su - vrack
python /tmp/bundle_cleanup.py <bundle-id>

 


Attachments

52402_bundle_cleanup.zip get_app