From 8bd8da476c9e7718cea6552e767ea51727d28418 Mon Sep 17 00:00:00 2001 From: Rafi Khardalian Date: Fri, 1 Mar 2013 08:53:52 +0000 Subject: Fix ephemeral devices on LVM don't get mkfs'd Fixes bug 1083424 Updated imagebackend to run the necessary callback conditionally based on whether LVM is configured for use and ephemeral_size is defined. The callback function was updated not to invoke qemu-img for LVM, since the ephemeral disk is already present/created via LVM. Lastly, the mkfs call had to be changed to be run as root, since we are dealing with raw devices. Change-Id: Ieb1febb0ea086f8e5063d92ca376d349fcd43a43 --- etc/nova/rootwrap.d/compute.filters | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/nova/rootwrap.d/compute.filters b/etc/nova/rootwrap.d/compute.filters index f0d9c6fee..bf08a6638 100644 --- a/etc/nova/rootwrap.d/compute.filters +++ b/etc/nova/rootwrap.d/compute.filters @@ -163,6 +163,10 @@ readlink: CommandFilter, readlink, root # nova/virt/disk/api.py: 'touch', target touch: CommandFilter, /usr/bin/touch, root +# nova/virt/disk/api.py: +mkfs.ext3: CommandFilter, /sbin/mkfs.ext3, root +mkfs.ntfs: CommandFilter, /sbin/mkfs.ntfs, root + # nova/virt/libvirt/connection.py: read_initiator: ReadFileFilter, /etc/iscsi/initiatorname.iscsi -- cgit