Browse code

Merge "Install libguestfs for nova-compute on Ubuntu"

Jenkins authored on 2014/02/01 08:36:30
Showing 2 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 # Stuff for diablo volumes
2
-nbd-client
3 2
 lvm2
4 3
 open-iscsi
5 4
 open-iscsi-utils # Deprecated since quantal dist:precise
6 5
 genisoimage
7 6
 sysfsutils
8 7
 sg3-utils
8
+python-guestfs
... ...
@@ -240,8 +240,10 @@ function configure_nova() {
240 240
         sudo sysctl -w net.ipv4.ip_forward=1
241 241
 
242 242
         if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then
243
-            # Attempt to load modules: network block device - used to manage qcow images
244
-            sudo modprobe nbd || true
243
+            # When libguestfs is available for file injection, enable using
244
+            # libguestfs to inspect the image and figure out the proper
245
+            # partition to inject into.
246
+            iniset $NOVA_CONF libvirt inject_partition '-1'
245 247
 
246 248
             # Check for kvm (hardware based virtualization).  If unable to initialize
247 249
             # kvm, we drop back to the slower emulation mode (qemu).  Note: many systems