[Errno 11] Resource temporarily unavailable when using ansible api

I am too getting this error and could not find a way to fix it …

I am using ubuntu 14.04, ansible 1.8.2 in virtual mode. And using the python api to call the playbook.run()
Architechture is to listen to a mesage on a Rabbitmq using oslo messaging and then call ansible api

I did a couple of tests. I ran the ansible api call from a simple python file like this

python rough.py

What rough.py does is simply call the python api. This works perfectly fine.

Now why it is not working is because i have a oslo-messaging listener and then i passed the execution to the python api. Some how these 2 dont work together.

i dont know if this is related or not but something i found in this link …

http://stackoverflow.com/questions/14736766/why-does-gevent-socket-break-multiprocessing-connections-auth

i don’t know how to proceed now …

2015-01-31 00:26:04,933 - root - ERROR - Error in executing playbook[Errno 11] Resource temporarily unavailable

Traceback (most recent call last):

File “/opt/stack/venv/local/lib/python2.7/site-packages/attis-1.0.0a1-py2.7.egg/attis/engine/contentprocessor.py”, line 100, in runPlaybook
pb.run()
File “/opt/stack/venv/local/lib/python2.7/site-packages/ansible-1.8.2-py2.7.egg/ansible/playbook/init.py”, line 347, in run
if not self._run_play(play):
File “/opt/stack/venv/local/lib/python2.7/site-packages/ansible-1.8.2-py2.7.egg/ansible/playbook/init.py”, line 674, in _run_play
self._do_setup_step(play)
File “/opt/stack/venv/local/lib/python2.7/site-packages/ansible-1.8.2-py2.7.egg/ansible/playbook/init.py”, line 619, in _do_setup_step
accelerate_port=play.accelerate_port,
File “/opt/stack/venv/local/lib/python2.7/site-packages/ansible-1.8.2-py2.7.egg/ansible/runner/init.py”, line 1458, in run
results = self._parallel_exec(hosts)
File “/opt/stack/venv/local/lib/python2.7/site-packages/ansible-1.8.2-py2.7.egg/ansible/runner/init.py”, line 1349, in _parallel_exec

job_queue = manager.Queue()
File “/usr/lib/python2.7/multiprocessing/managers.py”, line 667, in temp
token, exp = self._create(typeid, *args, **kwds)
File “/usr/lib/python2.7/multiprocessing/managers.py”, line 565, in _create
conn = self._Client(self._address, authkey=self._authkey)
File “/usr/lib/python2.7/multiprocessing/connection.py”, line 175, in Client
answer_challenge(c, authkey)

File “/usr/lib/python2.7/multiprocessing/connection.py”, line 428, in answer_challenge
message = connection.recv_bytes(256) # reject large message
IOError: [Errno 11] Resource temporarily unavailable