From: Jason Dillaman Date: Tue, 27 Jun 2017 12:14:28 +0000 (-0400) Subject: qa/task/qemu: ensure test has access to all generated log files X-Git-Tag: ses5-milestone8^2~11^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15956%2Fhead;p=ceph.git qa/task/qemu: ensure test has access to all generated log files Signed-off-by: Jason Dillaman --- diff --git a/qa/tasks/qemu.py b/qa/tasks/qemu.py index 1a95e74242f..9ad0a41b9eb 100644 --- a/qa/tasks/qemu.py +++ b/qa/tasks/qemu.py @@ -427,6 +427,16 @@ def run_qemu(ctx, config): log.debug('checking that qemu tests succeeded...') for client in config.iterkeys(): (remote,) = ctx.cluster.only(client).remotes.keys() + + # ensure we have permissions to all the logs + log_dir = '{tdir}/archive/qemu/{client}'.format(tdir=testdir, + client=client) + remote.run( + args=[ + 'sudo', 'chmod', 'a+rw', '-R', log_dir + ] + ) + # teardown nfs mount _teardown_nfs_mount(remote, client) # check for test status