Make Image Service image formats configurable

Allow configuration of the available image formats
for image creation (corresponds to a feature added
Glance).

Incidentally fixes a test issue where the domain_get
call wasn't being properly stubbed out.

Fixes bug 1216157

Change-Id: Ifc72915d34767ce83f9d85b92ddeae0c2c00b8c6
This commit is contained in:
Gabriel Hurley 2013-09-03 11:54:58 -07:00
parent 251d0e76f6
commit 82b22a6040
1 changed files with 15 additions and 0 deletions

View File

@ -91,6 +91,21 @@ OPENSTACK_HYPERVISOR_FEATURES = {
'can_set_mount_point': True,
}
OPENSTACK_IMAGE_BACKEND = {
'image_formats': [
('', ''),
('aki', _('AKI - Amazon Kernel Image')),
('ami', _('AMI - Amazon Machine Image')),
('ari', _('ARI - Amazon Ramdisk Image')),
('iso', _('ISO - Optical Disk Image')),
('qcow2', _('QCOW2 - QEMU Emulator')),
('raw', _('Raw')),
('vdi', _('VDI')),
('vhd', _('VHD')),
('vmdk', _('VMDK'))
]
}
LOGGING['loggers']['openstack_dashboard'] = {
'handlers': ['test'],
'propagate': False,