Project

General

Profile

Actions

Bug #14990

closed

gevent regression

Added by Loïc Dachary about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

command = '/bin/echo -n AB ; /bin/echo C', log_limit = 2

    def sh(command, log_limit=1024):
        """ 
        Run the shell command and return the output in ascii (stderr and
        stdout).  If the command fails, raise an exception. The command
        and its output are logged, on success and on error.
        """ 
        log.debug(":sh: " + command)
        proc = subprocess.Popen(
            args=command,
            stdout=subprocess.PIPE,
            stderr=subprocess.STDOUT,
            shell=True,
            bufsize=1)
        lines = []
        truncated = False
>       with proc.stdout:
E       AttributeError: __exit__

teuthology/misc.py:1305: AttributeError
Actions

Also available in: Atom PDF