<div dir="ltr">Hello William,<br><br><div class="gmail_quote">On Wed, Sep 3, 2008 at 3:30 AM, William Voorsluys <span dir="ltr">&lt;<a href="mailto:williamvoor@gmail.com">williamvoor@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Alvaro,<br>
<br>
I&#39;m forwarding this thread to ONE users as well.<br>
<br>
More comments inline.<br>
<br>
2008/9/2 Alvaro Canales &lt;<a href="mailto:accleo@gmail.com">accleo@gmail.com</a>&gt;:<br>
<div class="Ih2E3d">&gt; Hello William!<br>
&gt;<br>
&gt; On Tue, Sep 2, 2008 at 2:29 AM, William Voorsluys &lt;<a href="mailto:williamvoor@gmail.com">williamvoor@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; 2008/9/1 Alvaro Canales &lt;<a href="mailto:accleo@gmail.com">accleo@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; Hi William,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thank you for your assistance :)<br>
&gt;&gt; &gt; I have one doubt, though. In the mail, you make reference to a<br>
&gt;&gt; &gt; ws-one-sample-config.tar.gz file, but I don&#39;t really know where to find<br>
&gt;&gt; &gt; it...<br>
&gt;&gt; &gt; Where is it? And the hellonebula.xml file, is the &quot;myfirst.template&quot;<br>
&gt;&gt; &gt; file<br>
&gt;&gt; &gt; from OpenNEbula or a current VWs metadata file? I neither know where to<br>
&gt;&gt; &gt; find<br>
&gt;&gt; &gt; it...<br>
&gt;&gt;<br>
&gt;&gt; Files are attached!<br>
&gt;<br>
&gt; I&#39;m glad your hellonebula.xml file is a Globus Workspace file, it&#39;s the same<br>
&gt; aproach I use! :)<br>
&gt; May I ask you how do you supply the parameters that are in a ONE template<br>
&gt; file but not in a &nbsp;VWS (mac address, kernel, CPU usage...)? Do you infere<br>
&gt; them? Or get it from defaults, like in the kernel case?<br>
<br>
</div>In my code, if you look at the OpenNebulaBindingAdapter class, you can<br>
see how everything is done. MAC address are obtained through a Network<br>
Adapter (which manages network associations).<br>
Kernel is ignored. I assumed end-users would not be aware of which<br>
kernels are installed on ONE clusters. Thus, a default kernel must be<br>
specified on the backend side.<br>
CPU percentage is supported on WS metadata. If not specified I assume<br>
a default value of 1.</blockquote><div><br>You&#39;re right. This approach seems correct to me too :)<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<div><div></div><div class="Wj3C7c"><br>
&gt;&gt; &gt; By the way, in my solution, I only adapt Globus Workpaces frontend, but<br>
&gt;&gt; &gt; not<br>
&gt;&gt; &gt; OpenNEbula; but the file you attached me, is a modified version of ONE<br>
&gt;&gt; &gt; made<br>
&gt;&gt; &gt; by you, is it? What&#39;s the nature of those changes?<br>
&gt;&gt; &gt; Thank you!<br>
&gt;&gt;<br>
&gt;&gt; I created a method to return ids of all hosts. This is related to the<br>
&gt;&gt; ticket <a href="http://trac.opennebula.org/ticket/33" target="_blank">http://trac.opennebula.org/ticket/33</a><br>
&gt;&gt; The workspace service needs to know how many hosts are available and<br>
&gt;&gt; the configuration of each host. This is required for scheduling<br>
&gt;&gt; purposes.<br>
&gt;&gt; As far as I can see, in your approach, as well as in the previous<br>
&gt;&gt; integration approach done the ONE team, the WS sees a ONE managed<br>
&gt;&gt; clusters as a single machine with N processors and a, say, 20GB of<br>
&gt;&gt; memory. So, if a user submits a request for a 10GB machine, WS would<br>
&gt;&gt; forward the request to ONE, which, in turn, would never schedule such<br>
&gt;&gt; request. I implemented a new Slot Management that mitigates this<br>
&gt;&gt; issue.<br>
&gt;<br>
&gt; Yes, you&#39;re right. My approach doesn&#39;t cope with that... But it&#39;s not<br>
&gt; something I&#39;m specially worried about it...<br>
&gt; By the way, I have one last question (thank you, in any case, for your<br>
&gt; attention and help provided!) :)<br>
&gt; What do you do to get the ID of the new submitted VM? I mean, you have to<br>
&gt; apply onevm suspend, resume... etc. to a hostID returned when you allocate a<br>
&gt; VM... the thing is, where do you store this returned ID? In the Workspace<br>
&gt; attribute &quot;workspaceID&quot;? I don&#39;t know exactly at what point of the Globus<br>
&gt; Workspaces code (not even in which file :( ) may I do it... Probably when I<br>
&gt; get the ID returned. But I&#39;m not sure how to store it (I have not even seen<br>
&gt; a setID method...)... any clue?<br>
<br>
</div></div>Since I&#39;m using the XML-RPC API, a VM id is, in fact, the return value<br>
of method one.vmallocate. This value is then kept in the<br>
org.globus.workspace.opennebula.OpenNebulaVirtualMachine, which<br>
extends VirtualMachine, which instance, in turn, is a field of<br>
WorkspaceRequestContext.</blockquote><div><br>Yes, I see you&#39;ve extended VirtualMachine class. In my inplementation, I didn&#39;t see a reason to do it. I just wanted to reset the Globus Workspace autogenerated name/id to the one returned by vmAllocate()... But I&#39;m not sure where it is precisely set. I think it&#39;s in the DefualtBindingAdapter, but your solution is anyway far neater. :)<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div class="Ih2E3d"><br>
&gt; Thank you for your time and help!!<br>
&gt; Best regards,<br>
<br>
</div>No worries,</blockquote><div><br>Once again, thank you!<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Cheers,<br>
<font color="#888888"><br>
William.<br>
</font></blockquote></div><br>Best regards,<br><br>Alvaro<br clear="all"><br>-- <br>Álvaro<br>
</div>