<?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>12314</bug_id>
          
          <creation_ts>2017-11-06 22:12:50 +0000</creation_ts>
          <short_desc>[TestCase 1742] test_dnf_install_from_disk on intel-quark Galileo shows error after completing the installation</short_desc>
          <delta_ts>2017-11-09 18:56:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Javier Zepeda">javierx.zepeda.murguia</reporter>
          <assigned_to name="Javier Zepeda">javierx.zepeda.murguia</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78004</commentid>
    <comment_count>0</comment_count>
    <who name="Javier Zepeda">javierx.zepeda.murguia</who>
    <bug_when>2017-11-06 22:12:50 +0000</bug_when>
    <thetext>Status: FAILED

When the testimage runs the automated module &quot;test_dnf_install_from_disk&quot; on a Galileo gen2 is getting an error.
It seems it is not affecting the process of installation but the error below.


Config:
http://yocto-ab-master.jf.intel.com/pub/releases/yocto-2.4.rc2/machines/intel-quark/
Image: core-image-sato-sdk-intel-quark.hddimg
=================================
203 Build Configuration:
204 BB_VERSION        = &quot;1.36.0&quot;
205 BUILD_SYS         = &quot;x86_64-linux&quot;
206 NATIVELSBSTRING   = &quot;universal&quot;
207 TARGET_SYS        = &quot;i586-poky-linux&quot;
208 MACHINE           = &quot;intel-quark&quot;
209 DISTRO            = &quot;poky&quot;
210 DISTRO_VERSION    = &quot;2.4&quot;
211 TUNE_FEATURES     = &quot;m32 i586-nlp&quot;
212 TARGET_FPU        = &quot;&quot;
213 meta
214 meta-poky
215 meta-yocto-bsp    = &quot;HEAD:f7b90ab3eaf832bd81f3efc1dab4dcf6863ac284&quot;
216 meta-intel        = &quot;master:d68dda959b5bf6f90aa8e5c2f027be324bb68e14&quot;
==================================



Error&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;

After adding some repos the installation is looking for 2 packages and it finds and installs them.....

344 Added oe-testimage-repo-noarch repo from http://xxxxxxxxxxxxxxxxx/noarch
345 Added oe-testimage-repo-intel_quark repo from http://xxxxxxxxxxxxxx/intel_quark
346 Added oe-testimage-repo-i586_nlp_32 repo from http://xxxxxxxxxxxxxx/i586_nlp_32
347 Last metadata expiration check: 0:04:35 ago on Fri Nov  3 01:55:07 2017.
348 Dependencies resolved.
349 ================================================================================
350  Package               Arch       Version    Repository                    Size
351 ================================================================================
352 Installing:
353  run-postinsts-dev     noarch     1.0-r9     @commandline                 5.6 k
354 Installing dependencies:
355  run-postinsts         noarch     1.0-r9     oe-testimage-repo-noarch     8.4 k
356 
357 Transaction Summary
358 ================================================================================
359 Install  2 Packages
360 
361 Total size: 14 k
362 Installed size: 1.9 k
363 Downloading Packages:
364 [SKIPPED] run-postinsts-1.0-r9.noarch.rpm: Already downloaded
365 Running transaction check
366 Transaction check succeeded.
367 Running transaction test
368 Transaction test succeeded.
369 Running transaction
370   Preparing        :                                                        1/1
371   Running scriptlet: run-postinsts-1.0-r9.noarch                            1/2
372  Removing any system startup links for run-postinsts ...
373   Installing       : run-postinsts-1.0-r9.noarch                            1/2
374   Running scriptlet: run-postinsts-1.0-r9.noarch                            1/2
375  Adding system startup for /etc/init.d/run-postinsts.
376   Installing       : run-postinsts-dev-1.0-r9.noarch                        2/2
377   Verifying        : run-postinsts-dev-1.0-r9.noarch                        1/2
378   Verifying        : run-postinsts-1.0-r9.noarch                            2/2
379 
380 Installed:
381   run-postinsts-dev.noarch 1.0-r9          run-postinsts.noarch 1.0-r9
382 
383 Complete!
384 sh: line 1: /var/cache/dnf/oe-testimage-repo-noarch-63ddadda61dbbffe/packages/run-postinsts-dev-1.0-r9.noarch.rpm: No such file or directory


As we can see the last line shows the error:

sh: line 1: /var/cache/dnf/oe-testimage-repo-noarch-63ddadda61dbbffe/packages/run-postinsts-dev-1.0-r9.noarch.rpm: No such file or directory 

it seems its is looking for an incorrect location...

The real rpm is located at:

root@intel-quark:/var/cache/dnf# find /var/cache/dnf -name run-postinsts-dev*rpm
/var/cache/dnf/commandline-ee61f1cb9630e0cd/packages/run-postinsts-dev-1.0-r9.noarch.rpm


Expected results: Errors not should be shown

Regards.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78033</commentid>
    <comment_count>1</comment_count>
    <who name="Javier Zepeda">javierx.zepeda.murguia</who>
    <bug_when>2017-11-07 17:16:22 +0000</bug_when>
    <thetext>Checking the bug again, I came across and noticed this time the repo has changed of location, and it&apos;s getting the package from different location 

&quot;@oe-testimage-repo-noarch&quot; instead of &quot;@commandline&quot; 

============================
root@intel-quark:~# dnf list | grep run-postinsts-dev
run-postinsts-dev.noarch                                1.0-r9          @oe-testimage-repo-noarch
============================

it seems by default the test expects for the package &quot;run-postinsts-dev.noarch&quot; in the repo &quot;@oe-testimage-repo-noarch&quot; but also its possible the package might be found in other location such as &quot;@commandline&quot;.

This time the module test_dnf_install_from_disk has successfully passed without errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78128</commentid>
    <comment_count>2</comment_count>
    <who name="Javier Zepeda">javierx.zepeda.murguia</who>
    <bug_when>2017-11-09 18:56:30 +0000</bug_when>
    <thetext>after re-test the error was not reproducible, therefore not a bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>