VMware is aware of this issue.
See the Workaround section for additional information.
Workaround:
- Let's say the first VM (name - test01) is onboarded and onboarding of the second VM (name -test01) has failed.
- Unregister the first VM.
- Go to Virtual Machines page. Search for the VMs with the name in question (e.g., test01). This should list two VMs, one in Discovered state and other in Deployed state. Open the Web Developer tools in the browser. This is needed to capture the details of the VM that's in the Deployed state. Click on the VM which is Deployed state. This should log a call like the following in the network activity tab
GET https://<vra>/provisioning/uerp/provisioning/mgmt/compute?expand=&$filter=(documentSelfLink eq '/resources/compute/<uuid>')&$orderby=nameasc&additionalExpand=project,placement
- Capture the documentSelfLink value from the URL.
- Remove the machine that's stuck from the onboarding plan.
- Execute the following API from Postman. This will unregister the machines that's stuck in the Deployed state. Please use the Bearer token of the logged in user to vRA for running this API. Copy the documentSelfLink value captured from previous steps in the payload's resource link field.
POST {{url}}/relocation/api/wo/unregister-machine
{
"resourceLink": "/resources/compute/<uuid>"
}
- Once the API run is successful, it should be possible to add the second VM machine and onboard the same to a new deployment.
Note: Origin(Resource origin) field in the Virtual Machines page for an onboarded machine is Onboarded from version vRA 8.7. Before vRA 8.7, the Origin field in the Virtual Machines page for an onboarded machine is Deployed.