← Back to team overview

registry team mailing list archive

[Bug 649806] [NEW] AMQP concurrencty problem in API server

 

Public bug reported:

It seems that both our use of Redis and Carrot (or py-amqplib) are
suffering somewhat under Eventlet. This bug is about Carrot/py-amqplib:

I created a simple script that would start an instance, and keep trying
to connect to its ssh port for a while, and once succesful, it would
terminate the instance again and start over. I ran this script in four
terminals at the same time. Quite soon, I would start getting errors
like this from euca-run-instances:

RuntimeError: Second simultaneous read on fileno 17 detected.  Unless
you really know what you're doing, make sure that only one greenthread
can read any particular socket.  Consider using a pools.Pool. If you do
know what you're doing and want to disable this error, call
eventlet.debug.hub_multiple_reader_prevention(False)

Running the api server under strace revealed that that file descriptor
in question is the connection to the AMQP server. Since I don't know
what I'm doing, I didn't call
eventlet.debug.hub_multiple_reader_prevention(FaIse).

Again, if I stop reusing connections (like in the Redis bug) things work
fine, apparantly.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
AMQP concurrencty problem in API server
https://bugs.launchpad.net/bugs/649806
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.



Follow ups

References