Hi,
Im completely new to orchestrator, so forgive me if this is a dumb question.
I am following along the basic tutorials in the documentation, and I am hitting a stumbling block when trying to set up a "decision" node.
IN my schema, I select the "VM powered ON?" decision node, and add
VC:VirtualMachine vm "State Equals"
I click on "not Set" expecting to be able to select either "poweredON", "poweredOff", or "Suspended"
a box pops up that says: MV;VirtualMachinePowerState but nothing is found
entering poweredon, or similar into the Filter doesnt bring anything up, so I can't fill in this last field.
Am I doing something wrong?
I am able to browse thru the vCenter server via the Inventory tab, so it looks like orchestrator is talking to vCenter correctly..
Thanks
Jason
Welcome Jason,
You are not doing anything wrong, a bug was discovered recently in the decision box whn using the VM power state.
Instead use a custom decision box, add your vm as input and write the following code:
if ( vm.runtime.powerState == VimVirtualMachinePowerState.poweredOn) {
return true;
} else {
return false;
}
Christophe.
Welcome Jason,
You are not doing anything wrong, a bug was discovered recently in the decision box whn using the VM power state.
Instead use a custom decision box, add your vm as input and write the following code:
if ( vm.runtime.powerState == VimVirtualMachinePowerState.poweredOn) {
return true;
} else {
return false;
}
Christophe.
Hi, Christophe
Thanks very much for the quick answer, and for showing me the work around.
Much appreciated!
Jason
Thank you very much for this information, I'm new to this as well and I couldn't figure out what I was doing wrong and recreated this example 2-3 times thinking i misread a step somewhere.
I tried your suggestion and I get the following error when I try to run the Workflow:
[2011-05-10 18:56:44.413] [I] ReferenceError: "VimVirtualMachinePowerState" is not defined. (Workflow:Start VM and Send Email / VM Powered On (item0)#9942)
I found the correct code in another workflow.
return vm.runtime.powerState.value == "poweredOn";