<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13368</bug_id>
          
          <creation_ts>2019-05-29 15:57:39 +0000</creation_ts>
          <short_desc>mdadm ptest times out</short_desc>
          <delta_ts>2019-09-09 03:27:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Changqing Li">changqing.li</assigned_to>
          <cc>ee.peng.yeoh</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sangeeta.jain</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83977</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-05-29 15:57:39 +0000</bug_when>
    <thetext>The ptests for mdadm are timing out rather than running:

https://autobuilder.yocto.io/pub/non-release/20190529-5/testresults/testresult-report.txt

I confirmed from the commandline that the tests do just hang, reason is unknown, its also not known when this started happening. I ruled out gcc8 verses 9 though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84377</commentid>
    <comment_count>1</comment_count>
    <who name="Sangeeta Jain">sangeeta.jain</who>
    <bug_when>2019-07-05 06:10:05 +0000</bug_when>
    <thetext>The ptests for mdadm are timing out in 2.7.1 rc1 as well. 

https://autobuilder.yocto.io/pub/releases/yocto-2.7.1.rc1/testresults/testresult-report.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84396</commentid>
    <comment_count>2</comment_count>
    <who name="Mingli Yu">mingli.yu</who>
    <bug_when>2019-07-10 09:15:22 +0000</bug_when>
    <thetext>The below two cases make mdadm ptest hang:

/usr/lib64/mdadm/ptest/tests/01r5integ

/usr/lib64/mdadm/ptest/tests/01raid6integ


Both cases have below logic to wait for the array to be fully optimal before proceeding.
while ! (check state &apos;U*&apos;); do check wait; sleep 0.2; done

BTW, mdadm has lower pass rate in qemu env, it&apos;s better to run the mdadm test in the real board.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84435</commentid>
    <comment_count>3</comment_count>
    <who name="Mingli Yu">mingli.yu</who>
    <bug_when>2019-07-17 03:29:20 +0000</bug_when>
    <thetext>Fixed by https://git.openembedded.org/openembedded-core/commit/?id=b507793f4adde0c60588b06520d7d0b70acfd82a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84554</commentid>
    <comment_count>4</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2019-08-01 02:05:18 +0000</bug_when>
    <thetext>QA team found mdadm timeout in qemuarm64 testresults below:
https://autobuilder.yocto.io/pub/releases/yocto-2.8_M2.rc1/testresults/qemuarm64-ptest/testresults.json

Log:
PASS: /usr/lib/mdadm/ptest/tests/10ddf-sudden-degraded
ERROR: Exit status is 9
DURATION: 736</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84603</commentid>
    <comment_count>5</comment_count>
    <who name="Mingli Yu">mingli.yu</who>
    <bug_when>2019-08-08 09:41:43 +0000</bug_when>
    <thetext>seems the test 11spare-migration hangs on qemuarm64.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84614</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-08-08 15:03:13 +0000</bug_when>
    <thetext>Grace, so are you going to debug the hang?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84727</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-08-22 14:48:25 +0000</bug_when>
    <thetext>Any news Sandy?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84839</commentid>
    <comment_count>8</comment_count>
    <who name="Changqing Li">changqing.li</who>
    <bug_when>2019-08-30 06:51:07 +0000</bug_when>
    <thetext>I test on qemux86-64 and qemuarm64,   mdadm timeouted with default cmd: 
ptest-runner mdadm.


But it can completed if I set timeout longger:

ptest-runner mdadm -t 6000


Below is result on qemuarm64:
....
FAIL: /usr/lib/mdadm/ptest/tests/19repair-does-not-destroyFAILED - see //19repair-does-not-destroy.log and //fail19repair-does-not-destroy.log for details
FAIL: /usr/lib/mdadm/ptest/tests/20raid5journalFAILED - see //20raid5journal.log and //fail20raid5journal.log for details
FAIL: /usr/lib/mdadm/ptest/tests/21raid5cacheFAILED - see //21raid5cache.log and //fail21raid5cache.log for details
DURATION: 1788
END: /usr/lib/mdadm/ptest
2019-08-30T06:19
STOP: ptest-runner

@Randy @Richard
As mingli also said before, &quot;mdadm has lower pass rate in qemu env, it&apos;s better to run the mdadm test in the real board.&quot;, do you really need this test in PTESTS_SLOW?  I am wondering if we only skip slow subcase or remove the whole mdadm test.

if only skip subcase, I will skip 11spare-migration, I  have test on qemuarm64, skip this one can make mdadm test not timeout</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84865</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-09-03 18:26:13 +0000</bug_when>
    <thetext>I don&apos;t object to skipping the slow test for 3.0 so you could send that for now.
Best if you briefly explain what the 11spare-migration test is doing and report on how long it takes under qemuarm64.

It would be nice to understand why it&apos;s so slow in case that reveals deeper problems. You could run the one test under [sl]trace -o /tmp/mdadm.trc -f -ttt ... to learn more today or under this defect during 3.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84884</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-09-05 14:47:06 +0000</bug_when>
    <thetext>Please skip the test ASAP for M3 and we can downgrade the investigation to not block M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84904</commentid>
    <comment_count>11</comment_count>
    <who name="Changqing Li">changqing.li</who>
    <bug_when>2019-09-09 03:27:52 +0000</bug_when>
    <thetext>https://git.openembedded.org/openembedded-core/commit/?id=47c4ad9bd43d3b0539a19691bd4deb19ea63c3a7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>