Bug 1079998
| Summary: | Horizon Error: Unable to create new image. When glance filtering enabled | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Tzach Shefi <tshefi> | ||||
| Component: | python-django-horizon | Assignee: | Matthias Runge <mrunge> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | Ami Jeain <ajeain> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 4.0 | CC: | aortega, jpichon, mrunge, yeylon | ||||
| Target Milestone: | --- | Keywords: | Triaged | ||||
| Target Release: | 6.0 (Juno) | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-07-03 09:24:30 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Thank you for the bug report. Unfortunately, improving error reporting is quite difficult at the time and we'd need to fix this in a more general way, as there are so many locations in the code, where not optimal reporting occurs. There is a blueprint upstream, we'd like to solve during the next development cycle about this[1]. For several reasons, we should not just forward exceptions to the end user. As we're already in feature freeze for Icehouse, this won't be solved for target release 5.0. [1] https://blueprints.launchpad.net/horizon/+spec/improve-error-message-details-for-usability |
Created attachment 878068 [details] Horizon.log Description of problem: When filtering supported file types in Glance, uploading a none supported file gives a none informative/misleading error on Horizon -> Error: Unable to create new image. Uploading same image in Glance CLI returns a better warning: Invalid disk format [root@cougar12 ~(keystone_admin)]# glance image-create --name isoShouldFail1 --disk-format iso --container-format bare --file /dsl-4.4.10.iso Request returned failure status. 400 Bad Request Invalid disk format 'iso' for image. (HTTP 400) Version-Release number of selected component (if applicable): RHEL 6.5 python-django-openstack-auth-1.1.2-2.el6ost.noarch openstack-glance-2013.2.2-2.el6ost.noarch How reproducible: Every time Steps to Reproduce: 1. Setup deployment 2. on /etc/glance/glance-api.conf, enable disk_formats and remove one of them (on test removed iso) disk_formats=ami,ari,aki,vhd,vmdk,raw,qcow2,vdi 3. Restart glance-api service 4. From Horizon upload a new image from file, select a file of the format you deleted from list on step 2. 5. Get Horizon none informative error. Actual results: On Horizon none informative error message: Error: Unable to create new image. Expected results: I'd expect a better error like, Unable to create new image, none supported "iso" format. Seeing as this info is found on Horizon.log why isn't this important reason returned on error message. Additional info: