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 <email address hidden>
Depends-On: I337ce28e2fc516c91bec61ca3639ebff0029ad49
Change-Id: I376cc951922c338669fdf3f83da83e0d3cea1532
Reviewed: https:/ /review. openstack. org/185549 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ec9d5e375e2 08686d33b9259b0 39cc009bded42e
Committed: https:/
Submitter: Jenkins
Branch: master
commit ec9d5e375e20868 6d33b9259b039cc 009bded42e
Author: Ankit Agrawal <email address hidden>
Date: Mon Aug 10 16:27:57 2015 +1000
libvirt: Race condition leads to instance in error
ImageCacheM anager 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 c91bec61ca3639e bff0029ad49 8669fdf3f83da83 e0d3cea1532
Closes-Bug: 1470437
Co-Authored-By: Michael Still <email address hidden>
Depends-On: I337ce28e2fc516
Change-Id: I376cc951922c33