From 849e8f89b430dc4d536237fc2fad1788660f77f6 Mon Sep 17 00:00:00 2001 From: Shilpa Jagannath Date: Fri, 31 Aug 2018 12:52:35 +0530 Subject: [PATCH] Fix log remote dir with dual clusters --- teuthology/task/ceph_ansible.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.47.3