<?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>8304</bug_id>
          
          <creation_ts>2015-09-15 18:31:59 +0000</creation_ts>
          <short_desc>smart sanity test failed to find filelist.xml.gz</short_desc>
          <delta_ts>2015-10-28 15:59:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Package Management Issues</product>
          <component>RPM</component>
          <version>1.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://errors.yoctoproject.org/Errors/Details/17546/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          <blocked>8249</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Saul Wold">sgw</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>mariano.lopez</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="Lucian Musat">georgex.l.musat</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Found by QA test)</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>54106</commentid>
    <comment_count>0</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-09-15 18:31:59 +0000</bug_when>
    <thetext>During the SmartRepoTest, the filelists.xml.gz is not available, this appears to be a transient issue and may have resulted from another build attempting to write that file at the same time this test was running.


======================================================================
FAIL: test_smart_channel_add (oeqa.runtime.smart.SmartRepoTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64-lsb/build/meta/lib/oeqa/utils/decorators.py&quot;, line 102, in wrapped_f
    return func(*args)
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64-lsb/build/meta/lib/oeqa/runtime/smart.py&quot;, line 80, in test_smart_channel_add
    self.smart(&apos;update&apos;)
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64-lsb/build/meta/lib/oeqa/utils/decorators.py&quot;, line 90, in wrapped_f
    return f(*args)
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64-lsb/build/meta/lib/oeqa/runtime/smart.py&quot;, line 22, in smart
    self.assertEqual(status, expected, message)
AssertionError: 1 != 0 : smart update
Loading cache...
Updating cache...               ######################################## [100%]

                                                                               
Fetching information for &apos;all&apos;...
                                                                               
-&gt; http://192.168.7.7:33381/rpm/all/repodata/repomd.xml
repomd.xml                      ######################################## [ 16%]
                                                                               
-&gt; http://192.168.7.7:33381/rpm/all/repodata/filelists.xml.gz
filelists.xml.gz                ######################################## [ 25%]
                                                                               
-&gt; http://192.168.7.7:33381/rpm/all/repodata/primary.xml.gz
primary.xml.gz                  ######################################## [ 33%]
                                                                               
Fetching information for &apos;qemux86_64&apos;...
                                                                               
-&gt; http://192.168.7.7:33381/rpm/qemux86_64/repodata/repomd.xml
repomd.xml                      ######################################## [ 50%]
error: Failed acquiring information for &apos;qemux86_64&apos;:
error: http://192.168.7.7:33381/rpm/qemux86_64/repodata/filelists.xml.gz: None
                                                                               
Fetching information for &apos;core2_64&apos;...
                                                                               
-&gt; http://192.168.7.7:33381/rpm/qemux86_64/repodata/primary.xml.gz
primary.xml.gz                  ######################################## [ 66%]
                                                                               
-&gt; http://192.168.7.7:33381/rpm/qemux86_64/repodata/filelists.xml.gz
filelists.xml.gz                ######################################## [ 75%]
                                                                               
-&gt; http://192.168.7.7:33381/rpm/core2_64/repodata/repomd.xml
repomd.xml                      ######################################## [ 83%]
                                                                               
-&gt; http://192.168.7.7:33381/rpm/core2_64/repodata/primary.xml.gz
primary.xml.gz                  ######################################## [ 91%]
                                                                               
-&gt; http://192.168.7.7:33381/rpm/core2_64/repodata/filelists.xml.gz
filelists.xml.gz                ######################################## [100%]

Updating cache...               ######################################## [100%]

Channels have 4667 new packages.
Saving cache...

----------------------------------------------------------------------
Ran 46 tests in 1170.443s

FAILED (failures=1, skipped=15)
NOTE: Stopping logging thread
NOTE: Stop event received
NOTE: Tearing down logging thread
NOTE: Sending SIGTERM to runqemu
DEBUG: Python function do_testimage finished
ERROR: Function failed: core-image-lsb - FAILED - check the task log and the ssh log</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54407</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2015-09-21 19:36:44 +0000</bug_when>
    <thetext>Seems to be the same or very similar report:

http://errors.yoctoproject.org/Errors/Details/17546/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54499</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2015-09-22 22:36:49 +0000</bug_when>
    <thetext>I left this test running iterated to see if I can run into the failure.

So far, 8 iterations and no failures.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55401</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-10-16 15:44:51 +0000</bug_when>
    <thetext>Could be due to qemu networking glitch but how/why/when?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55405</commentid>
    <comment_count>4</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2015-10-16 21:58:58 +0000</bug_when>
    <thetext>Looking for more occurrences of the error for analysis</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55458</commentid>
    <comment_count>5</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-10-19 19:37:07 +0000</bug_when>
    <thetext>Unfortunately the logs on the autobuilder are gone (qemu, ssh, tests, and dumps)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55466</commentid>
    <comment_count>6</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-10-20 02:10:26 +0000</bug_when>
    <thetext>Tried to reproduce the bug simulating a network error between the host and the target (I disable eth0 in the target for 30 seconds and the I enabled it again). Here is the log:

| ======================================================================
| FAIL: test_smart_channel_add (oeqa.runtime.smart.SmartRepoTest)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
|   File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/utils/decorators.py&quot;, line 106, in wrapped_f
|     return func(*args)
|   File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/runtime/smart.py&quot;, line 80, in test_smart_channel_add
|     self.smart(&apos;update&apos;)
|   File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/utils/decorators.py&quot;, line 94, in wrapped_f
|     return f(*args)
|   File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/runtime/smart.py&quot;, line 22, in smart
|     self.assertEqual(status, expected, message)
| AssertionError: 1 != 0 : smart update
| Loading cache...
| Updating cache...               ######################################## [100%]
| 
Fetching information for &apos;all&apos;...                                                
-&gt; http://192.168.7.1:38460/rpm/all/repodata/repomd.xml                          
| repomd.xml                      ######################################## [ 16%]
-&gt; http://192.168.7.1:38460/rpm/all/repodata/filelists.xml.gz                    
| filelists.xml.gz                ######################################## [ 25%]
-&gt; http://192.168.7.1:38460/rpm/all/repodata/primary.xml.gz                      
| primary.xml.gz                  ######################################## [ 33%]
| 
| Fetching information for &apos;qemux86_64&apos;...
-&gt; http://192.168.7.1:38460/rpm/qemux86_64/repodata/repomd.xml                   
| repomd.xml                      ######################################## [ 50%]
-&gt; http://192.168.7.1:38460/rpm/qemux86_64/repodata/filelists.xml.gz             
| filelists.xml.gz                ######################################## [ 58%]
-&gt; http://192.168.7.1:38460/rpm/qemux86_64/repodata/primary.xml.gz               
| primary.xml.gz                  ######################################## [ 66%]
| 
| Fetching information for &apos;core2_64&apos;...
-&gt; http://192.168.7.1:38460/rpm/core2_64/repodata/repomd.xml                     
| repomd.xml                                                               [ 75%]
| error: Failed acquiring release file for &apos;core2_64&apos;:
| error: http://192.168.7.1:38460/rpm/core2_64/repodata/repomd.xml: [Errno 101] Network is unreachable
| 
| Updating cache...               ######################################## [100%]
| 
| Channels have 476 new packages.
| Saving cache...
| 
| ======================================================================
| FAIL: test_smart_local_dir (oeqa.runtime.smart.SmartRepoTest)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
|   File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/utils/decorators.py&quot;, line 106, in wrapped_f
|     return func(*args)
|   File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/runtime/smart.py&quot;, line 145, in test_smart_local_dir
|     self.smart(&apos;download psplash&apos;)
|   File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/utils/decorators.py&quot;, line 94, in wrapped_f
|     return f(*args)
|   File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/runtime/smart.py&quot;, line 22, in smart
|     self.assertEqual(status, expected, message)
| AssertionError: 1 != 0 : smart download psplash
| Loading cache...
| Updating cache...               ######################################## [100%]
| error: psplash-0.1+git0+14c8f7b705-r15@core2_64 is not available for downloading
| 
| Saving cache...
| 
| ----------------------------------------------------------------------
| Ran 46 tests in 1461.044s
| 
| FAILED (failures=2, skipped=22)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55515</commentid>
    <comment_count>7</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-10-20 14:22:10 +0000</bug_when>
    <thetext>Here is the log when removing the file from the tmp/deploy/rpm/repodata directory.


======================================================================
FAIL: test_smart_channel_add (oeqa.runtime.smart.SmartRepoTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/utils/decorators.py&quot;, line 106, in wrapped_f
    return func(*args)
  File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/runtime/smart.py&quot;, line 80, in test_smart_channel_add
    self.smart(&apos;update&apos;)
  File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/utils/decorators.py&quot;, line 94, in wrapped_f
    return f(*args)
  File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/runtime/smart.py&quot;, line 22, in smart
    self.assertEqual(status, expected, message)
AssertionError: 1 != 0 : smart update
Loading cache...
Updating cache...               ######################################## [100%]

                                                                               Fetching information for &apos;all&apos;...
                                                                               -&gt; http://192.168.7.1:41442/rpm/all/repodata/repomd.xml
repomd.xml                      ######################################## [ 16%]
                                                                               -&gt; http://192.168.7.1:41442/rpm/all/repodata/primary.xml.gz
primary.xml.gz                  ######################################## [ 25%]
                                                                               -&gt; http://192.168.7.1:41442/rpm/all/repodata/filelists.xml.gz
filelists.xml.gz                ######################################## [ 33%]
                                                                               
Fetching information for &apos;qemux86_64&apos;...
                                                                               -&gt; http://192.168.7.1:41442/rpm/qemux86_64/repodata/repomd.xml
repomd.xml                                                               [ 41%]
error: Failed acquiring release file for &apos;qemux86_64&apos;:
error: http://192.168.7.1:41442/rpm/qemux86_64/repodata/repomd.xml: File not found
                                                                               
Fetching information for &apos;core2_64&apos;...
                                                                               -&gt; http://192.168.7.1:41442/rpm/core2_64/repodata/repomd.xml
repomd.xml                      ######################################## [ 83%]
                                                                               -&gt; http://192.168.7.1:41442/rpm/core2_64/repodata/filelists.xml.gz
filelists.xml.gz                ######################################## [ 91%]
                                                                               -&gt; http://192.168.7.1:41442/rpm/core2_64/repodata/primary.xml.gz
primary.xml.gz                  ######################################## [100%]

Updating cache...               ######################################## [100%]

Channels have 4982 new packages.
Saving cache...

----------------------------------------------------------------------
Ran 46 tests in 783.945s

FAILED (failures=1, skipped=22)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55518</commentid>
    <comment_count>8</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-10-20 14:32:06 +0000</bug_when>
    <thetext>I did another test with a timeout artificially low to check if it would be the load in the autobuilders but it seems unlikely. Here is the log:

======================================================================
FAIL: test_smart_channel_add (oeqa.runtime.smart.SmartRepoTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/utils/decorators.py&quot;, line 106, in wrapped_f
    return func(*args)
  File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/runtime/smart.py&quot;, line 78, in test_smart_channel_add
    self.smart(&apos;channel -y --add {a} type=rpm-md baseurl={u}/{a}&apos;.format(a=arch, u=deploy_url))
  File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/utils/decorators.py&quot;, line 94, in wrapped_f
    return f(*args)
  File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/runtime/smart.py&quot;, line 22, in smart
    self.assertEqual(status, expected, message)
AssertionError: 255 != 0 : smart channel -y --add qemux86_64 type=rpm-md baseurl=http://192.168.7.1:58044/rpm/qemux86_64

Process killed - no output for 15 seconds. Total running time: 15 seconds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55519</commentid>
    <comment_count>9</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-10-20 14:33:33 +0000</bug_when>
    <thetext>With the previous three logs it seems the problem was not a network error, file not found, or reaching the timeout. Here is a summary of the logs for different failures:

ORIGINAL FAILURE
Log: error: http://192.168.7.7:33381/rpm/qemux86_64/repodata/filelists.xml.gz: None

NETWORK ERROR
Log: error: http://192.168.7.1:38460/rpm/core2_64/repodata/repomd.xml: [Errno 101] Network is unreachable

REMOVE FILE
Log: error: http://192.168.7.1:41442/rpm/qemux86_64/repodata/repomd.xml: File not found

TIMEOUT
Log: Process killed - no output for X seconds. Total running time: X seconds. (unitest log)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55855</commentid>
    <comment_count>10</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-10-27 16:40:45 +0000</bug_when>
    <thetext>This is the only occurrence of this bug and I wasn&apos;t able to reproduce. Closing and if the error happens again it will be reopened.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55943</commentid>
    <comment_count>11</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2015-10-28 15:59:44 +0000</bug_when>
    <thetext>Setting VERIFIED as per last comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>