<div><span class="Apple-style-span" style>Hi all,</span></div><div><span class="Apple-style-span" style><br></span></div><div><span class="Apple-style-span" style>I tried to implement the queue configuration suggested by </span><span class="Apple-style-span" style>Don MacMillen a while ago. Here is my plugin code:</span></div>
<div><span class="Apple-style-span" style><br></span></div><div><span class="Apple-style-span" style><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">from starcluster.clustersetup import ClusterSetup</font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">class SgeConfig(ClusterSetup):</font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"> def __init__(self, queue_to_config):</font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"> self.queue_to_config = queue_to_config</font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><br></font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"> def run(self, nodes, master, user, user_shell, volumes):</font></div><div><font class="Apple-style-span" 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 class="Apple-style-span" color="#222222" face="arial, sans-serif"> output = master.ssh.execute(cmd_strg)</font></div><div><font class="Apple-style-span" 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 class="Apple-style-span" color="#222222" face="arial, sans-serif">>>> Running plugin <myplugin></font></div><div><font class="Apple-style-span" 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 class="Apple-style-span" color="#222222" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">If I sshmaster and run the command directly as this:</font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" 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><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></div></span></div><div><br></div>-Wei