summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRafi Khardalian <rafi@metacloud.com>2013-03-01 08:53:52 +0000
committerRafi Khardalian <rafi@metacloud.com>2013-03-01 09:22:12 +0000
commit8bd8da476c9e7718cea6552e767ea51727d28418 (patch)
tree726a4b861579ed249884e7930a5e622970ea7154 /etc
parent957a2a6909fb6b5d9773ef74160543f4d984cc96 (diff)
downloadnova-8bd8da476c9e7718cea6552e767ea51727d28418.tar.gz
nova-8bd8da476c9e7718cea6552e767ea51727d28418.tar.xz
nova-8bd8da476c9e7718cea6552e767ea51727d28418.zip
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
Diffstat (limited to 'etc')
-rw-r--r--etc/nova/rootwrap.d/compute.filters4
1 files changed, 4 insertions, 0 deletions
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