Aria Automation 8.x: ensure that all deployment resources are deleted in full
search cancel

Aria Automation 8.x: ensure that all deployment resources are deleted in full

book

Article ID: 384907

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

  • When deleting a deployment fails and the user tries again to delete the deployment, Aria Automation offers an option “Ignore Delete Failures” to the User.
  • This causes leftover resources in the environment, which creates conflicts and leads to manual work to clean up everything.
  • Admins may want to prevent users from ignoring delete failures, or be informed if it has been used

Environment

VMware Aria Automation 8.x

Cause

This is the intended behaviour

  • This allows the user to clean up resources in Automation even if they can't be deleted on the cloud account
  • The value of ignoreDeleteFailures is not made available to the workflow, for example by binding variables or through the System.getContext() interface

Resolution

Workaround

It is possible to fetch "ignoreDeleteFailures" value using API calls:

GET  https://{AUTOMATION-FQDN}/blueprint/api/blueprint-requests/{requestId}

or for all requests together:

GET  https://{AUTOMATION-FQDN}/blueprint/api/blueprint-requests/

 

The API response looks like this, so you would just need to extract the ignoreDeleteFailures value from here:

{
    "id": "e3f85f28-1234-48ca-abcd-226d599db397",
    "createdAt": "2024-01-23T12:34:56.789621Z",
    "createdBy": "[email protected]",
[.....]
    "reason": "Delete",
    "plan": false,
    "destroy": true,
    "ignoreDeleteFailures": true,
    "simulate": false,
    "inputs": {},
[.....]

 

Example using curl and jq:

The ignoreDeleteFailures value can be extracted for each Delete request along with the deployment name it's operating on, with this API call:

curl -k -X GET "https://$AUTOMATION-FQDN/blueprint/api/blueprint-requests/" -H  "Authorization: Bearer $BEARER_TOKEN" | jq '.content | .[] | select(.reason == "Delete") | .id, .deploymentName, .ignoreDeleteFailures'

  • This can be executed on Aria Automation itself.
  • The bearer token can be found by API or in most requests in the Network tab of your web browser F12 dev tools ("Bearer eyJ....")

 

Feature provided in future release:

  • The ignoreDeleteFailures property is planned for inclusion in VCF 9.