<div dir="ltr">Thanks Jaime<div><br></div><div>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.</div>
<div><br></div><div style>Simon</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 13, 2013 at 5:53 PM, Jaime Melis <span dir="ltr"><<a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>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?</div>
<div><br></div><div>regards,<br>Jaime</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Aug 12, 2013 at 5:29 PM, Simon Boulet <span dir="ltr"><<a href="mailto:simon@nostalgeek.com" target="_blank">simon@nostalgeek.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>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. </div>
<div><br></div><div>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.</div><div><br></div><div>Is this possible?</div><span><font color="#888888">
<div><br></div><div>Simon</div></font></span></div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Join us at <a href="http://opennebulaconf.com/" style="color:rgb(17,85,204)" target="_blank">OpenNebulaConf2013</a> in Berlin, <span><span>24-26 September, 2013</span></span><br>
--<div>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a></div>
</div>
</font></span></div>
</blockquote></div><br></div>