]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph_manager: use s/ByteIO/StringIO in stdout for ceph-objectstore-tool 37906/head
authorDeepika Upadhyay <dupadhya@redhat.com>
Tue, 8 Dec 2020 14:34:13 +0000 (20:04 +0530)
committerDeepika Upadhyay <dupadhya@redhat.com>
Tue, 23 Feb 2021 07:35:00 +0000 (13:05 +0530)
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 <dupadhya@redhat.com>
qa/tasks/ceph_manager.py

index dfbd315c21df39454a4b7b577051aee666c07866..dfbeb4076256d3cba828e93c4dd31f5f97ec0ab2 100644 (file)
@@ -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}".