Reviewed: https://review.openstack.org/407847 Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=3f1e0fad92ec6031e17b556609ca940c8a20a165 Submitter: Jenkins Branch: master
commit 3f1e0fad92ec6031e17b556609ca940c8a20a165 Author: Jay Jahns <jja...@vmware.com> Date: Tue Dec 6 20:41:04 2016 -0800 Allow OVA upload for images The OpenStack CLI allows the upload of OVA for images if the container format is set to ova. This patch allows a user to upload a OVA to Glance through the UI, changing the container_format to ova and the disk_format to vmdk. Change-Id: I1483b28ae4a1918a03798c4ef1bb94540fdb3386 Closes-Bug: #1641383 ** Changed in: horizon Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1641383 Title: Uploading OVA to Glance via Horizon Fails Status in OpenStack Dashboard (Horizon): Fix Released 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/project/images/images/forms.py after line 63 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. container_format = 'ova' 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. To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1641383/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp