mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
mgr/cephadm: fixing call method timeout handling
Fixes: https://tracker.ceph.com/issues/55265 Signed-off-by: Redouane Kachach <rkachach@redhat.com>
This commit is contained in:
parent
c82efef051
commit
55d42d0c31
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user