← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1254497] Re: Failure to talk to glance registry, leaves stale chunks in swift

 

Reviewed:  https://review.openstack.org/127246
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=fdcc5c4519bd71b9912ad6c0c7562ef51e774523
Submitter: Jenkins
Branch:    proposed/juno

commit fdcc5c4519bd71b9912ad6c0c7562ef51e774523
Author: Zhi Yan Liu <zhiyanl@xxxxxxxxxx>
Date:   Fri Sep 12 20:02:27 2014 +0800

    Remove stale chunks when failed to update image to registry
    
    For image v1 api, the operation of uploading image bits to store and
    the operation of updating image metadata are separaed, so when the
    second operation failed, the image stale chunks will be leaked in store.
    This change added a logic to remove those chunks if an exception
    happenned during the step of image metadata updating. And if
    glance-registry could be reached still, the image status will be changed
    to 'killed', this followed standard glance image status transition.
    
    Closes-bug: 1254497
    Change-Id: I01e13066b48a8feb1ead0de64992e7997feafdea
    Signed-off-by: Zhi Yan Liu <zhiyanl@xxxxxxxxxx>


** Changed in: glance
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1254497

Title:
  Failure to talk to glance registry, leaves stale chunks in swift

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  (1)Nova sends data for upload to glance api
  (2) glance api sets image status to saving and starts data upload
  (3) after data upload, glance api tries to make http call to glance registry to update image status and it gets connection failure.
  (4) this percolates as 500 to xen. Image is stuck in saving state
  (5) the hypervisor tries to re-upload image, but receives a 409 since image is stuck in saving state

  As a result there is left over image data in containers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1254497/+subscriptions