<?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>9848</bug_id>
          
          <creation_ts>2016-06-29 13:02:49 +0000</creation_ts>
          <short_desc>testimage/testexport: support permissions and attributes for package installation</short_desc>
          <delta_ts>2020-01-30 16:19:37 +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>5.99</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mariano Lopez">mariano.lopez</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>joshuagloe</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63450</commentid>
    <comment_count>0</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-06-29 13:02:49 +0000</bug_when>
    <thetext>Currently the installation of packages during a runtime test is done using scp, this will change the owner and the attributes of the copied files, this can lead to problems in certain conditions.

I had a conversation with Joshua and it seems the easiest way to do it is to send the tars to the DUT and uncompress them in the target.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63621</commentid>
    <comment_count>1</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-07-04 15:09:08 +0000</bug_when>
    <thetext>busybox&apos;s tar doesn&apos;t have options to preserve owner, permission or attributes, therefore we need to provide a tar binary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63622</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-07-04 15:15:06 +0000</bug_when>
    <thetext>I know we talked about rsync before but I can&apos;t recall whether you tested it?

The rsync man page[1] says that rsync can:

&quot;can  copy  locally,  to/from  another  host  over  any remote shell, or to/from a remote rsync daemon&quot;

1. http://manpages.ubuntu.com/manpages/precise/en/man1/rsync.1.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63624</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-07-04 15:17:41 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I know we talked about rsync before but I can&apos;t recall whether you tested it?
&gt; 

I haven&apos;t tested it yet, the issue with rsync was that we needed to provide the binary in the target, but now we need to provide tar, so rsync becomes a viable option again. I&apos;ll try rsync next.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63625</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-07-04 15:19:23 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; I know we talked about rsync before but I can&apos;t recall whether you tested it?
&gt; &gt; 
&gt; 
&gt; I haven&apos;t tested it yet, the issue with rsync was that we needed to provide
&gt; the binary in the target, but now we need to provide tar, so rsync becomes a
&gt; viable option again. I&apos;ll try rsync next.

My understanding of the manpage is that the binary shouldn&apos;t be required on the target, because rsync can copy &quot;to/from  another  host  over  any remote shell&quot; — thus I&apos;d expect if we have rsync-native on the host we can rsync to the target.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63626</commentid>
    <comment_count>5</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-07-04 15:20:50 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; My understanding of the manpage is that the binary shouldn&apos;t be required on
&gt; the target, because rsync can copy &quot;to/from  another  host  over  any remote
&gt; shell&quot; — thus I&apos;d expect if we have rsync-native on the host we can rsync to
&gt; the target.

I tested that, you need rsync in both hosts</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76085</commentid>
    <comment_count>6</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-08-23 16:31:46 +0000</bug_when>
    <thetext>unfortunately, the enhancement window is over, so moving it to 2.5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85914</commentid>
    <comment_count>7</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-12-22 19:36:58 +0000</bug_when>
    <thetext>is this something we still need to test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86196</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-01-30 16:19:37 +0000</bug_when>
    <thetext>This doesn&apos;t seem to be a problem in our current workflow. Reopen if it becomes one.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>