|
Replies:
2
-
Pages:
1
-
Last Post:
Jul 20, 2009 3:03 PM
by: vRob
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
9
Registered:
5/14/09
|
|
|
|
Creating workflow question.
Posted:
Jul 16, 2009 7:23 AM
|
|
|
Is it possible to set timeout before executing the next Action? For example I need to shut down my Gold VM and perform Move it to the another location (Host and/or Storage). Sometimes Moving executed when VM still has Power ON state and as a result Job Failed.
|
|
|
Posts:
3
Registered:
6/11/09
|
|
|
|
Re: Creating workflow question.
Posted:
Jul 17, 2009 7:36 AM
in response to: pegasovich
|
 |
Helpful |
|
|
Hi pegasovich,
What I learned to resolve this problem was you need to need to adjust the action link to make 2 attempts and to perform the next step upon failure.
You can adjust the time setting, the default is 60 seconds which may or may not be long enough in all use cases, I adjusted mine to 120 seconds and it works well for me.
So what happens is the shutdown command runs the first time and succeeds, so the workflow does not proceed to the next step since it is designated to proceed only on failure. 2 minutes later the shutdown command executes again and fails as by now the host has shutdown. So the workflow now proceeds to the next step - Move.
A little counterintuitive, but this is how you get the shutdown guest OS command to work best. Hope this helps...
And Thanks to Oleg K for sharing with me how to make this work!
|
|
|
Posts:
3
Registered:
6/11/09
|
|
|
|
Re: Creating workflow question.
Posted:
Jul 20, 2009 3:03 PM
in response to: pegasovich
|
|
|
|
|
Another thing I learned today and for posterity:
The attached picture shows what the links will look like and for the shutdown guest OS, you want the next step to proceed on failure. So here I am adjusting memory in this workflow and I need to have the VM powered off. So with 2 attempts, 120 seconds apart for the Shutdown Guest OS action step, this allows enough time for a clean shutdown for my machines.
Today when I troubleshooting why the workflow would not work for me, I realized that even if the Workflow failed at some previous step, I really want the VM to power back up no matter what. So now I've changed the last action link to execute no matter what the result of the previous action.
So I put this screen shot together so illustrate the link settings and how they appear in the workflow studio window for each condition.
|
|
|
|
Legend
|
|
Guru: 2001
+
pts
|
|
Expert: 751
- 2000
pts
|
|
Enthusiast: 31
- 750
pts
|
|
Novice: 0
- 30
pts
|
|
Moderators
|
|
Helpful answer
(5 pts)
|
|
Answered
(10 pts)
|
|