summaryrefslogtreecommitdiff
path: root/etc/nova/rootwrap.d
diff options
context:
space:
mode:
authorAnkit Agrawal <ankit11.agrawal@nttdata.com>2015-08-10 16:27:57 +1000
committerAnkit Agrawal <ankit11.agrawal@nttdata.com>2016-02-05 20:48:58 +0000
commitec9d5e375e208686d33b9259b039cc009bded42e (patch)
tree344338e15340a62be0590d720329e39b61acde8f /etc/nova/rootwrap.d
parent0d8a3d90fbd308a05719ae6b14da692399eb09d1 (diff)
downloadnova-ec9d5e375e208686d33b9259b039cc009bded42e.tar.gz
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@stillhq.com> Depends-On: I337ce28e2fc516c91bec61ca3639ebff0029ad49 Change-Id: I376cc951922c338669fdf3f83da83e0d3cea1532
Diffstat (limited to 'etc/nova/rootwrap.d')
-rw-r--r--etc/nova/rootwrap.d/compute.filters3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/nova/rootwrap.d/compute.filters b/etc/nova/rootwrap.d/compute.filters
index a731178aa3..c846b89ecd 100644
--- a/etc/nova/rootwrap.d/compute.filters
+++ b/etc/nova/rootwrap.d/compute.filters
@@ -246,3 +246,6 @@ ploop: CommandFilter, ploop, root
# nova/virt/libvirt/utils.py: 'xend', 'status'
xend: CommandFilter, xend, root
+
+# nova/virt/libvirt/utils.py:
+touch: CommandFilter, touch, root