<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">You are correct, deleted images are not deleted from the DB, rather their row has ‘deleted=1’, so specifying the UUID of another image already in glance for a new image being upload will end in tears.<div><br></div><div>What I was trying to convey was, when Christian is uploading a new image of the same name as an existing image, the UUID will be different.</div><div>IMO, the correct process should be:</div><div>1. Make desired changes to your image.</div><div>2. Rename the existing image (e.g. Fedora-20-OLD)</div><div>3. (optional) Make the old image private ( is-public 0 )</div><div>4. Upload the new image using the desired name (e.g. Fedora-20 or like Fedora-20-LATEST )</div><div><br></div><div>Obviously I assume there was testing for viability of the image before it was uploaded to glance.</div><div><br></div><div>For more information, be sure to catch my talk on Tuesday 9am at the summit.</div><div><br><div><div>On Oct 7, 2014, at 9:58 AM, George Shuklin <<a href="mailto:george.shuklin@gmail.com">george.shuklin@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    As far as I know, it is not possible to assign uuid from deleted
    image to the new one, because deleted images keeps their metadata in
    DB.<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 09/26/2014 04:43 PM, Abel Lopez
      wrote:<br>
    </div>
    <blockquote cite="mid:CALtO1Z+c2P+LLdxOZ3Zf9i9kcktjR=qaan6-dem0Rr4ohreGug@mail.gmail.com" type="cite">Glance images are immutable. In order to update it,
      you should do as you are doing, but then rename the old image,
      then upload the updated one. Take note of the UUID as well. <span></span><br>
      <br>
      On Friday, September 26, 2014, Christian Berendt <<a moz-do-not-send="true" href="mailto:berendt@b1-systems.de">berendt@b1-systems.de</a>>
      wrote:<br>
      <blockquote class="gmail_quote" style="margin:0 0 0
        .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to
        update the contents of an image, but it looks like it is<br>
        not working at all.<br>
        <br>
        First I upload a test image:<br>
        <br>
        ---snip---<br>
        # dd if=/dev/urandom of=testing.img bs=1M count=10<br>
        # glance image-create --disk-format raw --container-format bare
        --name<br>
        TESTING --file testing.img<br>
        ---snap---<br>
        <br>
        Now I want to overwrite the contents of this image:<br>
        <br>
        ---snip---<br>
        # dd if=/dev/urandom of=testing.img bs=1M count=20<br>
        # glance image-update --file testing.img TESTING<br>
        ---snap---<br>
        <br>
        After this call the size of the image is still the same like
        before<br>
        (10485760 bytes).<br>
        <br>
        I do not have issues in the logfiles of glance-api and
        glance-registry.<br>
        <br>
        What am I doing wrong?<br>
        <br>
        Is it not possible to update the contents of an image?<br>
        <br>
        Christian.<br>
        <br>
        --<br>
        Christian Berendt<br>
        Cloud Solution Architect<br>
        Mail: <a moz-do-not-send="true" href="javascript:;" onclick="_e(event, 'cvml', 'berendt@b1-systems.de')">berendt@b1-systems.de</a><br>
        <br>
        B1 Systems GmbH<br>
        Osterfeldstraße 7 / 85088 Vohburg / <a moz-do-not-send="true" href="http://www.b1-systems.de/" target="_blank">http://www.b1-systems.de</a><br>
        GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG:
        Ingolstadt,HRB 3537<br>
        <br>
        _______________________________________________<br>
        OpenStack-operators mailing list<br>
        <a moz-do-not-send="true" href="javascript:;" onclick="_e(event,
          'cvml', 'OpenStack-operators@lists.openstack.org')">OpenStack-operators@lists.openstack.org</a><br>
        <a moz-do-not-send="true" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
OpenStack-operators mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>OpenStack-operators mailing list<br><a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators<br></blockquote></div><br></div></body></html>