I have a solution. Somehow subprocess is not being correctly patched by eventlet in the git module.
patching manually on import makes it work like this:
""" import eventlet from eventlet import timeout as ev_timeout from eventlet.green import subprocess import eventlet.patcher import sys
eventlet.monkey_patch( os=True, select=True, socket=True, thread=False if '--use-debugger' in sys.argv else True, time=True)
git = eventlet.import_patched('git', ('subprocess', subprocess)) repo = git.Repo.init("/tmp/foo")
"""
I'm writing a patch for tripleo-common. but I removing the bug from mistral because it is more of an eventlet issue than a mistral one.
I have a solution. Somehow subprocess is not being correctly patched by eventlet in the git module.
patching manually on import makes it work like this:
"""
import eventlet
from eventlet import timeout as ev_timeout
from eventlet.green import subprocess
import eventlet.patcher
import sys
eventlet. monkey_ patch(
os=True,
select=True,
socket=True,
thread=False if '--use-debugger' in sys.argv else True,
time=True)
git = eventlet. import_ patched( 'git', ('subprocess', subprocess)) init("/ tmp/foo" )
repo = git.Repo.
"""
I'm writing a patch for tripleo-common. but I removing the bug from mistral because it is more of an eventlet issue than a mistral one.