Large files cause Horizon to timeout when uploading to the Swift UI

Bug #1032315 reported by John Postlethwait
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Won't Fix
Low
Unassigned

Bug Description

When I upload a big file via horizon I obtain a timeout - however the file sometimes gets uploaded, sometimes not. From swift client file uploads fine and via glance to swift also uploads fine. But from horizon I've obtain such an error:

timeout at /nova/containers/nowy1/upload
timed out
Request Method: POST
Request URL: http://10.9.4.7/nova/containers/nowy1/upload
Django Version: 1.3.1
Exception Type: timeout
Exception Value:

Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  40. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  55. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  40. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  129. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  47. return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
  68. return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/forms/views.py" in post
  84. return self.get(self, request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/forms/views.py" in get
  64. form, handled = self.maybe_handle()
File "/usr/lib/python2.7/dist-packages/horizon/forms/views.py" in maybe_handle
  59. self.form, self.handled = form.maybe_handle(self.request, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/forms/base.py" in maybe_handle
  101. exceptions.handle(request)
File "/usr/lib/python2.7/dist-packages/horizon/forms/base.py" in maybe_handle
  99. return form, form.handle(request, form.cleaned_data)
File "/usr/lib/python2.7/dist-packages/horizon/dashboards/nova/containers/forms.py" in handle
  75. exceptions.handle(request, _("Unable to upload object."))
File "/usr/lib/python2.7/dist-packages/horizon/dashboards/nova/containers/forms.py" in handle
  70. object_file)
File "/usr/lib/python2.7/dist-packages/horizon/api/swift.py" in swift_upload_object
  128. obj.send(object_file)
File "/usr/lib/python2.7/dist-packages/cloudfiles/utils.py" in decorator
  45. return f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cloudfiles/storage_object.py" in send
  513. raise err

Exception Type: timeout at /nova/containers/nowy1/upload
Exception Value: timed out

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

Large file uploads are a known problem with blueprints to address them. Also, why is this using Django 1.3.1?

description: updated
Changed in horizon:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Tomasz Kłosiński (tomasz-michal-klosinski) wrote :

Django is from Ubuntu 12.04 Server repository. I've installed OpenStack from Ubuntu packages.

root@KVM7:~# dpkg-query -p python-django
Package: python-django
Priority: optional
Section: python
Installed-Size: 35797
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Version: 1.3.1-4ubuntu1
Depends: python2.7, python (>= 2.7.1-0ubuntu2), python (<< 2.8)
Recommends: libjs-jquery
Suggests: python-psycopg2, python-psycopg, python-mysqldb, python-flup, python-sqlite, python-yaml, geoip-database-contrib
Size: 4244890
Description: High-level Python web development framework
 Django is a high-level web application framework that loosely follows the
 model-view-controller design pattern.
 .
 Python's equivalent to Ruby on Rails, Django lets you build complex
 data-driven websites quickly and easily - Django focuses on automating as much
 as possible and adhering to the "Don't Repeat Yourself" (DRY) principle.
 .
 Django additionally emphasizes reusability and "pluggability" of components;
 many generic third-party "applications" are available to enhance projects or
 to simply to reduce development time even further.
 .
 Notable features include:
  * An object-relational mapper (ORM)
  * Automatic admin interface
  * Elegant URL dispatcher
  * Form serialization and validation system
  * Templating system
  * Lightweight, standalone web server for development and testing
  * Internationalization support
  * Testing framework and client
Homepage: http://www.djangoproject.com/
Original-Maintainer: Chris Lamb <email address hidden>

root@KVM7:~# dpkg-query -p keystone
Package: keystone
Priority: extra
Section: python
Installed-Size: 123
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Version: 2012.1+stable~20120608-aff45d6-0ubuntu1
Depends: python, debconf (>= 0.5) | debconf-2.0, upstart-job, python-keystone (= 2012.1+stable~20120608-aff45d6-0ubuntu1), adduser, ssl-cert (>= 1.0.12), dbconfig-common
Size: 15526
Description: OpenStack identity service - Daemons
 Keystone is a proposed independent authentication service for OpenStack.
 .
 This initial proof of concept aims to address the current use cases in Swift
 and Nova which are:
 .
  * REST-based, token auth for Swift
  * many-to-many relationship between identity and tenant for Nova. Keystone
    does authentication and stuff
 .
 This package contains the daemons.
Homepage: http://launchpad.net/keystone
Original-Maintainer: Monty Taylor <email address hidden>

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :
Changed in horizon:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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