import os
from io import BytesIO
+from six import StringIO
from teuthology import misc as teuthology
from tasks.scrub import Scrubber
from tasks.util.rados import cmd_erasure_code_profile
if watch_channel is not None:
args.append("--watch-channel")
args.append(watch_channel)
- return self.controller.run(args=args, wait=False, stdout=BytesIO(), stdin=run.PIPE)
+ return self.controller.run(args=args, wait=False, stdout=StringIO(), stdin=run.PIPE)
def flush_pg_stats(self, osds, no_wait=None, wait_for_mon=300):
"""
def osd_admin_socket(self, osd_id, command, check_status=True, timeout=0, stdout=None):
if stdout is None:
- stdout = BytesIO()
+ stdout = StringIO()
return self.admin_socket('osd', osd_id, command, check_status, timeout, stdout)
def find_remote(self, service_type, service_id):
to the admin socket
"""
if stdout is None:
- stdout = BytesIO()
+ stdout = StringIO()
testdir = teuthology.get_testdir(self.ctx)
remote = self.find_remote(service_type, service_id)
args = [
five seconds and try again.
"""
if stdout is None:
- stdout = BytesIO()
+ stdout = StringIO()
tries = 0
while True:
proc = self.admin_socket(service_type, service_id,