aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2018-03-28 12:13:45 +0200
committerMarco Capitani <m.capitani@nextworks.it>2018-03-28 12:13:45 +0200
commit45b397567a6700fc1284d45fc04b7c49e8ffa5f4 (patch)
tree59af777170fb1dee931484744af5cd9b1adf23fc
parentb95e6d7cddd7e07bbc3ce355862249227a323865 (diff)
downloadrumba-45b397567a6700fc1284d45fc04b7c49e8ffa5f4.tar.gz
rumba-45b397567a6700fc1284d45fc04b7c49e8ffa5f4.zip
storyboard: fix in fetch_logs
Logs were fetched only from server and client nodes. Now all nodes are searched for logs.
-rw-r--r--rumba/storyboard.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/rumba/storyboard.py b/rumba/storyboard.py
index 0dc4fba..9aff375 100644
--- a/rumba/storyboard.py
+++ b/rumba/storyboard.py
@@ -707,15 +707,7 @@ class StoryBoard(SBEntity):
raise Exception('Destination "%s" is not a directory. '
'Cannot fetch logs.'
% local_dir)
- for node in self.server_nodes:
- dst_dir = os.path.join(local_dir, node.name)
- if not os.path.isdir(dst_dir):
- os.mkdir(dst_dir)
- logs_list = node.execute_command('ls /tmp/*_server.log')
- logs_list = [x for x in logs_list.split('\n') if x != '']
- logger.debug('Log list is:\n%s', logs_list)
- node.fetch_files(logs_list, dst_dir)
- for node in self.client_nodes:
+ for node in self.node_map.values():
dst_dir = os.path.join(local_dir, node.name)
if not os.path.isdir(dst_dir):
os.mkdir(dst_dir)