teuthology/task: decode str returned from PIPE
which is bytes, and should be decoded before calling `split(a_str)`
@@ -8,6 +8,7 @@ import logging
import os
import time
import yaml
+import six
import subprocess
import teuthology.lock.ops
@@ -308,7 +309,7 @@ def fetch_binaries_for_coredumps(path, remote):
# Parse file output to get program, Example output:
# 1422917770.7450.core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, \
# from 'radosgw --rgw-socket-path /home/ubuntu/cephtest/apache/tmp.client.0/fastcgi_soc'
- dump_program = dump_out.split("from '")[1].split(' ')[0]
+ dump_program = six.ensure_str(dump_out).split("from '")[1].split(' ')[0]
# Find path on remote server:
remote_path = remote.sh(['which', dump_program]).rstrip()
