From f698eba45752fddddd914892ed2bf1d5ef7e484e Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Wed, 4 Apr 2012 12:36:42 -0400 Subject: Fix traceback in image cache manager. When nova is running as a different user, the image cache manager can cause tracebacks because it is not able to access the file. This fixes bug: 973377 Change-Id: I7902b024e7d564fbda97ce8532c1de84ab1a4206 Signed-off-by: Chuck Short --- nova/virt/libvirt/imagecache.py | 1 + 1 file changed, 1 insertion(+) (limited to 'nova/virt') diff --git a/nova/virt/libvirt/imagecache.py b/nova/virt/libvirt/imagecache.py index d903c87fc..f92376a17 100644 --- a/nova/virt/libvirt/imagecache.py +++ b/nova/virt/libvirt/imagecache.py @@ -355,6 +355,7 @@ class ImageCacheManager(object): {'id': img_id, 'base_file': base_file}) if os.path.exists(base_file): + virtutils.chown(base_file, os.getuid()) os.utime(base_file, None) def verify_base_images(self, context): -- cgit