]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: Fix a few tracebacks in vstart_runner
authorKotresh HR <khiremat@redhat.com>
Tue, 14 Dec 2021 10:13:41 +0000 (15:43 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 27 Apr 2022 10:32:32 +0000 (16:02 +0530)
1. CommandFailedError: Command failed with status 127: \
['None/archive/coverage', 'rados' ...]
2. TypeError: a bytes-like object is required, not '_io.BytesIO'

Fixes: https://tracker.ceph.com/issues/53601
Signed-off-by: Kotresh HR <khiremat@redhat.com>
qa/tasks/vstart_runner.py

index 22106ed2dd3a0269f4f0b52f93d1916ae6099fe2..e7b393833dc5c4d1c2e2ab9f6ba8f88bf7942210 100644 (file)
@@ -423,7 +423,8 @@ class LocalRemote(object):
 
         # Filter out helper tools that don't exist in a vstart environment
         args = [a for a in args if a not in ('adjust-ulimits',
-                                             'ceph-coverage')]
+                                             'ceph-coverage',
+                                             'None/archive/coverage')]
 
         # Adjust binary path prefix if given a bare program name
         if not isinstance(args[0], Raw) and "/" not in args[0]:
@@ -469,7 +470,7 @@ class LocalRemote(object):
             elif isinstance(stdin, StringIO):
                 subproc.stdin.write(bytes(stdin.getvalue(),encoding='utf8'))
             else:
-                subproc.stdin.write(stdin)
+                subproc.stdin.write(stdin.getvalue())
 
         proc = LocalRemoteProcess(
             args, subproc, check_status,