[one-dev] Megam: addon-knife (How can I know a VM is fully launched)

Ruben S. Montero rsmontero at opennebula.org
Wed Apr 30 11:23:42 PDT 2014


Hi

As mentioned in yout email you are looking for the AWS_IP_ADDRESS key,
which is only valid for Amazon Hybrid VMs. This value is obtained through
the monitorization process as reported/updated by Amazon.

In general, as boot time of a VM depends on the software stack running
wihtin, you cannot rely on the VM status reported by the hypervisors, i.e.
RUNNING means that the VM is running at hypervisor level but it can be
stuck in the virtual BIOS because of an error or misconfiguration.

In our internal testing platform we use two techniques:

1.- Pro-active ping the VM, a simple ping+sleep loop with a timeout.
2.- Make the VM callback home to a known URL (you may use onegate for this)

Note that both requires connectivity to some extent between the knife
controller and the VM.

Cheers

Ruben





On Wed, Apr 30, 2014 at 4:24 PM, Megam Systems <gomegam at megam.co.in> wrote:

> Dear Dev-OpenNebula,
>
> When working on the addon-knife, upon launching a VM using the OpenNebula
> API, there is a need to wait till the VM is fully launched. Currently we
> wait until an IP address is available from the VMPool.
>
> Please find the reference of the code here.
> https://github.com/OpenNebula/addon-knife/blob/master/lib/
> chef/knife/opennebula_server_create.rb#L168
>
> We need a better way as OpenNebula can run in private clouds as well.
>
> How can we know that a VM is fully launched and running ? What parameter
> (status etc..) helps us to figure out that the VM is running.
>
> --
> Cheers,
> Megam Systems; http://www.gomegam.com
> email : gomegam at megam.co.in; twitter: @megamsystems
> blog  : http://blog.megam.co        | try     : https://www.megam.co
> github: https://github.com/megamsys | youtube : youtube.com/indykish
>
> _______________________________________________
> Dev mailing list
> Dev at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org
>
> --
> <http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org>
> --
> Ruben S. Montero, PhD
> Project co-Lead and Chief Architect<http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org>
> OpenNebula - Flexible Enterprise Cloud Made Simple
>  <http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org>
> www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/dev-opennebula.org/attachments/20140430/368a256b/attachment-0001.htm>


More information about the Dev mailing list