cinder-volume: install qemu-img for conversions

Updates the cinder-volume element so that it installs the
qemu-img package. This is required in order to support
boot from volume conversions from Glance images (qcow2).

Change-Id: I1c6fb4692166b173092395967ffe9fe88ffdb602
Partial-bug: #1340479
This commit is contained in:
Dan Prince 2014-07-10 21:51:18 -04:00
parent bc71c4dc77
commit 28c7839adc
3 changed files with 21 additions and 1 deletions

View File

@ -1,4 +1,5 @@
cinder
os-refresh-config
os-svc-install
use-ephemeral
use-ephemeral
pkg-map

View File

@ -1,6 +1,9 @@
#!/bin/bash
set -eux
# qemu-img is required when creating volumes from Glance images
install-packages -m cinder-volume qemu_img_package
os-svc-daemon -i "$CINDER_VENV_DIR" cinder-volume cinder cinder-volume "--config-dir /etc/cinder"
# Ensure the loop block device is available

View File

@ -0,0 +1,16 @@
{
"family": {
"redhat": {
"qemu_img_package": "qemu-img"
},
"debian": {
"qemu_img_package": "qemu-utils"
},
"suse": {
"qemu_img_package": "qemu-tools"
}
},
"default": {
"qemu_img_package": "qemu-img"
}
}