From 6eb57a2a4fc63771096f8fd08c02b2bda49c9301 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 7 Apr 2020 23:05:30 +0800 Subject: [PATCH] qa/tasks/cephadm.py: decode data returned by teuthology.get_file() it's used as part of the command line sent to shell, so we need to decode it first. Signed-off-by: Kefu Chai --- qa/tasks/cephadm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 5703c7ad27227..1ffd02553dceb 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -391,7 +391,7 @@ def ceph_bootstrap(ctx, config): ssh_pub_key = teuthology.get_file( remote=bootstrap_remote, path='{}/{}.pub'.format(testdir, cluster_name) - ).strip() + ).decode('ascii').strip() log.info('Installing pub ssh key for root users...') ctx.cluster.run(args=[ -- 2.39.5