Error causes image creation window to loose values

Bug #1467462 reported by Liron Kuchlani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Confirmed
Undecided
Unassigned

Bug Description

Description of problem:
In 'Create An Image' widow, when inserting an illegal URL in image location field, the action fails and the image format field looses its content

Version-Release number of selected component (if applicable):
python-django-horizon-2015.1.0-10.el7ost.noarch

How reproducible:
sometimes

Steps to Reproduce:
1. From 'Create An Image' window, insert an illegal URL in image location field
2. Try to confirm the creation image

Actual results:
The format field is not configured, although it was

Expected results:
The format field should stay as it was configured

Additional info:

From horizon log:
[Mon Jun 22 09:19:12.758853 2015] [:error] [pid 21067] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 129, in image_update
[Mon Jun 22 09:19:12.758997 2015] [:error] [pid 21067] return image
[Mon Jun 22 09:19:12.759045 2015] [:error] [pid 21067] UnboundLocalError: local variable 'image' referenced before assignment
[Mon Jun 22 09:19:33.647517 2015] [:error] [pid 21068] Unhandled exception in thread started by <function image_update at 0x7fd151ff0320>
[Mon Jun 22 09:19:33.655274 2015] [:error] [pid 21068] Traceback (most recent call last):
[Mon Jun 22 09:19:33.655319 2015] [:error] [pid 21068] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 129, in image_update
[Mon Jun 22 09:19:33.655379 2015] [:error] [pid 21068] return image
[Mon Jun 22 09:19:33.655418 2015] [:error] [pid 21068] UnboundLocalError: local variable 'image' referenced before assignment
[Mon Jun 22 09:20:07.599046 2015] [:error] [pid 21069] Unhandled exception in thread started by <function image_update at 0x7fd151ff0320>
[Mon Jun 22 09:20:07.606163 2015] [:error] [pid 21069] Traceback (most recent call last):
[Mon Jun 22 09:20:07.606205 2015] [:error] [pid 21069] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 129, in image_update
[Mon Jun 22 09:20:07.606293 2015] [:error] [pid 21069] return image
[Mon Jun 22 09:20:07.606336 2015] [:error] [pid 21069] UnboundLocalError: local variable 'image' referenced before assignment
[Mon Jun 22 09:21:05.728746 2015] [:error] [pid 21069] Unhandled exception in thread started by <function image_update at 0x7fd151ff0320>
[Mon Jun 22 09:21:05.728826 2015] [:error] [pid 21069] Traceback (most recent call last):
[Mon Jun 22 09:21:05.728846 2015] [:error] [pid 21069] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 129, in image_update
[Mon Jun 22 09:21:05.728923 2015] [:error] [pid 21069] return image
[Mon Jun 22 09:21:05.728972 2015] [:error] [pid 21069] UnboundLocalError: local variable 'image' referenced before assignment
[Mon Jun 22 09:21:26.640919 2015] [:error] [pid 21069] Unhandled exception in thread started by <function image_update at 0x7fd151ff0320>
[Mon Jun 22 09:21:26.640967 2015] [:error] [pid 21069] Traceback (most recent call last):
[Mon Jun 22 09:21:26.640990 2015] [:error] [pid 21069] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 129, in image_update
[Mon Jun 22 09:21:26.641080 2015] [:error] [pid 21069] return image
[Mon Jun 22 09:21:26.641123 2015] [:error] [pid 21069] UnboundLocalError: local variable 'image' referenced before assignment

Revision history for this message
Liron Kuchlani (lkuchlan) wrote :
Matthias Runge (mrunge)
Changed in horizon:
status: New → Confirmed
Revision history for this message
Matthias Runge (mrunge) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.