Unable to delete expired licenses from Aria Suite Lifecycle
search cancel

Unable to delete expired licenses from Aria Suite Lifecycle

book

Article ID: 410208

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • When attempting to remove expired licenses from Aria Suite Lifecycle UI > Locker > Licenses : Expired Licenses > vertical ellipses : shows no 'Delete' option

Environment

Aria Suite Lifecycle 8.x 

Cause

  • Licenses left with stale references in  Aria Suite Lifecycle would prevent deletion. 
  • A license may not be deleted from the Aria Suite Lifecycle Locker when it still has an active reference. 
  • If the product licensing is updated directly on the product outside of Aria Suite Lifecycle and not synced with Aria Suite Lifecycle, then the references are left stale in  Aria Suite Lifecycle. 

Resolution

Ideally it is recommended to replace licenses on Aria Suite Lifecycle Managed products from the Aria Suite Lifecycle or if a replacement is performed directly on the product, then load the license into the Aria Suite Lifecycle's locker and trigger an inventory Sync for the product to update the inventory mapping in the Locker prior deleting the license from the product and there after the Aris Suite Lifecycle's locker. 

  1. Navigate to Aria Suite Lifecycle UI > Locker > Licenses
  2. Ensure the license to be deleted are not actively in use / referenced by any products.
  3. Click on on the vertical ellipses > Delete.

Workaround:

  • Ensure there is a valid snapshot taken for the vASL appliance prior the below change. 
  • Access the Swagger API:
    • Log in to your Aria Suite Lifecycle console. 
    • From the drop-down menu in the top right corner, select API to open the Swagger API documentation.
      This would ensure that the API page uses the API token generated by the currently logged in user session. 
       
    • Choose the private-internal API specification. 
  • Locate the License Controller:
    • Browse the available controllers in the Swagger UI to find the License or a related controller for managing licenses. 
  • Identify the License Entity
    • Locate the API Call: GET /lcm/locker/api/v2/licenses/alias/{alias}
       
    • Click on Try it out.
    • Enter the License Alias.
    • Validate the output and fetch the 'vmid' associated to the license. 
  • Identify the Delete Operation:
    • Look for the specific API method under the license controller that performs a delete operation. 
      Delete /lcm/locker/api/licenses/{vmid}
  • Invoke the API Endpoint:
    • Click on Try it out.
    • Enter the 'vmid' associated with the license, identified earlier
    • Submit the API call.
  • Validate the completion and refresh the  Aria Suite Lifecycle Locker UI and validate the License is no longer available. 

Additional Information

For the Aria Operations environment, if expired licenses reappear in the LCM locker after performing an inventory sync, refer to KB 411711 for the instructions to remove the stale entries from the aria Operations database.