<div dir="ltr">Hi fellows,<div><br></div><div style>Any help on this. </div><div style><br></div><div style>All the best,</div><div style><br></div><div style>Sergio</div><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">Sergio Mafra</b> <span dir="ltr"><<a href="mailto:sergiohmafra@gmail.com">sergiohmafra@gmail.com</a>></span><br>Date: Tue, May 7, 2013 at 4:17 PM<br>Subject: Re: [StarCluster] StarCluster Digest, Vol 44, Issue 5<br>
To: Rajat Banerjee <<a href="mailto:rajatb@post.harvard.edu">rajatb@post.harvard.edu</a>><br><br><br><div dir="ltr">Hi Rajat,<div><br></div><div>I think that the date problem was over. Now we´ve got a new one. Check it out:</div>
<div><br></div><div><div>ubuntu@domU-12-31-39-02-19-36:~$ starcluster loadbalance spotcluster</div><div class="im">
<div>StarCluster - (<a href="http://star.mit.edu/cluster" target="_blank">http://star.mit.edu/cluster</a>) (v. 0.9999)</div><div>Software Tools for Academics and Researchers (STAR)</div><div>Please submit bug reports to <a href="mailto:starcluster@mit.edu" target="_blank">starcluster@mit.edu</a></div>
<div><br></div><div>>>> Starting load balancer (Use ctrl-c to exit)</div><div>Maximum cluster size: 5</div><div>Minimum cluster size: 1</div><div>Cluster growth rate: 1 nodes/iteration</div><div><br></div></div>
<div>>>> Loading full job history</div><div class="im">
<div>*** WARNING - Failed to retrieve stats (1/5):</div><div>Traceback (most recent call last):</div><div> File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/balancers/sge/__init__.py", line 515, in get_stats</div>
<div> self.stat = self._get_stats()</div></div><div> File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/balancers/sge/__init__.py", line 493, in _get_stats</div><div> qacct = '\n'.join(master.ssh.execute(qacct_cmd))</div>
<div> File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/sshutils/__init__.py", line 538, in execute</div><div> msg, command, exit_status, out_str)</div><div>RemoteCommandFailed: remote command 'source /etc/profile && qacct -j -b 201305071615' failed with status 1:</div>
<div>no jobs running since startup</div><div>/opt/sge6/default/common/accounting: No such file or directory</div><div class="im"><div>*** WARNING - Retrying in 60s</div><div><br></div></div><div>Just to tell you that I´m running MPICH2. This is part of my config file:</div>
<div><br></div><div><div>[cluster NewaveUbuntuHVM]</div><div>KEYNAME = MasterNode</div><div>CLUSTER_SIZE = 5</div><div>CLUSTER_USER = sgeadmin</div><div>CLUSTER_SHELL = bash</div><div>MASTER_IMAGE_ID = ami-7f1d8a16</div>
<div>NODE_IMAGE_ID = ami-411d8a28</div><div>NODE_INSTANCE_TYPE = cr1.8xlarge</div><div>PLUGINS = mpich2</div><div>VOLUMES = newave</div><div><br></div><div>All the best,</div><div><br></div><div>Sergio</div>
</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 10:42 AM, Sergio Mafra <span dir="ltr"><<a href="mailto:sergiohmafra@gmail.com" target="_blank">sergiohmafra@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Rajat,<div><br></div><div>Thanks so much for your help. I´ll do as you said and report the results here.</div>
<div><br></div><div>All the best,</div><div><br>Sergio</div></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, May 5, 2013 at 2:48 PM, Rajat Banerjee <span dir="ltr"><<a href="mailto:rajatb@post.harvard.edu" target="_blank">rajatb@post.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Sergio, <div>Sorry for the delayed response. Busy week at work. Adding starcluster alias back, in case this helps other people in the future.</div><div><br></div><div>Like I said, I'm not sure why your instance is coming up with PDT in the EC2 instance, since from what I remember it would always return UTC.</div>
<div><br></div><div>Is it possible for you to download the latest dev version if you haven't tried that already?</div><div><br></div><div><a href="http://star.mit.edu/cluster/docs/latest/contribute.html" target="_blank">http://star.mit.edu/cluster/docs/latest/contribute.html</a><br>
</div><div><br></div><div>Slightly different directions than the one you specified. Then, you can modify this file:</div><div><span style="font-family:arial,sans-serif;font-size:13px">starcluster/balancers/sge/__</span><span style="font-family:arial,sans-serif;font-size:13px">init__.py line 466</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13px">To replace UTC with PDT. Then run the ELB, and it'll run the latest code. Let me know if that works, and we can file a bug and go through the formal process of letting you switch the timezone. I'm guessing that you're pretty familiar with python programming, but if you have more problems then feel free to ask more questions.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Best,</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Rajat</span></div>
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 2:07 PM, Sergio Mafra <span dir="ltr"><<a href="mailto:sergiohmafra@gmail.com" target="_blank">sergiohmafra@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Rajat,<div><br></div><div>Thanks so much for your kindness in order to find out where this error was. Nice!</div>
<div><br></div><div>It´s a little bit odd to understand what is causing that since I´m using the SC Controller as an instance in the same zone (us-east-1d) as the cluster launched by it. So this should be in the same time format...???</div>
<div><br></div><div>What I did was donwload the code directly from the GIT´s site and compile it as described in <a href="http://star.mit.edu/cluster/docs/latest/installation.html" target="_blank">http://star.mit.edu/cluster/docs/latest/installation.html</a></div>
<div><br></div><div>???</div><div><br></div><div>All the best,</div><div><br></div><div>Sergio</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 2:18 PM, Rajat Banerjee <span dir="ltr"><<a href="mailto:rajatb@post.harvard.edu" target="_blank">rajatb@post.harvard.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Sergio,<br>I looked at the code that is causing your problems. It's this line:<br><br><div><span>return</span> <span>datetime</span><span>.</span><span>datetime</span><span>.</span><span>strptime</span><span>(</span><span>str</span><span>,</span> <span>"%a %b </span><span>%d</span><span> %H:%M:%S UTC %Y"</span><span>)</span></div>
<div><br></div><div>where 'str' is the output of the *remote* call to date. My mac returns this:<br>rbanerjee:~/starcluster/StarCluster/starcluster/balancers/sge $ date<br>
Tue Apr 30 13:12:44 EDT 2013<br>
<br></div><div>Which looks like it would time format OK. One oddity is that your time format is returning PDT when UTC is expected:<br><br>ValueError: time data 'Tue Apr 30 07:01:35 PDT 2013' does not match format '%a %b %d %H:%M:%S UTC %Y'<br>
<br>Not sure what's causing the problems since it looks mostly right, but feel free to tweak the time setting in the code in starcluster/balancers/sge/__init__.py line 466 to make the pattern match yours. Do you know why your time zone may be set differently than other AWS instances we've used? Custom images?<br>
</div><div>Best,<br>Rajat<br><br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 12:43 PM, <span dir="ltr"><<a href="mailto:starcluster-request@mit.edu" target="_blank">starcluster-request@mit.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send StarCluster mailing list submissions to<br>
<a href="mailto:starcluster@mit.edu" target="_blank">starcluster@mit.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:starcluster-request@mit.edu" target="_blank">starcluster-request@mit.edu</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:starcluster-owner@mit.edu" target="_blank">starcluster-owner@mit.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of StarCluster digest..."<br>
<br>Today's Topics:<br>
<br>
1. Unable to mount ebs volume (Jerry Lee, GW/US)<br>
2. LoadBalance (Sergio Mafra)<br>
<br><br>---------- Forwarded message ----------<br>From: "Jerry Lee, GW/US" <<a href="mailto:Jerry.Lee@genewiz.com" target="_blank">Jerry.Lee@genewiz.com</a>><br>To: <<a href="mailto:starcluster@mit.edu" target="_blank">starcluster@mit.edu</a>><br>
Cc: <br>Date: Mon, 15 Apr 2013 17:11:38 -0500<br>Subject: [StarCluster] Unable to mount ebs volume<br><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am a beginner of using the StarCluster. I created a ebs volme via Amazon AWS and configure it on the config file to use it for my cluster, but no matter what I do, it doesn't automatically mount the ebs volume onto the cluster. Please help.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">[cluster jerrycluster]<u></u><u></u></p><p class="MsoNormal">EXTENDS = smallcluster<u></u><u></u></p><p class="MsoNormal">VOLUMES = testdata<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">[volume testdata]<u></u><u></u></p><p class="MsoNormal">VOLUME_ID=vol-a0fe24f9<u></u><u></u></p><p class="MsoNormal">MOUNT_PATH=/data<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">>>> Waiting for cluster to come up... (updating every 30s)<u></u><u></u></p><p class="MsoNormal">>>> Waiting for instances to activate...<u></u><u></u></p><p class="MsoNormal">>>> Waiting for all nodes to be in a 'running' state...<u></u><u></u></p>
<p class="MsoNormal">2/2 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p><p class="MsoNormal">>>> Waiting for SSH to come up on all nodes...<u></u><u></u></p><p class="MsoNormal">
2/2 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p><p class="MsoNormal">>>> Waiting for cluster to come up took 1.847 mins<u></u><u></u></p><p class="MsoNormal">>>> The master node is <a href="http://ec2-54-234-229-206.compute-1.amazonaws.com" target="_blank">ec2-54-234-229-206.compute-1.amazonaws.com</a><u></u><u></u></p>
<p class="MsoNormal">>>> Setting up the cluster...<u></u><u></u></p><p class="MsoNormal">>>> Configuring hostnames...<u></u><u></u></p><p class="MsoNormal">2/2 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p>
<p class="MsoNormal">>>> Creating cluster user: None (uid: 1001, gid: 1001)<u></u><u></u></p><p class="MsoNormal">2/2 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p><p class="MsoNormal">
>>> Configuring scratch space for user(s): sgeadmin<u></u><u></u></p><p class="MsoNormal">2/2 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p><p class="MsoNormal">>>> Configuring /etc/hosts on each node<u></u><u></u></p>
<p class="MsoNormal">2/2 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p><p class="MsoNormal">>>> Starting NFS server on master<u></u><u></u></p><p class="MsoNormal">>>> Configuring NFS exports path(s):<u></u><u></u></p>
<p class="MsoNormal">/home<u></u><u></u></p><p class="MsoNormal">>>> Mounting all NFS export path(s) on 1 worker node(s)<u></u><u></u></p><p class="MsoNormal">1/1 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p>
<p class="MsoNormal">>>> Setting up NFS took 0.073 mins<u></u><u></u></p><p class="MsoNormal">>>> Configuring passwordless ssh for root<u></u><u></u></p><p class="MsoNormal">>>> Configuring passwordless ssh for sgeadmin<u></u><u></u></p>
<p class="MsoNormal">>>> Shutting down threads...<u></u><u></u></p><p class="MsoNormal">20/20 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p><p class="MsoNormal">>>> Configuring SGE...<u></u><u></u></p>
<p class="MsoNormal">>>> Configuring NFS exports path(s):<u></u><u></u></p><p class="MsoNormal">/opt/sge6<u></u><u></u></p><p class="MsoNormal">>>> Mounting all NFS export path(s) on 1 worker node(s)<u></u><u></u></p>
<p class="MsoNormal">1/1 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p><p class="MsoNormal">>>> Setting up NFS took 0.020 mins<u></u><u></u></p><p class="MsoNormal">>>> Installing Sun Grid Engine...<u></u><u></u></p>
<p class="MsoNormal">1/1 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p><p class="MsoNormal">>>> Creating SGE parallel environment 'orte'<u></u><u></u></p><p class="MsoNormal">
2/2 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p><p class="MsoNormal">>>> Adding parallel environment 'orte' to queue 'all.q'<u></u><u></u></p><p class="MsoNormal">
>>> Shutting down threads...<u></u><u></u></p><p class="MsoNormal">20/20 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%<u></u><u></u></p><p class="MsoNormal">>>> Configuring cluster took 1.325 mins<u></u><u></u></p>
<p class="MsoNormal">>>> Starting cluster took 3.197 mins<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"><span style="font-size:20.0pt;font-family:"Vladimir Script"">Jerry Lee<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Jerry Lee<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Assistant Manager of Global Infrastructure</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">GENEWIZ Inc.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">40 Cragwood Road. Suite 201<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">South Plainfield, NJ 07080</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Phone: <a href="tel:908-222-0711%20ext.%203379" value="+19082220711" target="_blank">908-222-0711 ext. 3379</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Fax: <a href="tel:908-333-4511" value="+19083334511" target="_blank">908-333-4511</a> <u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><a href="mailto:jerry.lee@genewiz.com" target="_blank"><span style="color:blue">jerry.lee@genewiz.com</span></a></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><a href="http://www.genewiz.com/" title="blocked::http://www.genewiz.com/" target="_blank"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue">www.genewiz.com</span></a><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><u></u><u></u></span></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif"">This electronic message, including its attachments, is confidential and proprietary and is solely for the intended recipient. If you are not the intended recipient, this message was sent to you in error and you are hereby advised that any review, disclosure, copying, distribution or use of this message or any of the information included in this message by you is unauthorized and strictly prohibited. If you have received this message in error, please immediately notify the sender by reply to this message and permanently delete all copies of this message and its attachments in your possession. Thank you for your cooperation.</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p></div></div><br><br>---------- Forwarded message ----------<br>From: Sergio Mafra <<a href="mailto:sergiohmafra@gmail.com" target="_blank">sergiohmafra@gmail.com</a>><br>To: "<a href="mailto:starcluster@mit.edu" target="_blank">starcluster@mit.edu</a>" <<a href="mailto:starcluster@mit.edu" target="_blank">starcluster@mit.edu</a>><br>
Cc: <br>Date: Tue, 30 Apr 2013 11:05:45 -0300<br>Subject: [StarCluster] LoadBalance<br><div dir="ltr">Hi fellows,<div><br></div><div>I´m testing StarCluster version 0.999 and so far so good.</div><div>one thing that isn´t working is loadbalance. This is what I get:</div>
<div><br></div><div>
<div>ubuntu@domU-12-31-39-02-19-36:~$ starcluster loadbalance newcam</div><div>StarCluster - (<a href="http://star.mit.edu/cluster" target="_blank">http://star.mit.edu/cluster</a>) (v. 0.9999)</div><div>Software Tools for Academics and Researchers (STAR)</div>
<div>Please submit bug reports to <a href="mailto:starcluster@mit.edu" target="_blank">starcluster@mit.edu</a></div><div><br></div><div>>>> Starting load balancer (Use ctrl-c to exit)</div><div>Maximum cluster size: 3</div>
<div>
Minimum cluster size: 1</div><div>Cluster growth rate: 1 nodes/iteration</div><div><br></div><div>*** WARNING - Failed to retrieve stats (1/5):</div><div>Traceback (most recent call last):</div><div> File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/balancers/sge/__init__.py", line 515, in get_stats</div>
<div> self.stat = self._get_stats()</div><div> File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/balancers/sge/__init__.py", line 487, in _get_stats</div><div> now = self.get_remote_time()</div>
<div> File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/balancers/sge/__init__.py", line 466, in get_remote_time</div><div> return datetime.datetime.strptime(str, "%a %b %d %H:%M:%S UTC %Y")</div>
<div> File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime</div><div> (data_string, format))</div><div>ValueError: time data 'Tue Apr 30 07:01:35 PDT 2013' does not match format '%a %b %d %H:%M:%S UTC %Y'</div>
<div>*** WARNING - Retrying in 60s</div><div>^CTraceback (most recent call last):</div><div> File "/usr/local/bin/starcluster", line 9, in <module></div><div> load_entry_point('StarCluster==0.9999', 'console_scripts', 'starcluster')()</div>
<div> File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/cli.py", line 313, in main</div><div> StarClusterCLI().main()</div><div> File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/cli.py", line 257, in main</div>
<div> sc.execute(args)</div><div> File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/commands/loadbalance.py", line 90, in execute</div><div> lb.run(cluster)</div><div>
File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/balancers/sge/__init__.py", line 576, in run</div>
<div> self.get_stats()</div><div> File "<string>", line 2, in get_stats</div><div> File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/utils.py", line 92, in wrap_f</div>
<div> res = func(*arg, **kargs)</div><div> File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/balancers/sge/__init__.py", line 521, in get_stats</div><div> time.sleep(self.polling_interval)</div>
<div><br></div><div>Any ideas?</div><div><br></div><div>All Best,</div><div><br></div><div>Sergio</div></div></div>
<br>_______________________________________________<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>
<br>_______________________________________________<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></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></div><br></div></div>