Close

Modify the input values of failed task in SDDC Manager

In this article, I will guide you through how to Modify the input values of failed task in SDDC Manager.

I tried to deploy a new NSX Edge cluster, but I received several error messages. According to the VMware by Broadcom Knowledge Base article, it’s recommended to remove the failed deployment and create a new one. However, this approach is time-consuming and doesn’t make sense. KB372453

Resolution:
Take a snapshot of SDDC Manager VM

Login the SDDC Manager UI, and click on the failed Task we need to edit and retry.

Note the workflow ID, which is the subtasks URL


SSH to the SDDC Manager with the ‘vcf’ user and then type ‘su root’.

Update the applications.properties file to all access via curl (5.x and 9.x only). 

echo "vcf.vault.http-access=true" >> /etc/vmware/vcf/domainmanager/application.properties

systemctl restart domainmanager

Use the following GET API call to retrieve the spec file for the workflow

curl -k -s http://localhost/domainmanager/internal/vault/<workflow_id_from_url> -X GET | json_pp > /tmp/workflow.json

Edit the contents of the workflow.json as needed. Note that there may be several places that need to be updated in the json.  

      8. Use the following PUT API call to update the spec file for the workflow     

curl -k -s http://localhost/domainmanager/internal/vault/<workflow_id_from_url> -X PUT -H "Content-type: text/plain" -d @/tmp/workflow.json

       9. From the SDDC Manager UI, Restart the Task

          

The task will be attempted again using the new workflow spec file provided

I hope this article has been informative. thank you for reading.