<p dir="ltr"></p>
<p dir="ltr">Sent from Samsung Galaxy S4<br>
On 13 Jun 2015 14:11, &quot;Raghavendra Talur&quot; &lt;<a href="mailto:raghavendra.talur@gmail.com">raghavendra.talur@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Jun 13, 2015 at 1:36 PM, Niels de Vos &lt;<a href="mailto:ndevos@redhat.com">ndevos@redhat.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Sat, Jun 13, 2015 at 01:15:04PM +0530, Raghavendra Talur wrote:<br>
&gt;&gt; &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;&gt; &gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt; Sent from Samsung Galaxy S4<br>
&gt;&gt; &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; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; Hi All<br>
&gt;&gt; &gt; &gt; &gt;    Rebalance is not working in single node cluster environment ( current<br>
&gt;&gt; &gt; &gt; test frame work ).  I am getting error in below test , it seems re-balance<br>
&gt;&gt; &gt; &gt; is not migrated to  current cluster test framework.<br>
&gt;&gt; &gt; &gt; Could you pin point which test case fails and what log do you see?<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; cleanup;<br>
&gt;&gt; &gt; &gt; &gt; TEST launch_cluster 2;<br>
&gt;&gt; &gt; &gt; &gt; TEST $CLI_1 peer probe $H2;<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; EXPECT_WITHIN $PROBE_TIMEOUT 1 check_peers<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; $CLI_1 volume create $V0 $H1:$B1/$V0  $H2:$B2/$V0<br>
&gt;&gt; &gt; &gt; &gt; EXPECT &#39;Created&#39; volinfo_field $V0 &#39;Status&#39;;<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; $CLI_1 volume start $V0<br>
&gt;&gt; &gt; &gt; &gt; EXPECT &#39;Started&#39; volinfo_field $V0 &#39;Status&#39;;<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; #Mount FUSE<br>
&gt;&gt; &gt; &gt; &gt; TEST glusterfs -s $H1 --volfile-id=$V0 $M0;<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; TEST mkdir $M0/dir{1..4};<br>
&gt;&gt; &gt; &gt; &gt; TEST touch $M0/dir{1..4}/files{1..4};<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; TEST $CLI_1 volume add-brick $V0 $H1:$B1/${V0}1 $H2:$B2/${V0}1<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; TEST $CLI_1 volume rebalance $V0  start<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; EXPECT_WITHIN 60 &quot;completed&quot; CLI_1_rebalance_status_field $V0<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; $CLI_2 volume status $V0<br>
&gt;&gt; &gt; &gt; &gt; EXPECT &#39;Started&#39; volinfo_field $V0 &#39;Status&#39;;<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; cleanup;<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; Regards<br>
&gt;&gt; &gt; &gt; &gt; Anand.N<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; &gt; &gt; Gluster-devel mailing list<br>
&gt;&gt; &gt; &gt; &gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt;&gt; &gt; &gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; &gt; Gluster-devel mailing list<br>
&gt;&gt; &gt; &gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt;&gt; &gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; If it is a crash of glusterd when you do rebalance start, it is because of<br>
&gt;&gt; &gt; FORTIFY_FAIL in libc.<br>
&gt;&gt; &gt; Here is the patch that Susant has already sent:<br>
&gt;&gt; &gt; <a href="http://review.gluster.org/#/c/11090/">http://review.gluster.org/#/c/11090/</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; You can verify that it is the same crash by checking the core in gdb; a<br>
&gt;&gt; &gt; SIGABRT would be raised<br>
&gt;&gt; &gt; after strncpy.<br>
&gt;&gt;<br>
&gt;&gt; Sounds like we should use _FORTIFY_SOURCE for running our regression<br>
&gt;&gt; tests? Patches for build.sh or one of the other scripts are welcome!<br>
&gt;&gt;<br>
&gt;&gt; You can get them here:<br>
&gt;&gt;     <a href="https://github.com/gluster/glusterfs-patch-acceptance-tests/">https://github.com/gluster/glusterfs-patch-acceptance-tests/</a><br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Niels<br>
&gt;<br>
&gt;<br>
&gt; Yes, Kaushal and Vijay also agreed to have our regression use this flag.<br>
&gt;<br>
&gt; I have discovered a problem though. For glibc to detect these possible overflows,<br>
&gt; we need to have -D_FORTIFY_SOURCE at level 2 and -O optimization flag at minimum of<br>
&gt; 1 with 2 as recommended.<br>
&gt; 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><br>
&gt;<br>
&gt;<br>
&gt; Not sure if having -O2 will lead to debugging other cores difficult.<br>
&gt;<br>
&gt;<br>
&gt; If nobody objects to O2, I think I have created a pull request correctly.<br>
&gt; Please merge.<br>
&gt; <a href="https://github.com/gluster/glusterfs-patch-acceptance-tests/pull/1">https://github.com/gluster/glusterfs-patch-acceptance-tests/pull/1</a><br>
I feel we should try to maintain uniformity at all the places as far as compilation flags are concerned.<br>
&gt;<br>
&gt;<br>
&gt; -- <br>
&gt; Raghavendra Talur <br>
&gt;<br>
</p>