<?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>10419</bug_id>
          
          <creation_ts>2016-10-12 11:57:57 +0000</creation_ts>
          <short_desc>Old images disappear from my $TMPDIR/deploy/images when a new image is built</short_desc>
          <delta_ts>2016-10-19 16:07:23 +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.2</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>critical</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>jku</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>67174</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-10-12 11:57:57 +0000</bug_when>
    <thetext>This regression is likely related to Ed&apos;s (assignee) changes to put artefact deployment under sstate control.

Previously one could `bitbake my-image &amp;&amp; bitbake my-image` and get two versions of the image built and deployed to DEPLOY_DIR_IMAGE.

With current HEAD of master &amp; morty a previous image artefact will be deleted before the new one is deployed. We assume nobody has noticed this behaviour before now because many of us use RM_OLD_IMAGE during development.

It would be great to add a test to validate the expected behaviour (perhaps as a separate bug to be handled in 2.3).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67178</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-10-12 13:25:51 +0000</bug_when>
    <thetext>It&apos;s arguable that this behaviour change is desirable. If so we we should document it in the release notes and migration guide and remove RM_OLD_IMAGE.

Otherwise we should fix this regression before the 2.2 release.

I&apos;ve sent an RFC to the openembedded-architecture list:

http://lists.openembedded.org/pipermail/openembedded-architecture/2016-October/000260.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67190</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-10-12 21:03:05 +0000</bug_when>
    <thetext>Initial feedback to the RFC seems to be in favour of keeping the new behaviour, so I&apos;ve submitted patches to remove RM_OLD_IMAGE from OE-Core, et al:

http://lists.openembedded.org/pipermail/openembedded-core/2016-October/127532.html
http://lists.openembedded.org/pipermail/openembedded-core/2016-October/127533.html
https://lists.yoctoproject.org/pipermail/yocto/2016-October/032427.html
https://lists.yoctoproject.org/pipermail/poky/2016-October/010750.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67330</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-10-18 16:19:58 +0000</bug_when>
    <thetext>Update: the first patch in the series to actually remove all mentions of RM_OLD_IMAGE has been merged, the patches for documentation and local.conf have not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67355</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-10-19 12:39:19 +0000</bug_when>
    <thetext>ref-manual patch has also been merged. Only the local.conf.sample changes are outstanding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67371</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-10-19 16:07:23 +0000</bug_when>
    <thetext>Patches are merged.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>