Hi Simon<div><br></div><div>You are totally right, the sunstone server expects to access the log files directly through the file system.  Initially, we thought about exposing this through the API but:</div><div>  - Serving the log files could impose quite an overload to the core</div>


<div>  - Log files are more interesting for admins and they would have access to the files by any other mean</div><div>  - Users need to know what happened to the VM in case of errors, so we added an ERROR attribute to the VM template so they are notified of error. Most of the other information (state, monitoring) are obtained through the XML-RPC API.</div>


<div><br></div><div>If you want to move the sunstone server to other machine, which is totally possible and wise for large deployments, you may (in the short term):</div><div><br></div><div>  - Live with logs not available through sunstone (i.e. previous assumptions make sense for you)</div>


<div>  - As you suggest export them through NFS (only the logs)</div><div><br></div><div>Using syslog as logger for opennebula daemon (that could send its log to a centralized server) is a good idea indeed. I've just filled an issue for this [1] and we'll try to schedule to 4.0, let see...</div>


<div><br></div><div>Thanks for your Feedback!</div><div><br></div><div>Ruben</div><div><br></div><div>[1] <a href="http://dev.opennebula.org/issues/1658" target="_blank">http://dev.opennebula.org/issues/1658</a></div><div class="gmail_extra">


<br><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 4:35 AM, Simon Boulet <span dir="ltr"><<a href="mailto:simon@nostalgeek.com" target="_blank">simon@nostalgeek.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi,<div><br></div><div>I am running oned on a backend server, and Sunstone on a frontend server connecting to the oned RPC API. Everything works great so far, but, I noticed Sunstone is always returning "<span style="font-size:13px">Log for VM x not available" when clicking the VM Log tab of a Virtual Machine.</span></div>



<div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Digging the problem further I ended looking at the get_vm_log() function in </span>sunstone/models/SunstoneServer.rb:203. It seems Sunstone is trying to read logs locally by looking into /var/log/one, which of course doesn't exist of my frontend server (only on my backend server).</div>



<div><br></div><div>Do you have any plans to make the log remotely available (through a One RPC API call perhaps) or do you have any recommendations?</div><div><br></div><div>I thought perhaps exporting /var/log/one from the backend to the frontend through a network file system (such as NFS).</div>



<div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Or is it possible to send oned logs to syslog instead? Perhaps then I could rewrite the Sunstone get_vm_log() to get the logs from a remote syslog server (or use an hosted log service such as Loggly).</span></div>



<div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Thanks</span></div><span><font color="#888888"><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Simon</span></div>


<div><span style="font-size:13px"><br>
</span></div>
</font></span><br>_______________________________________________<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<br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>

OpenNebula - The Open Source Solution for Data Center Virtualization<br></a><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula<br>


<br>
</blockquote></div>
</div>