Uploading OVA to Glance via Horizon Fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
Jay Jahns |
Bug Description
If a user wishes to upload an image to Glance that is an OVA file, the import fails because the disk_format gets marked as "bare" and the container_format is not taken into account.
I've checked the dashboard for images and found this problem can be very easily fixed by checking if the user specified ova in the form and updating these 2 settings.
dashboards/
elif disk_format == 'ova':
# The ova format requires glance to set the disk format to vmdk and
# the container format to ova in order for glance to accept the image
# and to allow successful launch of the image. OVA does not support
# a container format of bare.
disk_format = 'vmdk'
Upon adding this change, OVAs can be added via the UI without error, and Glance can launch the OVA as expected. This only impacts single-disk OVA.
Can someone verify this for me so we know on our side this is the correct action? I'm not totally familiar with contributing to the project, so I'm working on that internally as well.
Changed in horizon: | |
assignee: | nobody → Jay Jahns (jjahns) |
status: | Incomplete → In Progress |
Changed in horizon: | |
status: | Fix Committed → In Progress |
importance: | Undecided → Low |
Changed in horizon: | |
milestone: | none → ocata-3 |
information type: | Public → Public Security |
information type: | Public Security → Public |
Please provide a Horizon version.