]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix log remote dir with dual clusters
authorShilpa Jagannath <smanjara@redhat.com>
Fri, 31 Aug 2018 07:22:35 +0000 (12:52 +0530)
committerVasu Kulkarni <vasu@redhat.com>
Thu, 14 Feb 2019 20:28:12 +0000 (12:28 -0800)
teuthology/task/ceph_ansible.py

index 24619c1c1171e115c07adac6b22563616a89e951..ce0676c661674058e303dee844e6d1ba94890f4d 100644 (file)
@@ -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