From ba58aa6d9e7967334fe7e2dcc97f14820bcb6fa3 Mon Sep 17 00:00:00 2001 From: Deepika Upadhyay Date: Tue, 8 Dec 2020 20:04:13 +0530 Subject: [PATCH] qa/tasks/ceph_manager: use s/ByteIO/StringIO in stdout for ceph-objectstore-tool wrt master, we have moved to using run_ceph_objectstore_tool which uses StringIO for stdout and stderr, to make the changes compatible with nautilus, replacing use of ByteIO with StringIO. see also: d8d44ed Signed-off-by: Deepika Upadhyay --- qa/tasks/ceph_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/ceph_manager.py b/qa/tasks/ceph_manager.py index dfbd315c21df3..dfbeb4076256d 100644 --- a/qa/tasks/ceph_manager.py +++ b/qa/tasks/ceph_manager.py @@ -260,7 +260,7 @@ class Thrasher: while proceed(): proc = exp_remote.run(args=cmd, wait=True, check_status=False, - stdout=BytesIO(), stderr=BytesIO()) + stdout=StringIO(), stderr=StringIO()) if proc.exitstatus == 0: break elif (proc.exitstatus == 1 and @@ -304,7 +304,7 @@ class Thrasher: # If pg isn't already on this osd, then we will move it there cmd = (prefix + "--op list-pgs").format(id=imp_osd) proc = imp_remote.run(args=cmd, wait=True, - check_status=False, stdout=BytesIO()) + check_status=False, stdout=StringIO()) if proc.exitstatus: raise Exception("ceph-objectstore-tool: " "imp list-pgs failure with status {ret}". -- 2.39.5