yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #58645
[Bug 1641383] [NEW] Uploading OVA to Glance via Horizon Fails
Public bug reported:
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.
** Affects: horizon
Importance: Undecided
Status: New
--
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):
New
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
Follow ups