summaryrefslogtreecommitdiffstats
path: root/etc/nova/rootwrap.d
diff options
context:
space:
mode:
authorMichael Still <mikal@stillhq.com>2012-08-05 21:35:28 +1000
committerMichael Still <mikal@stillhq.com>2012-08-11 07:50:40 +1000
commitd507bd9f186c45b51d635e26070aef7280b6c175 (patch)
treee0f8133af2af4357443f4bdde88643e04b0f767f /etc/nova/rootwrap.d
parent2ef345534afe2d1640dd1d7ad42454d477ca2a94 (diff)
downloadnova-d507bd9f186c45b51d635e26070aef7280b6c175.tar.gz
nova-d507bd9f186c45b51d635e26070aef7280b6c175.tar.xz
nova-d507bd9f186c45b51d635e26070aef7280b6c175.zip
Config drive v2
This is the first cut of config drive v2. Some points to note: - implements a helper to create new-style config drives. These config drives can be VFAT or ISO9660, this is controlled by a flag. The current default is ISO9660. - the config drives contain all the injected files, as well as everything returned from the ec2 style metadata service. Only the most recent version of the ec2 metadata is used, but future versions will appear as well. - the v1 functionality of specifying an image from glance to have the files injected into is dropped. - the location for file injection is now a directory named openstack/files, not the root level of the filesystem. Filename mapping is in the openstack metadata files. - the default format for the config drive is iso9660, although the previous vfat is available with a flag change. - includes the first version of an openstack metadata format. - there are some simple unit tests which probably need more done to them. Partially implements bp config-drive-v2. Change-Id: I210fa4dd7d8d6be398a46b30a0d46b960e22d6b0
Diffstat (limited to 'etc/nova/rootwrap.d')
-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 7e6191ce9..607e7376c 100644
--- a/etc/nova/rootwrap.d/compute.filters
+++ b/etc/nova/rootwrap.d/compute.filters
@@ -13,10 +13,12 @@ tune2fs: CommandFilter, /sbin/tune2fs, root
# nova/virt/disk/mount.py: 'mount', mapped_device, mount_dir
# nova/virt/xenapi/vm_utils.py: 'mount', '-t', 'ext2,ext3,ext4,reiserfs'..
+# nova/virt/configdrive.py: 'mount', device, mountdir
mount: CommandFilter, /bin/mount, root
# nova/virt/disk/mount.py: 'umount', mapped_device
# nova/virt/xenapi/vm_utils.py: 'umount', dev_path
+# nova/virt/configdrive.py: 'umount', mountdir
umount: CommandFilter, /bin/umount, root
# nova/virt/disk/nbd.py: 'qemu-nbd', '-c', device, image