From: Redouane Kachach Date: Mon, 11 Apr 2022 14:13:05 +0000 (+0200) Subject: mgr/cephadm: fixing call method timeout handling X-Git-Tag: v18.0.0~999^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=55d42d0c31a5414cb2beac9273faa7123efb8709;p=ceph.git mgr/cephadm: fixing call method timeout handling Fixes: https://tracker.ceph.com/issues/55265 Signed-off-by: Redouane Kachach --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 004219bb6a3..11b42d083a7 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -1611,9 +1611,8 @@ def call(ctx: CephadmContext, assert process.stdout assert process.stderr try: - stdout, stderr = await asyncio.gather(tee(process.stdout), - tee(process.stderr)) returncode = await asyncio.wait_for(process.wait(), timeout) + stdout, stderr = await asyncio.gather(tee(process.stdout), tee(process.stderr)) except asyncio.TimeoutError: logger.info(prefix + f'timeout after {timeout} seconds') return '', '', 124