The error is not propagated to the UI when https request fails due to disk space exhaustion

Bug #1437230 reported by Sasikiran
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Low
Unassigned

Bug Description

When I try to upload an image which is of100GB through Horizon with https communication on apache2, then I am getting the following error.

"Secure connection Failed. The connection to the server was reset while the
page was loading."

[Fri Mar 27 06:23:59 2015] [error] Internal Server Error: /admin/images/create/
[Fri Mar 27 06:23:59 2015] [error] Traceback (most recent call last):
[Fri Mar 27 06:23:59 2015] [error] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 109, in get_response
[Fri Mar 27 06:23:59 2015] [error] response = middleware_method(request, callback, callback_args, callback_kwargs)
[Fri Mar 27 06:23:59 2015] [error] File "/usr/lib/python2.7/dist-packages/django/middleware/csrf.py", line 182, in process_view
[Fri Mar 27 06:23:59 2015] [error] request_csrf_token = request.POST.get('csrfmiddlewaretoken', '')
[Fri Mar 27 06:23:59 2015] [error] File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 198, in _get_post
[Fri Mar 27 06:23:59 2015] [error] self._load_post_and_files()
[Fri Mar 27 06:23:59 2015] [error] File "/usr/lib/python2.7/dist-packages/django/http/request.py", line 217, in _load_post_and_files
[Fri Mar 27 06:23:59 2015] [error] self._post, self._files = self.parse_file_upload(self.META, data)
[Fri Mar 27 06:23:59 2015] [error] File "/usr/lib/python2.7/dist-packages/django/http/request.py", line 177, in parse_file_upload
[Fri Mar 27 06:23:59 2015] [error] return parser.parse()
[Fri Mar 27 06:23:59 2015] [error] File "/usr/lib/python2.7/dist-packages/django/http/multipartparser.py", line 217, in parse
[Fri Mar 27 06:23:59 2015] [error] counters[i])
[Fri Mar 27 06:23:59 2015] [error] File "/usr/lib/python2.7/dist-packages/django/core/files/uploadhandler.py", line 139, in receive_data_chunk
[Fri Mar 27 06:23:59 2015] [error] self.file.write(raw_data)
[Fri Mar 27 06:23:59 2015] [error] IOError: [Errno 28] No space left on device
[Fri Mar 27 06:23:59 2015] [error] Forbidden (CSRF token missing or incorrect.): /admin/images/create/

Instead of resetting the connection, it should throw a proper exception handling message.

Revision history for this message
Marcos Lobo (marcos-fermin-lobo) wrote :

Is this happening only with httpS?

Revision history for this message
Sasikiran (sasikiran-vaddi) wrote :

If it is not https, then it is throwing below error in UI

Danger: There was an error submitting the form. Please try again.

but if it is hptts, then it gives
Resetting the connection, it should throw a proper exception handling message.

Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

I suspect that the real problem here is [Fri Mar 27 06:23:59 2015] [error] IOError: [Errno 28] No space left on device
Once there are no space left on controller node, all kinds of weird things could happen.

The problem with controller node space exhaustion when uploading Glance image is being solved at bug 1403129.

Revision history for this message
Sasikiran (sasikiran-vaddi) wrote :

Yes I agree with you Timur

But from horizon the connection is getting lost because of CSRF token. Due to this we cannot navigate to other tabs.
Forbidden (CSRF token missing or incorrect.): /admin/images/create/

Even if it throws a error, there should be a way to handle and throw it on the dashboard UI, so that user can use the dashboard without any interruption.

Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

Sasikiran, yes, it actually may be a different bug. Yet IMO we can hardly make any guarantee of work if there is no space at Controller node.

I've edited the summary and removed Duplicate status.

summary: - Horizon upload large image fails with secure connection reset using
- https
+ The error is not propagated to the UI when https request fails due to
+ disk space exhaustion
Changed in horizon:
importance: Undecided → Low
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.