From: Zack Cerza Date: Mon, 7 Mar 2016 23:47:50 +0000 (-0700) Subject: Unpin gevent and avoid patching subprocess X-Git-Tag: 1.1.0~655^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5264bdc9474b9bdb8173b2582e7a525d34742b54;p=teuthology.git Unpin gevent and avoid patching subprocess Recently, gevent updated to 1.1.0, breaking a few things like misc.sh(). PR #810 pinned gevent to 1.0.2, but I wanted to properly investigate the issue to not be stuck on an old version. Some git bisects later, I discovered that gevent began patching the subprocess module by default in: https://github.com/gevent/gevent/commit/fc73e9afa34d811ede5d62531025d2e3876b8c01 Unpinning gevent and also telling it not to patch subprocess fixes the issue. Signed-off-by: Zack Cerza --- diff --git a/setup.py b/setup.py index 83de25f1bd..ae368af2b3 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ setup( 'Topic :: System :: Filesystems', ], install_requires=['setuptools', - 'gevent == 1.0.2', + 'gevent', 'MySQL-python == 1.2.3', 'PyYAML', 'argparse >= 1.2.1', diff --git a/teuthology/__init__.py b/teuthology/__init__.py index d0bcfc0ab2..e44c612eab 100644 --- a/teuthology/__init__.py +++ b/teuthology/__init__.py @@ -1,5 +1,9 @@ from gevent import monkey -monkey.patch_all(dns=False) +monkey.patch_all( + dns=False, + # Don't patch subprocess to avoid http://tracker.ceph.com/issues/14990 + subprocess=False, +) from .orchestra import monkey monkey.patch_all()