← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1256838] Re: Race between imagebackend and imagecache

 

Reviewed:  https://review.openstack.org/185549
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=ec9d5e375e208686d33b9259b039cc009bded42e
Submitter: Jenkins
Branch:    master

commit ec9d5e375e208686d33b9259b039cc009bded42e
Author: Ankit Agrawal <ankit11.agrawal@xxxxxxxxxxx>
Date:   Mon Aug 10 16:27:57 2015 +1000

    libvirt: Race condition leads to instance in error
    
    ImageCacheManager deletes base image while image backend is copying
    image to the instance path leading instance to go in the error state.
    
    Acquired lock before removing image from cache. If libvirt is copying
    image to the instance path, image cache manager won't be able to remove
    it until libvirt finishes copying image completely.
    
    Closes-Bug: 1256838
    Closes-Bug: 1470437
    Co-Authored-By: Michael Still <mikal@xxxxxxxxxxx>
    Depends-On: I337ce28e2fc516c91bec61ca3639ebff0029ad49
    Change-Id: I376cc951922c338669fdf3f83da83e0d3cea1532


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1256838

Title:
  Race between imagebackend and imagecache

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  After ImageCacheManager judges a base image is not used recently and
  marks it as to be removed, there is some time before the image is
  actually removed. So if an instance using the image is launched during
  the time, the image will be removed unfortunately.

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