Machines fail to unregister and cannot be onboarded again. This article provides information on how to put these machines back to Discovered state.
java.lang.RuntimeException: Unable to get the resource description with link: /resources/compute-descriptions/########-####-####-####-########
tango-blueprint-service-app logsINFO tango-blueprint [host='tango-blueprint-service-app-###-###' thread='Thread-##' user='' org='' trace=''] com.vmware.tango.blueprint.gateway.EventBrokerGateway - Audit Log : Audit Log successfully saved for the Day2 Action : AuditLog(message=Day2 Action Unregister failed for <vm-name> in deployment <deployment-name>: java.lang.RuntimeException: Unable to get the resource description with link: /resources/compute-descriptions/########-####-####-####-########, eventType=DAY2_ACTION_FAILED, severity=ERROR, userName=<username>, orgId=########-####-####-####-########, projectId=########-####-####-####-########Temporary issues can sometimes interfere with the unregistration process. Furthermore, if onboarding is not completed correctly, the machine may lack the necessary information for the unregister command to function. This creates a discrepancy where a deployment record references a missing or orphaned compute-description link, causing standard unregistration tasks to fail as they cannot resolve the link.
Broadcom is aware of this issue. Currently there is no resolution.
Workaround:
Manually remove the stale entries using the REST API or execute the attached workflow.
NOTE:
code.vmware.kb.346013.unregister.vm.minimal.package package file.GET https://AriaAutoFQDN/deployment/api/resources?search=VM-Name001AriaAutoFQDN with the FQDN of your Aria Automation environment.VM-Name001 with the affected VM name.20f####-####-####-####-#######2eb4c). This will be used as the compute id in the next step.GET https://AriaAutoFQDN/provisioning/uerp/resources/compute/<compute id>descriptionLink from the output.{
"descriptionLink": "/resources/compute-descriptions/c51#####-####-####-####-#####caa3b4",
...
}DELETE https://AriaAutoFQDN/provisioning/uerp/<ComputeDescriptionLink>diskLinks field from the GET compute response in Step 2:GET https://AriaAutoFQDN/provisioning/uerp/<diskLink>descriptionLink field in the response and send a DELETE command.descriptionLink and can be skipped.DELETE https://AriaAutoFQDN/provisioning/uerp/<descriptionLink>descriptionLink, take its response body from the GET command and edit it as follows:tenantLinks field, remove entries that start with /owner/provisioning/auth/csp/users and /provisioning/resources/projects.descriptionLink, ownerAuthLink, and projectAuthLink fields entirely.customProperties map, remove the key-value pairs for '__blueprint_resource_type', '__deployment_id', and '__composition_context_id'.PUT https://AriaAutoFQDN/provisioning/uerp/<diskLink>descriptionLink, ownerAuthLink, and projectAuthLink fields.tenantLinks field, remove entries that start with /owner/provisioning/auth/csp/users and /provisioning/resources/projects.customProperties map, remove the key-value pairs for '__composition_context_id' and '__deployment_id'.PUT https://AriaAutoFQDN/provisioning/uerp/<computeSelfLink>networkInterfaceLinks field:GET https://AriaAutoFQDN/provisioning/uerp/<networkInterfaceLink>tenantLinks field that start with /owner/provisioning/auth/csp/users and /provisioning/resources/projects.PUT https://AriaAutoFQDN/provisioning/uerp/<networkInterfaceLink>