[one-users] option to prevent a VM instance from being deployed
Hyun Woo Kim
hyunwoo at fnal.gov
Thu Dec 20 07:35:52 PST 2012
Hi Simon,
Thanks for the patch.
I think I understand how I use this new feature from reading your instruction.
Let me confirm that I am understanding right.
1. apply the patch in the first place
2. define a new VM_HOOK in oned.conf that looks like
VM_HOOK= [
name = "special_hold"
on = "CREATE"
command = "a new script"
argument = "$VMID $TEMPLATE" ]
3. create the "a new script" which decodes $TEMPLATE first and
looks for a "a custom VM attribute"
and depending on the value of the attribute, onevm release $VMID
Is this correct?
I also would like to know if your patch has been tested in a production cluster.
Thanks again,
HyunWoo
FermiCloud Project
From: Simon Boulet <simon at nostalgeek.com<mailto:simon at nostalgeek.com>>
Date: Thursday, December 20, 2012 8:22 AM
To: Hyunwoo Kim <hyunwoo at fnal.gov<mailto:hyunwoo at fnal.gov>>
Cc: Carlos Martín Sánchez <cmartin at opennebula.org<mailto:cmartin at opennebula.org>>, "users at lists.opennebula.org<mailto:users at lists.opennebula.org>" <users at lists.opennebula.org<mailto:users at lists.opennebula.org>>
Subject: Re: [one-users] option to prevent a VM instance from being deployed
Hi,
I have just submitted a patch that solves this.
http://dev.opennebula.org/issues/1103
You could use that patch along with a custom CREATE VM HOOK that checks for a custom VM attribute you specify in your templates.
Feedback more than welcome!
Thanks
Simon
On Thu, Dec 20, 2012 at 9:14 AM, Hyun Woo Kim <hyunwoo at fnal.gov<mailto:hyunwoo at fnal.gov>> wrote:
Hi, Carlos,
Thanks for a quick and precise information.
- onevm hold will not be helpful to us because it also requires users to be "quick" just like deploy.
- For the time being, using some impossible requirement will be our solution
- We will look forward to the new option that you plan to add to 4.0
Thanks again
HyunWoo
FermiCloud Project.
________________________________________
From: Carlos Martín Sánchez [cmartin at opennebula.org<mailto:cmartin at opennebula.org>]
Sent: Thursday, December 20, 2012 4:46 AM
To: Hyun Woo Kim
Cc: users at lists.opennebula.org<mailto:users at lists.opennebula.org>
Subject: Re: [one-users] option to prevent a VM instance from being deployed
Hi,
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.
For the next version we will add the option to create the new VMs directly on hold instead of pending [2].
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.
Regards
[1] http://opennebula.org/documentation:rel3.8:vm_guide_2#life-cycle_operations
[2] http://dev.opennebula.org/issues/1103
[3] http://opennebula.org/documentation:rel3.8:template#requirement_expression_syntax
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org<http://www.OpenNebula.org><http://www.OpenNebula.org> | cmartin at opennebula.org<mailto:cmartin at opennebula.org><mailto:cmartin at opennebula.org<mailto:cmartin at opennebula.org>> | @OpenNebula<http://twitter.com/opennebula><mailto:cmartin at opennebula.org<mailto:cmartin at opennebula.org>>
On Wed, Dec 19, 2012 at 10:22 PM, Hyun Woo Kim <hyunwoo at fnal.gov<mailto:hyunwoo at fnal.gov><mailto:hyunwoo at fnal.gov<mailto:hyunwoo at fnal.gov>>> wrote:
Hi Open Nebula developers and users,
Is it possible to prevent a VM instance from being deployed automatically after a couple of seconds?
When we do "onetemplate instantiate N",
the new VM will stay at "PEND" briefly and go to "PROL" in just a few seconds, right?
For a certain types of templates, we would like to make
the virtual machines (in the PEND state) to wait for admin's command "onevm deploy"
(to be sent to a specific set of hosts)..
Hyunwoo
FermiCloud Project
_______________________________________________
Users mailing list
Users at lists.opennebula.org<mailto:Users at lists.opennebula.org><mailto:Users at lists.opennebula.org<mailto:Users at lists.opennebula.org>>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
_______________________________________________
Users mailing list
Users at lists.opennebula.org<mailto:Users at lists.opennebula.org>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121220/b01d37ef/attachment-0002.htm>
More information about the Users
mailing list