summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorunicell <unicell@gmail.com>2013-01-18 18:48:10 +0800
committerunicell <unicell@gmail.com>2013-01-19 08:33:35 +0800
commit485e4bdb921c5e2b53af2886c53f4c93b8bf3be8 (patch)
treeea886ac234320aa2ed798c6f4c6ebd2bcc4e629c /etc
parentab04b00edfbb21131fd370325089e69d5fd8e1f0 (diff)
downloadnova-485e4bdb921c5e2b53af2886c53f4c93b8bf3be8.tar.gz
nova-485e4bdb921c5e2b53af2886c53f4c93b8bf3be8.tar.xz
nova-485e4bdb921c5e2b53af2886c53f4c93b8bf3be8.zip
Run_as_root to ensure resize2fs succeed for all image backends
Unlike other file based image backend, operation over LVM logical volumes requires root to functioning correctly. Resize2fs on logical volumes also need run_as_root. Otherwise, when running nova-compute as non-root user, instance creation with flavor disk size larger than image size would fail. Caused by resize2fs failure. Fixes LP# 1101137 Change-Id: I16a2aa4382be58843270ff23e11bfb1e20c568d2
Diffstat (limited to 'etc')
-rw-r--r--etc/nova/rootwrap.d/compute.filters2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/nova/rootwrap.d/compute.filters b/etc/nova/rootwrap.d/compute.filters
index f344a1b1c..e1113a9e7 100644
--- a/etc/nova/rootwrap.d/compute.filters
+++ b/etc/nova/rootwrap.d/compute.filters
@@ -99,9 +99,11 @@ pygrub: CommandFilter, /usr/bin/pygrub, root
fdisk: CommandFilter, /sbin/fdisk, root
# nova/virt/xenapi/vm_utils.py: e2fsck, -f, -p, partition_path
+# nova/virt/disk/api.py: e2fsck, -f, -p, image
e2fsck: CommandFilter, /sbin/e2fsck, root
# nova/virt/xenapi/vm_utils.py: resize2fs, partition_path
+# nova/virt/disk/api.py: resize2fs, image
resize2fs: CommandFilter, /sbin/resize2fs, root
# nova/network/linux_net.py: 'ip[6]tables-save' % (cmd, '-t', ...