Hi Don,<div><br></div><div>The plugin picked up the queue_to_config (all.q) as evidenced in the error message:</div><div><br></div><div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif">!!! ERROR - command 'qconf -mattr queue load_thresholds np_load_avg=1.5 <b>all.q</b>' failed with status 127</span></div>
<div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif"><br></span></div><div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif">My intention is to config the SGE at the cluster boot up time </span><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif">using the plugin</span><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif">. Since I executed "starcluster runplugin" after the cluster already booted up, it apparently is not an issue of plugin execution timing.</span></div>
<div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif"><br></span></div><div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif">The only reason I run the plugin or the plugin command after cluster already booted up is for debugging purposes.</span></div>
<div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif"><br></span></div><div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif">It's just very strange to me that as root I can execute the exact same command on the master node without any issue, but running as starcluster plugin would fail.</span></div>
<div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif"><br></span></div><div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif">Also, what is status 127 anyway??</span></div>
<div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif"><br></span></div><div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif">Thanks!</span></div>
<div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif"><br></span></div><div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif">-Wei</span></div><div>
<br><br><div class="gmail_quote">On Wed, Dec 21, 2011 at 1:42 AM, Don MacMillen <span dir="ltr"><<a href="mailto:macd@nimbic.com">macd@nimbic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The only difference that I can see is that I have not used arguments to<div>the plugin. I guess you did remember to set the argument "queue_to_config"</div><div>in your config file?<br><div><br></div><div>Another possible issue is if you are trying to reconfig a cluster that is just</div>
<div>in the process of coming up. If you try that command early on, it will fail because</div><div>sge has not been installed yet. Why do you want to config the cluster afterwards</div><div>rather than just on the initial bring up? HTH and let us know what you find out.</div>
<div>Regards.</div><div><br></div><div>Don</div><div><br></div><div><br></div><div><div class="gmail_quote"><div><div class="h5">On Tue, Dec 20, 2011 at 10:02 PM, Wei Tao <span dir="ltr"><<a href="mailto:wei.tao@tsibiocomputing.com" target="_blank">wei.tao@tsibiocomputing.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div><span>Hi all,</span></div><div><span><br></span></div><div><span>I tried to implement the queue configuration suggested by </span><span>Don MacMillen a while ago. Here is my plugin code:</span></div>
<div><span><br></span></div><div><span><div><font color="#222222" face="arial, sans-serif">from starcluster.clustersetup import ClusterSetup</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">class SgeConfig(ClusterSetup):</font></div><div><font color="#222222" face="arial, sans-serif"> def __init__(self, queue_to_config):</font></div>
<div><font color="#222222" face="arial, sans-serif"> self.queue_to_config = queue_to_config</font></div><div><font color="#222222" face="arial, sans-serif"><br></font></div>
<div><font color="#222222" face="arial, sans-serif"> def run(self, nodes, master, user, user_shell, volumes):</font></div><div><font color="#222222" face="arial, sans-serif"> cmd_strg = 'qconf -mattr queue load_thresholds np_load_avg=1.5 %s' %self.queue_to_config</font></div>
<div><font color="#222222" face="arial, sans-serif"> output = master.ssh.execute(cmd_strg)</font></div><div><font color="#222222" face="arial, sans-serif"><br></font></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">When I execute "starcluster runplugin <myplugin> <mycluster>", I got:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">
<br></div><div><div><font color="#222222" face="arial, sans-serif">>>> Running plugin <myplugin></font></div><div><font color="#222222" face="arial, sans-serif">!!! ERROR - command 'qconf -mattr queue load_thresholds np_load_avg=1.5 all.q' failed with status 127</font></div>
</div><div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">If I sshmaster and run the command directly as this:</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif"><div>root@master:~# qconf -mattr queue load_thresholds np_load_avg=1.5 all.q</div>
<div>root@master modified "all.q" in cluster queue list</div><div><br></div><div>It works fine. Could someone please point out why the plugin would have a status code 127 when direct execution of the command apparently works fine?</div>
<div><br></div><div>Thanks for the help!</div></font></div><span><font color="#888888"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></div></font></span></span></div><span><font color="#888888"><div>
<br></div>-Wei
</font></span><br></div></div>_______________________________________________<br>
StarCluster mailing list<br>
<a href="mailto:StarCluster@mit.edu" target="_blank">StarCluster@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Wei Tao, Ph.D.<br>TSI Biocomputing LLC<br>617-564-0934<br>
</div>