Thanks Jaime That's exactly what I am doing at the moment. I set a CREATE_HOOK_FAILED="Some error" and move the VM to PENDING state. When my VMM CREATE action picks up the VM it checks if a CREATE_HOOK_FAILED attribute exist, if it does it returns an error, which effectively turns the VM into FAILED state.
Simon On Tue, Aug 13, 2013 at 5:53 PM, Jaime Melis <[email protected]> wrote: > Hi, > > I can't think of any way to do that, but you could add something to the > template dynamically, like: FAIL=YES and get your results from there? > > regards, > Jaime > > > On Mon, Aug 12, 2013 at 5:29 PM, Simon Boulet <[email protected]>wrote: > >> Hi, >> >> My cloud is configured with VM_SUBMIT_ON_HOLD=yes. When a VM is >> instantiated, a VM CREATE hooks kicks in, does various last minute checks, >> sometime adds attributes to the VM, and move the VM to PENDING state for >> the scheduled to deploy. >> >> I'd like to have my CREATE HOOK to change a VM state to FAILED if it >> decides something is wrong with the VM template being instantiated. >> >> Is this possible? >> >> Simon >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >> >> > > > -- > Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in Berlin, 24-26 > September, 2013 > -- > Jaime Melis > Project Engineer > OpenNebula - The Open Source Toolkit for Cloud Computing > www.OpenNebula.org | [email protected] >
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
