Javier,<br><br>I don't know why I didn't think of that. It worked! Thank you!<br clear="all"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Arial;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Arial;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Arial;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Arial;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"></span></span></span></span><br style="font-family:trebuchet ms,sans-serif">
<font style="font-family:verdana,sans-serif" size="2">Greg Stabler<br>Computer Science/MS Candidate<br>School of Computing, McAdams 120<br>Clemson University, Clemson, SC 29634<br><a href="mailto:gstable@clemson.edu" target="_blank">gstable@clemson.edu</a></font>
<br>
<br><br><div class="gmail_quote">On Tue, Apr 10, 2012 at 6:49 AM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why don't you create a new set of drivers and use them for the nodes<br>
that need to use the wrappers?<br>
<br>
For example,<br>
<br>
* Copy vmm kvm remotes to kvm_clemson<br>
* Change the way of calling the commands<br>
* Add the new drivers to oned.conf<br>
* Add the nodes with kvm_clemson vmm drivers<br>
<br>
It is mostly the same as your proposed solution but in this case you<br>
don't need to change OpenNebula code (aside from the driver itself)<br>
<div class="im HOEnZb"><br>
On Thu, Apr 5, 2012 at 7:06 PM, Greg Stabler <<a href="mailto:gstable@clemson.edu">gstable@clemson.edu</a>> wrote:<br>
</div><div class="HOEnZb"><div class="h5">> I'm trying to add our high-performance cluster to our OpenNebula 3.0 system<br>
> to run VMs on the cluster. Due to security requirements on the cluster, we<br>
> have had to write several wrapper scripts for things such as virsh,<br>
> ovs-vsctl (for Open vSwitch), and brctl to ensure that someone does not<br>
> misconfigure a cluster node and crash the system.<br>
><br>
> Therefore, the current set of OpenNebula scripts in /var/remotes will not<br>
> work on the cluster. The quick/dirty solution we came up with is to create a<br>
> second version of the remotes scripts that uses our wrappers and place them<br>
> in /var/remotes_cluster. Whenever the remote scripts are copied to or<br>
> updated on a cluster node host, we would use this directory instead of<br>
> /var/remotes.<br>
><br>
> I've been looking through the source code and trying to figure out where I<br>
> might be able to add some code that checks to see if hostname belongs to our<br>
> cluster and then use the remotes_cluster directory, and if not, use the<br>
> normal remotes directory. I thought that maybe in update_remotes() in either<br>
> one/libs/mads/one_im_exec.rb or in one/lib/ruby/CommandManager.rb would<br>
> work, but I'm having trouble with that. I tried adding in a command to the<br>
> method to create a simple test directory just to see if that was the correct<br>
> place in the code, but I never see the directory created on my nodes. Any<br>
> ideas? Again, we're using OpenNebula 3.0.<br>
><br>
> Thank you,<br>
><br>
> Greg Stabler<br>
> Computer Science/MS Candidate<br>
> School of Computing, McAdams 120<br>
> Clemson University, Clemson, SC 29634<br>
> <a href="mailto:gstable@clemson.edu">gstable@clemson.edu</a><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<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>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Javier Fontán Muiños<br>
Project Engineer<br>
OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a> | @OpenNebula<br>
</font></span></blockquote></div><br>