<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Hi Simon, </div>
<div><br>
</div>
<div>Thanks for the patch.</div>
<div>I think I understand how I use this new feature from reading your instruction.</div>
<div>Let me confirm that I am understanding right.</div>
<div><br>
</div>
<div>1. apply the patch in the first place</div>
<div>2. define a new VM_HOOK in oned.conf that looks like</div>
<div> VM_HOOK= [</div>
<div> name = "special_hold"</div>
<div> on = "CREATE"</div>
<div> command = "a new script"</div>
<div> argument = "$VMID $TEMPLATE" ]</div>
<div>3. create the "a new script" which decodes $TEMPLATE first and</div>
<div> looks for a "a custom VM attribute"</div>
<div> and depending on the value of the attribute, onevm release $VMID</div>
<div><br>
</div>
<div>Is this correct?</div>
<div><br>
</div>
<div>I also would like to know if your patch has been tested in a production cluster.</div>
<div><br>
</div>
<div>Thanks again,</div>
<div>HyunWoo</div>
<div>FermiCloud Project</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Simon Boulet <<a href="mailto:simon@nostalgeek.com">simon@nostalgeek.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, December 20, 2012 8:22 AM<br>
<span style="font-weight:bold">To: </span>Hyunwoo Kim <<a href="mailto:hyunwoo@fnal.gov">hyunwoo@fnal.gov</a>><br>
<span style="font-weight:bold">Cc: </span>Carlos Martín Sánchez <<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>>, "<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>" <<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [one-users] option to prevent a VM instance from being deployed<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div style="">I have just submitted a patch that solves this. </div>
<div style=""><br>
</div>
<div style=""><a href="http://dev.opennebula.org/issues/1103">http://dev.opennebula.org/issues/1103</a><br>
</div>
<div style=""><br>
</div>
<div style="">You could use that patch along with a custom CREATE VM HOOK that checks for a custom VM attribute you specify in your templates.</div>
<div style=""><br>
</div>
<div style="">Feedback more than welcome!</div>
<div style=""><br>
</div>
<div style="">Thanks</div>
<div style=""><br>
</div>
<div style="">Simon</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Dec 20, 2012 at 9:14 AM, Hyun Woo Kim <span dir="ltr">
<<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, Carlos,<br>
<br>
Thanks for a quick and precise information.<br>
- onevm hold will not be helpful to us because it also requires users to be "quick" just like deploy.<br>
- For the time being, using some impossible requirement will be our solution<br>
- We will look forward to the new option that you plan to add to 4.0<br>
<br>
Thanks again<br>
HyunWoo<br>
FermiCloud Project.<br>
<br>
________________________________________<br>
From: Carlos Martín Sánchez [<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>]<br>
Sent: Thursday, December 20, 2012 4:46 AM<br>
To: Hyun Woo Kim<br>
Cc: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
Subject: Re: [one-users] option to prevent a VM instance from being deployed<br>
<div class="im"><br>
Hi,<br>
<br>
That is what the command 'onevm hold' [1] does. But that command requires you to instantiate the template, and then quickly hold the new VM.<br>
For the next version we will add the option to create the new VMs directly on hold instead of pending [2].<br>
<br>
Meanwhile, if you don't want to instantiate & hold, you can also use this workaround: Add an imposible requirement [3], such as REQUIREMENTS="NAME = NONEXISTENTHOST". The scheduler won't be able to find a suitable host, but you can still deploy that VMs manually.<br>
<br>
Regards<br>
<br>
[1] <a href="http://opennebula.org/documentation:rel3.8:vm_guide_2#life-cycle_operations" target="_blank">
http://opennebula.org/documentation:rel3.8:vm_guide_2#life-cycle_operations</a><br>
[2] <a href="http://dev.opennebula.org/issues/1103" target="_blank">http://dev.opennebula.org/issues/1103</a><br>
[3] <a href="http://opennebula.org/documentation:rel3.8:template#requirement_expression_syntax" target="_blank">
http://opennebula.org/documentation:rel3.8:template#requirement_expression_syntax</a><br>
<br>
--<br>
Carlos Martín, MSc<br>
Project Engineer<br>
OpenNebula - The Open-source Solution for Data Center Virtualization<br>
</div>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a><<a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a>> |
<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a><mailto:<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>> | @OpenNebula<<a href="http://twitter.com/opennebula" target="_blank">http://twitter.com/opennebula</a>><mailto:<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>><br>
<div class="im"><br>
<br>
On Wed, Dec 19, 2012 at 10:22 PM, Hyun Woo Kim <<a href="mailto:hyunwoo@fnal.gov">hyunwoo@fnal.gov</a><mailto:<a href="mailto:hyunwoo@fnal.gov">hyunwoo@fnal.gov</a>>> wrote:<br>
Hi Open Nebula developers and users,<br>
<br>
Is it possible to prevent a VM instance from being deployed automatically after a couple of seconds?<br>
When we do "onetemplate instantiate N",<br>
the new VM will stay at "PEND" briefly and go to "PROL" in just a few seconds, right?<br>
<br>
For a certain types of templates, we would like to make<br>
the virtual machines (in the PEND state) to wait for admin's command "onevm deploy"<br>
(to be sent to a specific set of hosts)..<br>
<br>
Hyunwoo<br>
FermiCloud Project<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
</div>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><mailto:<a href="mailto:Users@lists.opennebula.org">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>
<div class="HOEnZb">
<div class="h5"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>