From: Shilpa Jagannath Date: Fri, 31 Aug 2018 07:22:35 +0000 (+0530) Subject: Fix log remote dir with dual clusters X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=77491b84bebcee0155c613f217fe2bd34b4f8b87;p=teuthology.git Fix log remote dir with dual clusters --- diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index 24619c1c1..ce0676c66 100644 --- a/teuthology/task/ceph_ansible.py +++ b/teuthology/task/ceph_ansible.py @@ -313,13 +313,12 @@ class CephAnsible(Task): if ctx.archive is not None and \ not (ctx.config.get('archive-on-error') and ctx.summary['success']): log.info('Archiving logs...') - path = os.path.join(ctx.archive, 'remote') + path = os.path.join(ctx.archive, self.cluster_name, 'remote') try: os.makedirs(path) except OSError as e: if e.errno != errno.EISDIR or e.errno != errno.EEXIST: raise - # os.makedirs(path) def wanted(role): # Only attempt to collect logs from hosts which are part of the