When trying to delete a custom workflow or action from the UI no error is produced, the operations simply does not result in a deleted action/workflow.
When trying to delete via the API you receive the code 204undocumented response.
Environment
VMware vRealize Orchestrator 8.x
Cause
This issue is most commonly caused when a package is created without 'e' allow operation.
Resolution
Prerequisites
Please take simultaneous non-memory snapshots of each virtual appliance(s) in the cluster.
Use the quiesce option for versions 8.9.x and above.
You have SSH access with root user and password.
Procedure
SSH to the appliance using the root user account.
Run the following command to connect to the vco-db
vracli dev psql vco-db
Verify the workflow(s) permissions with the below query:
SELECT * from vmo_workflow WHERE name = '<impcted_workflow_name>';
Note: The allowedoperations can be i.e. "v", "vf" etc.
Update the workflow(s) by adding "e" flag to the existing ones in the allowedoperations entry:
UPDATE vmo_workflow SET allowedoperations = 've' WHERE name = '<impcted_workflow_name>';
Exit the Postgres database:
\q
Restart all the orchestrator pods:
kubectl -n prelude delete pod -l app=vco-app
Monitor the restart progress until you have all the pods running:
kubectl -n prelude get pods -l app=vco-app -w
Press Ctrl + C to cancel the watch command from Step #7.
Delete the workflow(s) that are experiencing the problem.