Hi,<br><br>I'd say the code is actually the most up to date documentation :)<br>We will include a table in the xml-rpc documentation, meanwhile this is from VirtualMachine.h<br><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> /**</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> * Global Virtual Machine state</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> */</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> enum VmState</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> INIT = 0,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> PENDING = 1,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> HOLD = 2,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ACTIVE = 3,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> STOPPED = 4,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> SUSPENDED = 5,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> DONE = 6,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> FAILED = 7</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> };</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> /**</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> * Virtual Machine state associated to the Life-cycle Manager</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> */</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> enum LcmState</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> LCM_INIT = 0,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> PROLOG = 1,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> BOOT = 2,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> RUNNING = 3,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> MIGRATE = 4,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> SAVE_STOP = 5,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> SAVE_SUSPEND = 6,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> SAVE_MIGRATE = 7,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> PROLOG_MIGRATE = 8,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> PROLOG_RESUME = 9,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> EPILOG_STOP = 10,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> EPILOG = 11,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> SHUTDOWN = 12,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> CANCEL = 13,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> FAILURE = 14,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> CLEANUP = 15,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> UNKNOWN = 16</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> };</span><br><br>There are two levels, the LCM state must be ignored unless the VM is ACTIVE (3).<br><br>Regards.<br><br clear="all"><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial,sans-serif;font-size:13px">--<br>
Carlos Martín, MSc</span><font color="#888888"><br>Project Engineer</font><br><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px"><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>
<br><br><div class="gmail_quote">On Wed, Oct 5, 2011 at 8:01 PM, Gian Uberto Lauri <span dir="ltr"><<a href="mailto:saint@eng.it">saint@eng.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello there.<br>
<br>
I need to understand the VM status in an OCA reply. I know I can read<br>
the code, namely this snippet from VirtualMachine.rb and see what's<br>
the index of the label shown by the onevm list command, but is there a<br>
more authoritative definition ? Code changes:).<br>
<br>
The same question holds for the Life Cycle :).<br>
<br>
<br>
--<br>
ing. Gian Uberto Lauri<br>
Ricercatore / Reasearcher<br>
Laboratorio Ricerca e Sviluppo / Research & Development Lab.<br>
Area Calcolo Distribuito / Distributed Computation Area<br>
<br>
<a href="mailto:GianUberto.Lauri@eng.it">GianUberto.Lauri@eng.it</a><br>
<br>
Engineering Ingegneria Informatica spa<br>
Corso Stati Uniti 23/C, 35127 Padova (PD)<br>
<br>
Tel. <a href="tel:%2B39-049.8283.571" value="+390498283571">+39-049.8283.571</a> | main(){printf(&unix["\021%six\012\0"],<br>
Fax <a href="tel:%2B39-049.8283.569" value="+390498283569">+39-049.8283.569</a> | (unix)["have"]+"fun"-0x60);}<br>
Skype: gian.uberto.lauri | David Korn, AT&T Bell Labs<br>
<a href="http://www.eng.it" target="_blank">http://www.eng.it</a> | ioccc best One Liner, 1987<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>
</blockquote></div><br>