Add vhd and vhdx disk format for volume upload image
Current volume upload image action doesn't support vhd and vhdx disk format. Added them into the default settings and and volume upload image. Close-Bug: #1586915 Change-Id: I18fdd411f716377239962b1d920ba447c101d66f
This commit is contained in:
parent
dd097d41f5
commit
bfbaa2c2bf
@ -41,7 +41,7 @@ from openstack_dashboard.usage import quotas
|
||||
|
||||
IMAGE_BACKEND_SETTINGS = getattr(settings, 'OPENSTACK_IMAGE_BACKEND', {})
|
||||
IMAGE_FORMAT_CHOICES = IMAGE_BACKEND_SETTINGS.get('image_formats', [])
|
||||
VALID_DISK_FORMATS = ('raw', 'vmdk', 'vdi', 'qcow2')
|
||||
VALID_DISK_FORMATS = ('raw', 'vmdk', 'vdi', 'qcow2', 'vhd', 'vhdx')
|
||||
DEFAULT_CONTAINER_FORMAT = 'bare'
|
||||
|
||||
|
||||
|
@ -354,6 +354,7 @@ OPENSTACK_HEAT_STACK = {
|
||||
# ('raw', _('Raw')),
|
||||
# ('vdi', _('VDI - Virtual Disk Image')),
|
||||
# ('vhd', _('VHD - Virtual Hard Disk')),
|
||||
# ('vhdx', _('VHDX - Large Virtual Hard Disk')),
|
||||
# ('vmdk', _('VMDK - Virtual Machine Disk')),
|
||||
# ],
|
||||
#}
|
||||
|
@ -97,6 +97,7 @@ OPENSTACK_IMAGE_BACKEND = {
|
||||
('raw', _('Raw')),
|
||||
('vdi', _('VDI - Virtual Disk Image')),
|
||||
('vhd', _('VHD - Virtual Hard Disk')),
|
||||
('vhdx', _('VHDX - Large Virtual Hard Disk')),
|
||||
('vmdk', _('VMDK - Virtual Machine Disk')),
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user