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 &quot;queue_to_config&quot;</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">On Tue, Dec 20, 2011 at 10:02 PM, Wei Tao <span dir="ltr">&lt;<a href="mailto:wei.tao@tsibiocomputing.com">wei.tao@tsibiocomputing.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 = &#39;qconf -mattr queue load_thresholds np_load_avg=1.5 %s&#39; %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 &quot;starcluster runplugin &lt;myplugin&gt; &lt;mycluster&gt;&quot;, 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">&gt;&gt;&gt; Running plugin &lt;myplugin&gt;</font></div><div><font color="#222222" face="arial, sans-serif">!!! ERROR - command &#39;qconf -mattr queue load_thresholds np_load_avg=1.5 all.q&#39; 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 &quot;all.q&quot; 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 class="HOEnZb"><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 class="HOEnZb"><font color="#888888"><div>
<br></div>-Wei
</font></span><br>_______________________________________________<br>
StarCluster mailing list<br>
<a href="mailto:StarCluster@mit.edu">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>