Ask Your Question
0

Eventlet crashes because of subprocess

asked 2011-02-28 22:25:20 -0500

The current version of Eventlet has a bug in it related to its interaction with the subprocess module.

It will generate a stacktrace like:

(nova): TRACE: stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env) (nova): TRACE: File "/usr/lib64/python2.6/site-packages/eventlet/green/subprocess.py", line 31, in __init__ (nova): TRACE: wrapped_pipe = greenio.GreenPipe(pipe, pipe.mode, bufsize) (nova): TRACE: File "/usr/lib64/python2.6/site-packages/eventlet/greenio.py", line 376, in __init__ (nova): TRACE: raise TypeError('f(ile) should be int, str, unicode or file, not %r' % f) (nova): TRACE: TypeError: f(ile) should be int, str, unicode or file, not <open greenpipe="" '<fd:4="">', mode 'wb' at 0xf54ea8>

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2011-02-28 22:32:26 -0500

The issue is discussed here:

https://bitbucket.org/which_linden/eventlet/issue/77/subprocess-module-fails-if-os-module-is (https://bitbucket.org/which_linden/ev...)

You have two routes:

  1. Use the ppa

  2. Apply the patch included in the link. You can do something like:

pushd /usr/lib64/python2.6/site-packages/eventlet curl https://bitbucket-assetroot.s3.amazonaws.com/which_linden/eventlet/20110214/77/greenpipe-wrap.patch (https://bitbucket-assetroot.s3.amazon...) | patch popd

P.S.

(Asking and answering my own question to document this issue for posterity. And karma. Lots of karam.).

edit flag offensive delete link more
0

answered 2011-02-28 22:47:49 -0500

soren gravatar image

I've turned this into an FAQ. Thanks. FAQ #1485: “Eventlet crashes because of subprocess”.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-02-28 22:25:20 -0500

Seen: 31 times

Last updated: Feb 28 '11