<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Mike and Jon,</span></div><div><br><span></span></div><div><span>Thank you for all the guidance. It seems even ifconfig is not returning the IP address with both profiles. So I just dropped a mail to zeptoos mailing list to get further help (I cc-d to swift-dev too).</span></div><div><br><span></span></div><div><span>Meantime I am going to proceed with setting up Mosa as an intermediate store.<br></span></div><div><br><span></span></div><div><span>Thank you</span></div><div><span>Emalayan<br></span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Jonathan Monette
<jonmon@mcs.anl.gov><br> <b><span style="font-weight: bold;">To:</span></b> Michael Wilde <wilde@mcs.anl.gov> <br><b><span style="font-weight: bold;">Cc:</span></b> Emalayan Vairavanathan <svemalayan@yahoo.com>; "swift-devel@ci.uchicago.edu Devel" <swift-devel@ci.uchicago.edu>; "emalayan@ece.ubc.ca" <emalayan@ece.ubc.ca>; MosaStore <mosastore@googlegroups.com>; Justin M Wozniak <wozniak@mcs.anl.gov> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, 3 March 2012 3:21 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Swift-devel] coasters-hosts.pl script<br> </font> </div> <br>Sure. I can help him debug and get the ip addresses he needs. <br><br>On Mar 3, 2012, at 9:40 AM, Michael Wilde <<a ymailto="mailto:wilde@mcs.anl.gov" href="mailto:wilde@mcs.anl.gov">wilde@mcs.anl.gov</a>> wrote:<br><br>> Jon, thanks - I missed your note when I signed off last night. We did
a few more tests and verified that on the default zeptoos kernel, hostname was returning a numeric dotted IP address like 172.nnn.nnn.nnn, while on the special kernel fixed for Mosa it was returning "(none)". So it seems like some config issue in that kernel profile.<br>> <br>> Emalyan was going to try to patch the call to hostname with a script that pulls the IP address from ifconfig or some other source.<br>> <br>> He was also going to try the compute node login procedure (ssh-telnet), and report if it still doesnt work, as that would be handy for debugging in this case.<br>> <br>> For the moment we were debugging this with cqsub jobs. Im gonna drop out and leave this to you and Emalayan. (I just happened to be online when he reported this problem).<br>> <br>> Thanks,<br>> <br>> - Mike<br>> <br>> <br>> ----- Original Message -----<br>>> From: "Jonathan Monette" <<a
ymailto="mailto:jonmon@mcs.anl.gov" href="mailto:jonmon@mcs.anl.gov">jonmon@mcs.anl.gov</a>><br>>> To: "Michael Wilde" <<a ymailto="mailto:wilde@mcs.anl.gov" href="mailto:wilde@mcs.anl.gov">wilde@mcs.anl.gov</a>><br>>> Cc: "Emalayan Vairavanathan" <<a ymailto="mailto:svemalayan@yahoo.com" href="mailto:svemalayan@yahoo.com">svemalayan@yahoo.com</a>>, "<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a> Devel"<br>>> <<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>>, <a ymailto="mailto:emalayan@ece.ubc.ca" href="mailto:emalayan@ece.ubc.ca">emalayan@ece.ubc.ca</a>, "MosaStore" <<a ymailto="mailto:mosastore@googlegroups.com" href="mailto:mosastore@googlegroups.com">mosastore@googlegroups.com</a>>, "Justin M Wozniak"<br>>> <<a ymailto="mailto:wozniak@mcs.anl.gov"
href="mailto:wozniak@mcs.anl.gov">wozniak@mcs.anl.gov</a>><br>>> Sent: Friday, March 2, 2012 9:46:07 PM<br>>> Subject: Re: [Swift-devel] coasters-hosts.pl script<br>>> I was just about to send with this exact information. : )<br>>> <br>>> I do not think that hostname not being in the PATH would cause "none"<br>>> to appear. hostname has to be configured to return what you want it<br>>> to. If it wasn't in the path I think there would be more problems with<br>>> the worker since it would return an error for the binary not being<br>>> found, but I could be wrong there.<br>>> <br>>> But I echo Mike's debugging suggestions to diagnose the problems. Try<br>>> sshing/telnetting to the compute node to check out the environment<br>>> that the worker sees while it is running.<br>>> <br>>> On Mar 2, 2012, at 9:31 PM, Michael Wilde wrote:<br>>> <br>>>>
Emalayan,<br>>>> <br>>>> The problem may be due to the hostname command returning something<br>>>> unexpected (perhaps null) on the worker nodes when booted under that<br>>>> kernel profile.<br>>>> <br>>>> These lines are in worker.pl:<br>>>> <br>>>> my $myhost=`hostname`;<br>>>> $myhost =~ s/\s+$//;<br>>>> ...<br>>>> wlog(INFO, "Running on node $myhost\n");<br>>>> <br>>>> To debug this, it seems useful to be able to login to the compute<br>>>> nodes via the ssh-telnet procedure. That seems not to work last time<br>>>> we tried - perhaps that should be debugged.<br>>>> <br>>>> Also, you could run simple test jobs with cqsub to print the output<br>>>> (and location) of the hostname command.<br>>>> <br>>>> Perhaps hostname is not in the PATH for worker nodes booted
under<br>>>> that kernel???<br>>>> <br>>>> I recall in the distant past we used to need to do various PATH and<br>>>> LD_LIBRARY_PATH initialization steps to get the right /bin and<br>>>> /usr/bin for the ZeptoOS nodes. Maybe something is broken in that<br>>>> regard for the alternate kernel profile?<br>>>> <br>>>> - Mike<br>>>> <br>>>> <br>>>> <br>>>> ----- Original Message -----<br>>>>> From: "Emalayan Vairavanathan" <<a ymailto="mailto:svemalayan@yahoo.com" href="mailto:svemalayan@yahoo.com">svemalayan@yahoo.com</a>><br>>>>> To: "Jonathan Monette" <<a ymailto="mailto:jonmon@mcs.anl.gov" href="mailto:jonmon@mcs.anl.gov">jonmon@mcs.anl.gov</a>>, "Justin M Wozniak"<br>>>>> <<a ymailto="mailto:wozniak@mcs.anl.gov" href="mailto:wozniak@mcs.anl.gov">wozniak@mcs.anl.gov</a>><br>>>>> Cc:
"<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a> Devel"<br>>>>> <<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>>, <a ymailto="mailto:emalayan@ece.ubc.ca" href="mailto:emalayan@ece.ubc.ca">emalayan@ece.ubc.ca</a>, "MosaStore"<br>>>>> <<a ymailto="mailto:mosastore@googlegroups.com" href="mailto:mosastore@googlegroups.com">mosastore@googlegroups.com</a>><br>>>>> Sent: Friday, March 2, 2012 9:13:30 PM<br>>>>> Subject: Re: [Swift-devel] coasters-hosts.pl script<br>>>>> Hi Jon,<br>>>>> <br>>>>> <br>>>>> Thank you again for your time and very quick fix. I tested the fix<br>>>>> with zeptoos and zepto-vn-eval/mosatest kernel profiles. The fix<br>>>>> only<br>>>>> worked
with zeptoos. It did not work with zepto-vn-eval/mosatest<br>>>>> (This<br>>>>> profile contains some Mosastore related bug fixes so to run<br>>>>> MosaStore<br>>>>> we need this profile ).<br>>>>> <br>>>>> <br>>>>> <br>>>>> The reason is:<br>>>>> <br>>>>> <br>>>>> I can generate worker-hosts.txt only with zeptoos and it did not<br>>>>> work<br>>>>> with zepto-vn-eval/mosatest. This is because coasters-hosts.pl<br>>>>> extract<br>>>>> worker IP address from workers log files. But with<br>>>>> zepto-vn-eval/mosatest worker log files didnt contain the IP<br>>>>> address.<br>>>>> Please see the log messages attached below.<br>>>>> <br>>>>> <br>>>>> <br>>>>> <br>>>>>
<br>>>>> Do you have any idea ? It took few hours for me to narrow down the<br>>>>> problem and find out that the issue is with kernel-profile . I hope<br>>>>> this information will help you.<br>>>>> <br>>>>> <br>>>>> <br>>>>> <br>>>>> <br>>>>> Thank you<br>>>>> Emalayan<br>>>>> <br>>>>> <br>>>>> <br>>>>> <br>>>>> With zeptoos :<br>>>>> <br>>>>> <br>>>>> 2012/03/03 02:41:01.492 INFO - 2012.0303.023831.32459 Logging<br>>>>> started:<br>>>>> Sat Mar 3 02:41:01 2012<br>>>>> 2012/03/03 02:41:01.492 INFO - 2012.0303.023831.32459 Logging<br>>>>> started:<br>>>>> Sat Mar 3 02:41:01 2012<br>>>>> 2012/03/03 02:41:01.494 INFO - Running on node 172.18.1.19<br>>>>>
2012/03/03 02:41:01.494 DEBUG - uri=<a href="http://172.17.3.12:22346" target="_blank" >http://172.17.3.12:22346</a><br>>>>> 2012/03/03 02:41:01.494 DEBUG - scheme=http<br>>>>> 2012/03/03 02:41:01.495 DEBUG - host=172.17.3.12<br>>>>> 2012/03/03 02:41:01.495 DEBUG - port=22346<br>>>>> 2012/03/03 02:41:01.495 DEBUG - blockid=2012.0303.023831.32459<br>>>>> <br>>>>> <br>>>>> With zepto-vn-eval/mosatest:<br>>>>> <br>>>>> <br>>>>> 2012/03/03 02:50:40.667 INFO - 2012.0303.024814.15474 Logging<br>>>>> started:<br>>>>> Sat Mar 3 02:50:40 2012<br>>>>> 2012/03/03 02:50:40.683 INFO - Running on node (none)<br>>>>> 2012/03/03 02:50:40.684 DEBUG - uri=<a href="http://172.17.3.12:22346" target="_blank" >http://172.17.3.12:22346</a><br>>>>> 2012/03/03 02:50:40.684 DEBUG -
scheme=http<br>>>>> 2012/03/03 02:50:40.685 DEBUG - host=172.17.3.12<br>>>>> 2012/03/03 02:50:40.685 DEBUG - port=22346<br>>>>> 2012/03/03 02:50:40.686 DEBUG - blockid=2012.0303.024814.15474<br>>>>> <br>>>>> <br>>>>> <br>>>>> <br>>>>> <br>>>>> <br>>>>> From: Jonathan Monette <<a ymailto="mailto:jonmon@mcs.anl.gov" href="mailto:jonmon@mcs.anl.gov">jonmon@mcs.anl.gov</a>><br>>>>> To: Justin M Wozniak <<a ymailto="mailto:wozniak@mcs.anl.gov" href="mailto:wozniak@mcs.anl.gov">wozniak@mcs.anl.gov</a>><br>>>>> Cc: "<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a> Devel"<br>>>>> <<a ymailto="mailto:swift-devel@ci.uchicago.edu"
href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>>;<br>>>>> <a ymailto="mailto:emalayan@ece.ubc.ca" href="mailto:emalayan@ece.ubc.ca">emalayan@ece.ubc.ca</a><br>>>>> Sent: Friday, 2 March 2012 2:21 PM<br>>>>> Subject: Re: [Swift-devel] coasters-hosts.pl script<br>>>>> <br>>>>> Emalayan,<br>>>>> We believe we have fixed the issue. You can copy the new<br>>>>> coasters-hosts.pl script from<br>>>>> ~jonmon/surveyor/worker-init-test/coasters-hosts.pl<br>>>>> <br>>>>> This script reads the worker logs located in the logs directory.<br>>>>> The<br>>>>> steps to run are as follows:<br>>>>> start-coaster-service<br>>>>> <wait for workers to start><br>>>>> ./coasters-hosts.pl logs/worker-*.log > worker-hosts.txt<br>>>>>
<br>>>>> You MUST clean out the worker logs after you before you start a new<br>>>>> coaster service to make sure the script searches the right worker<br>>>>> log<br>>>>> files. This may not be ideal at the moment but this will help get<br>>>>> you<br>>>>> started. If you have any other questions feel free to ask. We will<br>>>>> need to update the mosaswift site with the new information, we will<br>>>>> do<br>>>>> this soon.<br>>>>> <br>>>>> On Mar 2, 2012, at 11:26 AM, Jonathan Monette wrote:<br>>>>> <br>>>>>> Can we match this line: 2012/03/02 17:16:04.712 INFO - Running on<br>>>>>> node 172.18.1.83 from the worker log,<br>>>>>> instead of this line: 2012-03-02 17:21:25,214+0000 DEBUG Cpu<br>>>>>> worker<br>>>>>> started:
block=2012.0302.171344.704 host=172.18.1.83 id=0 from the<br>>>>>> cps log?<br>>>>>> <br>>>>>> They both provide the same ip addresses. And the worker log always<br>>>>>> has that ip address before the cps log does.<br>>>>>> <br>>>>>> On Mar 2, 2012, at 11:15 AM, Jonathan Monette wrote:<br>>>>>> <br>>>>>>> That fix still did not work. I had moved it to the same spot. It<br>>>>>>> is<br>>>>>>> still waiting for the worker-init.pl script to finish before the<br>>>>>>> ip<br>>>>>>> addresses are printed to the cps log. Those ip addresses are what<br>>>>>>> is needed by the coaster-hosts.pl script to finish. If I create<br>>>>>>> an<br>>>>>>> empty file for the coaster-host.pl script to read, then the
work<br>>>>>>> continues and the ip addresses show up in the cps log.<br>>>>>>> <br>>>>>>> Why is log4j waiting to add those lines to the cps log after the<br>>>>>>> worker-init.pl script is finished?<br>>>>>>> <br>>>>>>> On Mar 2, 2012, at 11:05 AM, Jonathan Monette wrote:<br>>>>>>> <br>>>>>>>> Thanks, in my copy I thought I had moved the reconnect to before<br>>>>>>>> the init-cmd and it still wasn't working. I will test with your<br>>>>>>>> change. I just verified that it was indeed waiting for the<br>>>>>>>> worker-init.pl script to finish. I created an empty file for the<br>>>>>>>> script to read and it finished connecting and the ip addresses I<br>>>>>>>> needed were added to the cps log. I will also
be testing your<br>>>>>>>> fix.<br>>>>>>>> <br>>>>>>>> On Mar 2, 2012, at 11:01 AM, Justin M Wozniak wrote:<br>>>>>>>> <br>>>>>>>>> <br>>>>>>>>> Yes- I must have tested this with a different log file. I just<br>>>>>>>>> checked in and installed in ~wozniak/Public a fix for this that<br>>>>>>>>> launches WORKER_INIT_CMD after the reconnect(). I am a little<br>>>>>>>>> worried about time outs but it works so far. I will continue<br>>>>>>>>> testing...<br>>>>>>>>> Justin<br>>>>>>>>> <br>>>>>>>>> On Thu, 1 Mar 2012, Jonathan Monette wrote:<br>>>>>>>>> <br>>>>>>>>>> Justin,<br>>>>>>>>>>
So I have been trying to help Emalayan get the host list file<br>>>>>>>>>> for the worker-init.pl script. It seems the cps log file is<br>>>>>>>>>> not<br>>>>>>>>>> providing the ip addresses for the coasters-hosts.pl script. I<br>>>>>>>>>> thought this was maybe because we did not have the correct<br>>>>>>>>>> log4j<br>>>>>>>>>> setting set but we have the Coaster service Cpu set to DEBUG.<br>>>>>>>>>> So<br>>>>>>>>>> for some reason the workers are not connecting to the service.<br>>>>>>>>>> When I comment out the export WORKER_ENVIRONEMTN="…" line in<br>>>>>>>>>> the<br>>>>>>>>>> coaster-service.conf file I see the workers connect and
the<br>>>>>>>>>> cps<br>>>>>>>>>> log file shows there ip addresses. However when setting this<br>>>>>>>>>> line it seems they are not connecting.<br>>>>>>>>>> <br>>>>>>>>>> Emalayan thought there might be some sort of circular<br>>>>>>>>>> dependency<br>>>>>>>>>> going with the host-list file and the worker. The worker<br>>>>>>>>>> requires the host-list file so that it can run the<br>>>>>>>>>> worker-init.pl script and then connect but the host-list file<br>>>>>>>>>> cannot be generated because the workers cannot connect. I<br>>>>>>>>>> noticed in your swift-test directory the cps files did have<br>>>>>>>>>>
the<br>>>>>>>>>> ip addresses set and coasters-hosts.pl found the ip addresses<br>>>>>>>>>> and reported them. Did you try that test with setting the<br>>>>>>>>>> WORKER_ENVIRONMENT variable in the coaster-service.conf file?<br>>>>>>>>>> Any idea what may be happening? The job is running when<br>>>>>>>>>> looking<br>>>>>>>>>> under cqstat.<br>>>>>>>>>> <br>>>>>>>>>> A side note: At the mosaswift site, your example talks about<br>>>>>>>>>> running the coasters-hosts.pl on the cps log but the example<br>>>>>>>>>> you<br>>>>>>>>>> provide runs it on logs/coasters.log. This may need to be<br>>>>>>>>>> changed. Also, should provide the
log4j setting that is<br>>>>>>>>>> required<br>>>>>>>>>> to generate the Cpu line with the worker ip address just to<br>>>>>>>>>> clarify that this line should be set for this script to work.<br>>>>>>>>>> <br>>>>>>>>>> For reference, this line:<br>>>>>>>>>> log4j.logger.org.globus.cog.abstraction.coaster.service.job.manager.Cpu=DEBUG<br>>>>>>>>> <br>>>>>>>>> --<br>>>>>>>>> Justin M Wozniak<br>>>>>>>> <br>>>>>>>> _______________________________________________<br>>>>>>>> Swift-devel mailing list<br>>>>>>>> <a ymailto="mailto:Swift-devel@ci.uchicago.edu"
href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>>>>>>>> <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>>>>>>> <br>>>>>>> _______________________________________________<br>>>>>>> Swift-devel mailing list<br>>>>>>> <a ymailto="mailto:Swift-devel@ci.uchicago.edu" href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>>>>>>> <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>>>>>> <br>>>>>> _______________________________________________<br>>>>>> Swift-devel mailing list<br>>>>>> <a
ymailto="mailto:Swift-devel@ci.uchicago.edu" href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>>>>>> <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>>>>> <br>>>>> _______________________________________________<br>>>>> Swift-devel mailing list<br>>>>> <a ymailto="mailto:Swift-devel@ci.uchicago.edu" href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>>>>> <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>>>>> <br>>>>> <br>>>>> <br>>>>> _______________________________________________<br>>>>> Swift-devel mailing list<br>>>>> <a
ymailto="mailto:Swift-devel@ci.uchicago.edu" href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>>>>> <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>>>> <br>>>> --<br>>>> Michael Wilde<br>>>> Computation Institute, University of Chicago<br>>>> Mathematics and Computer Science Division<br>>>> Argonne National Laboratory<br>>>> <br>> <br>> -- <br>> Michael Wilde<br>> Computation Institute, University of Chicago<br>> Mathematics and Computer Science Division<br>> Argonne National Laboratory<br>> <br><br><br> </div> </div> </div></body></html>