<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 15, 2014 at 5:49 PM, Pranith Kumar Karampuri <span dir="ltr">&lt;<a href="mailto:pkarampu@redhat.com" target="_blank">pkarampu@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
    In the latest build I fired for <a href="http://review.gluster.com/7766" target="_blank">review.gluster.com/7766</a> (<a href="http://build.gluster.org/job/regression/4443/console" target="_blank">http://build.gluster.org/job/regression/4443/console</a>) failed because of spurious failure. The script doesn&#39;t wait for nfs export to be available. I fixed that, but interestingly I found quite a few scripts with same problem. Some of the scripts are relying on &#39;sleep 5&#39; which also could lead to spurious failures if the export is not available in 5 seconds. We found that waiting for 20 seconds is better, but &#39;sleep 20&#39; would unnecessarily delay the build execution. So if you guys are going to write any scripts which has to do nfs mounts, please do it the following way:<br>

<br>
EXPECT_WITHIN 20 &quot;1&quot; is_nfs_export_available;<br>
TEST mount -t nfs -o vers=3 $H0:/$V0 $N0;<br></blockquote><div><br></div><div>Always please also add mount -o soft,intr in the regression scripts for mounting nfs. Becomes so much easier to cleanup any &quot;hung&quot; mess. We probably need an NFS mounting helper function which can be called like:</div>
<div><br></div><div>TEST mount_nfs $H0:/$V0 $N0;</div><div><br></div><div>Thanks</div><div><br></div><div>Avati</div></div></div></div>