Cloud Foundation – Retrying a Failed Workflow

This week I was doing some testing in my home lab, and purely by accident I entered some details incorrect into the VI Configuration Wizard which walks you through the inputs to deploy a Workload Domain in Cloud Foundation. I had wrongly entered the FQDN of the Management Domain vCenter Server instead of the new Workload Domain vCenter server, I didn’t notice this until I found the deployment task in a failed state.

For those not-familiar with Cloud Foundation when a task fails SDDC Manager does give you the ability to retry the task from the Task list but unfortunately it does not give you the opportunity to modify any of the input data.

At first I thought I was in no man’s land and would not be able to complete the new Workload Domain deployment but after talking to a colleague who referred me to this KB article as a reference I proceeded to attempt translating the procedure and test in my setup. Low and behold it worked and I was able to recover from my issue and complete the deployment, so I thought I would document the steps here in case it helps get someone else out of jail.

Procedure

Step 1 – In the SDDC Manager UI, navigate to the Task list and click the failed task to see the sub-tasks.

Step 2 – In the browser URL make a note of the workflow ID of the task.

Step 3 – Connect to the SDDC Manager appliance using and SSH client such as Putty using the vcf user.

Step 4 – Enter su to switch to the root user and enter the password.

Step 5 – Obtain the Workflow Spec information by running the following command, using the Workflow ID from Step 2.

curl -s http://localhost/domainmanager/internal/vault/1faab6e8-4dfb-46bb-8860-8133df44b196 | json_pp > /tmp/workflow.json

Step 6 – Edit the Workload Spec json, and replace the input details that are incorrect.

vi /tmp/workflow.json

Step 7 – Update the Workflow Spec by passing the edited json file with the new details by running the following command.

curl -H 'Content-Type:text/plain' -X PUT http://localhost/domainmanager/internal/vault/1faab6e8-4dfb-46bb-8860-8133df44b196 -d @/tmp/workflow.json

Step 8 – In the SDDC Manager UI, navigate to the Task list and click Retry Task for the failed workflow.

Your workflow should now complete.

3 thoughts on “Cloud Foundation – Retrying a Failed Workflow

  1. Joe Adkins

    This was perfect for fixing a VSAN license key that I couldn’t get re-ingest via SDDC manager web UI. Once key was updated from 6 to 7 in JSON, pushed to SDDC and restarted task. The erroring task finished in a split second. Bravo!

    Liked by 1 person

  2. Pingback: VCF 4.3 Modifying the input values of a failed task in SDDC Manager – kskilling

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s