<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 13, 2015 at 1:36 PM, Niels de Vos <span dir="ltr">&lt;<a href="mailto:ndevos@redhat.com" target="_blank">ndevos@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">On Sat, Jun 13, 2015 at 01:15:04PM +0530, Raghavendra Talur wrote:<br>
&gt; On Sat, Jun 13, 2015 at 1:00 PM, Atin Mukherjee &lt;<a href="mailto:atin.mukherjee83@gmail.com">atin.mukherjee83@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt; Sent from Samsung Galaxy S4<br>
&gt; &gt; On 13 Jun 2015 12:58, &quot;Anand Nekkunti&quot; &lt;<a href="mailto:anekkunt@redhat.com">anekkunt@redhat.com</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hi All<br>
&gt; &gt; &gt;    Rebalance is not working in single node cluster environment ( current<br>
&gt; &gt; test frame work ).  I am getting error in below test , it seems re-balance<br>
&gt; &gt; is not migrated to  current cluster test framework.<br>
&gt; &gt; Could you pin point which test case fails and what log do you see?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; cleanup;<br>
&gt; &gt; &gt; TEST launch_cluster 2;<br>
&gt; &gt; &gt; TEST $CLI_1 peer probe $H2;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; EXPECT_WITHIN $PROBE_TIMEOUT 1 check_peers<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; $CLI_1 volume create $V0 $H1:$B1/$V0  $H2:$B2/$V0<br>
&gt; &gt; &gt; EXPECT &#39;Created&#39; volinfo_field $V0 &#39;Status&#39;;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; $CLI_1 volume start $V0<br>
&gt; &gt; &gt; EXPECT &#39;Started&#39; volinfo_field $V0 &#39;Status&#39;;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; #Mount FUSE<br>
&gt; &gt; &gt; TEST glusterfs -s $H1 --volfile-id=$V0 $M0;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; TEST mkdir $M0/dir{1..4};<br>
&gt; &gt; &gt; TEST touch $M0/dir{1..4}/files{1..4};<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; TEST $CLI_1 volume add-brick $V0 $H1:$B1/${V0}1 $H2:$B2/${V0}1<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; TEST $CLI_1 volume rebalance $V0  start<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; EXPECT_WITHIN 60 &quot;completed&quot; CLI_1_rebalance_status_field $V0<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; $CLI_2 volume status $V0<br>
&gt; &gt; &gt; EXPECT &#39;Started&#39; volinfo_field $V0 &#39;Status&#39;;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; cleanup;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards<br>
&gt; &gt; &gt; Anand.N<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; Gluster-devel mailing list<br>
&gt; &gt; &gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; &gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Gluster-devel mailing list<br>
&gt; &gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; If it is a crash of glusterd when you do rebalance start, it is because of<br>
&gt; FORTIFY_FAIL in libc.<br>
&gt; Here is the patch that Susant has already sent:<br>
&gt; <a href="http://review.gluster.org/#/c/11090/" rel="noreferrer" target="_blank">http://review.gluster.org/#/c/11090/</a><br>
&gt;<br>
&gt; You can verify that it is the same crash by checking the core in gdb; a<br>
&gt; SIGABRT would be raised<br>
&gt; after strncpy.<br>
<br>
</div></div>Sounds like we should use _FORTIFY_SOURCE for running our regression<br>
tests? Patches for build.sh or one of the other scripts are welcome!<br>
<br>
You can get them here:<br>
    <a href="https://github.com/gluster/glusterfs-patch-acceptance-tests/" rel="noreferrer" target="_blank">https://github.com/gluster/glusterfs-patch-acceptance-tests/</a><br>
<br>
Thanks,<br>
Niels<br>
</blockquote></div><div class="gmail_extra"><br></div>Yes, Kaushal and Vijay also agreed to have our regression use this flag.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I have discovered a problem though. For glibc to detect these possible overflows,</div><div class="gmail_extra">we need to have -D_FORTIFY_SOURCE at level 2 and -O optimization flag at minimum of</div><div class="gmail_extra">1 with 2 as recommended.</div><div class="gmail_extra">Read this for more info: <a href="https://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html">https://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html</a></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Not sure if having -O2 will lead to debugging other cores difficult.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">If nobody objects to O2, I think I have created a pull request correctly.</div><div class="gmail_extra">Please merge.</div><div class="gmail_extra"><a href="https://github.com/gluster/glusterfs-patch-acceptance-tests/pull/1">https://github.com/gluster/glusterfs-patch-acceptance-tests/pull/1</a><br></div><div class="gmail_extra"><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font color="#666666"><b>Raghavendra Talur </b></font><div><br></div></div></div>
</div></div>