Error when uploading a uploading a bundle

Bug #654518 reported by Chmouel Boudjnah
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

I am getting this exception (twisted.internet.error.ReactorAlreadyRunning) when trying to upload a bundle :

using packages built from latest nova/ubuntu branch on ubuntu lucid

2010-10-04 13:24:46+0100 [HTTPChannel,0,127.0.0.1] Unhandled Error
        Traceback (most recent call last):
          File "/usr/lib/python2.6/dist-packages/twisted/protocols/basic.py", line 251, in dataReceived
            why = self.lineReceived(line)
          File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 1573, in lineReceived
            self.allContentReceived()
          File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 1641, in allContentReceived
            req.requestReceived(command, path, version)
          File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 807, in requestReceived
            self.process()
        --- <exception caught here> ---
          File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 124, in process
            resrc = self.site.getResourceFor(self)
          File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 523, in getResourceFor
            return resource.getChildForRequest(self.resource, request)
          File "/usr/lib/python2.6/dist-packages/twisted/web/resource.py", line 61, in getChildForRequest
            resource = resource.getChildWithDefault(pathElement, request)
          File "/usr/lib/python2.6/dist-packages/twisted/web/resource.py", line 165, in getChildWithDefault
            return self.getChild(path, request)
          File "/usr/lib/pymodules/python2.6/nova/objectstore/handler.py", line 167, in getChild
            request.context = get_context(request)
          File "/usr/lib/pymodules/python2.6/nova/objectstore/handler.py", line 125, in get_context
            am = manager.AuthManager()
          File "/usr/lib/pymodules/python2.6/nova/auth/manager.py", line 214, in __init__
            self.network_manager = utils.import_object(FLAGS.network_manager)
          File "/usr/lib/pymodules/python2.6/nova/utils.py", line 54, in import_object
            __import__(import_str)
          File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 53, in <module>
            flags.DEFINE_string('vpn_ip', utils.get_my_ip(),
          File "/usr/lib/pymodules/python2.6/nova/utils.py", line 149, in get_my_ip
            csock.connect(('www.google.com', 80))
          File "/usr/lib/pymodules/python2.6/eventlet/greenio.py", line 162, in connect
            trampoline(fd, write=True)
          File "/usr/lib/pymodules/python2.6/eventlet/hubs/__init__.py", line 125, in trampoline
            return hub.switch()
          File "/usr/lib/pymodules/python2.6/eventlet/hubs/twistedr.py", line 212, in switch
            return self.greenlet.switch()
          File "/usr/lib/pymodules/python2.6/eventlet/hubs/twistedr.py", line 223, in run
            reactor.startRunning(installSignalHandlers=installSignalHandlers)
          File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1127, in startRunning
            ReactorBase.startRunning(self)
          File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 653, in startRunning
            raise error.ReactorAlreadyRunning()
        twisted.internet.error.ReactorAlreadyRunning:

Revision history for this message
Chmouel Boudjnah (chmouel) wrote :

Full HTML stacktrace is here :

http://is.gd/fK5kN

Chmoeul.

Revision history for this message
Chmouel Boudjnah (chmouel) wrote :

This seems to be the part in nova/wsgi.py :

eventlet.patcher.monkey_patch(all=False, socket=True)

which patch the socket implementation with a greenlet which in this case using the twisted implementation and try to start the reactor but has been started already somewhere in Nova...

Is there a need for having socket eventlet'et?

Revision history for this message
Chmouel Boudjnah (chmouel) wrote :

 I have upgraded the eventlet library to latest version and this seems to work now... Sorry about the nosie :)

Changed in nova:
status: New → Invalid
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.