Steps to delete a failed workflow in VMware Cloud Foundation 2.x from Zookeeper Using command line:-
- Identify the failed workflow task ID.
- login to the SDDC Manager Controller UI https://ipaddress:8443/vrm-ui
- Click on Status >> Workflow Tasks >> Failed Tasks.
- Click on the failed task >> The browser URL will show the failed Workflow ID.
- SSH to the SDDC Manager Controller VM.
- Run zkCli.sh to connect to zookeeper.
- List the Workflows by issuing a command similar to the following:
ls /Workloads/Workflows/ed535779-9029-4186-9362-35535bda5373/--parameters
- Run a command similar to the following to remove the failed workflow:
rmr /Workloads/Workflows/ed535779-9029-4186-9362-35535bda5373
Note: You can validate that the Workflow was deleted by re-issuing the command from Step 4. You should see output stating "Node does not exist".
Impact/Risks:
Choosing the wrong workflow will lead to serious issues. Ensure the correct workflow ID is chosen and always have a backup/snapshot of the SDDC Manager Controller virtual machine.