Created attachment 774175 [details] logs Description of problem: I tried creating an image from horizon using the Image file option and am getting http bad request error. I am working with a csb rhel with firefox-17.0.5-2.el6.x86_64 when running glance image-create --disk-format qcow2 --file /tmp/e886fb6e-f91f-46ae-a488-0f24e47f5731 --name rhev --container-format bare I managed to create and launch an instance from the image. Version-Release number of selected component (if applicable): python-django-horizon-2013.1.2-1.el6ost.noarch How reproducible: 100% Steps to Reproduce: 1. create a template in rhevm and export it to an export domain 2. cp the image from the export domain to your local computer 3. create a new image from horizon and select the image file from your local computer Actual results: we get a Bad request error Expected results: we should succeed to upload the file image and create a glance image from it Additional info: attaching logs Bad Request Your browser sent a request that this server could not understand. Apache/2.2.15 (Red Hat) Server at <compute_name>.XX.XX.XXX.redhat.com Port 80
Hi, could you set DEBUG to True in /etc/openstack-dashboard/local_settings, restart httpd, retry the upload and attach the horizon error logs to the bug? They should include more information then (it will also display a traceback in the browser; setting DEBUG to True should not be done in a production environment). Also, what size was the image file? If it's too big it's possible the web server config didn't allow such an upload. Thank you.
the file is 1.4G which is not large for a disk image. [dron@dron Desktop]$ du -sh 39f89a6a-7fbb-43c0-a5ea-19b271f51829 1.4G 39f89a6a-7fbb-43c0-a5ea-19b271f51829 also, if the image file is too big there should be an error that the file it too big. I am working with a grizzly downstream rpm so I am not sure that the changes in the file done anything (I did not see anything in the UI to suggest that it did), but I will attached the access and error http logs after the change. perhaps the changes should be in /etc/httpd/conf/httpd.conf?
Created attachment 776425 [details] httpd logs after debug change
could you please verify, this works using an ISO image? IMHO this is a cinder bug still valid in havana: https://bugs.launchpad.net/horizon/+bug/1231887
Looks like https://bugs.launchpad.net/horizon/+bug/1231887
I think this was fixed by https://review.openstack.org/#/c/52463/ @Eric, can you confirm this? The upstream bug hasn't been updated since Nov, 13th.
Flavio: it looks likely. Dafna: How big is was the volume, and how big is the virtual size of the image? (Since it's qcow2 I'm assuming it represents a disk significantly larger than 1.4 GB.)
Stable havana backport of the fix!
Created attachment 835313 [details] logs
Created attachment 835319 [details] logs there you go...
Verified Setup semi distributed: host 1: cloud controller (Nova+compute\Horizon\Keystone\Cinder..) host 2: Glance+compute Version: RHEL 6.5 python-django-openstack-auth-1.1.2-1.el6ost.noarch openstack-glance-2013.2.1-3.el6ost.noarch Output: Used template image of RHEL 6.5 (10Giga), created on RHEV and exported to file. Uploaded template to Glance (as raw\bare), from CLI and Horizon, both images created successfully. Booted instances one from each image, both booted OK.