aboutsummaryrefslogtreecommitdiff
path: root/rumba/prototypes
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2018-02-21 11:43:49 +0100
committerMarco Capitani <m.capitani@nextworks.it>2018-02-27 16:51:26 +0100
commit0158b68b1736ca8a5fb68de5a56cae234030774c (patch)
tree77d317940d9abcc0db9140fc494266c9a04effb2 /rumba/prototypes
parent5e6f1b8dd525bf4c0f8a03463bdb1f4696f27dee (diff)
downloadrumba-0158b68b1736ca8a5fb68de5a56cae234030774c.tar.gz
rumba-0158b68b1736ca8a5fb68de5a56cae234030774c.zip
model & more: add prototype/system log fields
This commit adds the fields necessary to specify the paths and folders related to system logs and prototype logs and fetching them. Defaults are introduced and specific paths for rlite & qemu
Diffstat (limited to 'rumba/prototypes')
-rw-r--r--rumba/prototypes/irati.py2
-rw-r--r--rumba/prototypes/rlite.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/rumba/prototypes/irati.py b/rumba/prototypes/irati.py
index 50b8d89..41de9bb 100644
--- a/rumba/prototypes/irati.py
+++ b/rumba/prototypes/irati.py
@@ -188,7 +188,7 @@ class Experiment(mod.Experiment):
self.sudo('modprobe shim-eth-vlan'),
self.sudo('modprobe normal-ipcp'),
self.sudo('ipcm -a \"%(ipcmcomps)s\" '
- '-c /etc/%(name)s.ipcm.conf -l %(verb)s &> log &'
+ '-c /etc/%(name)s.ipcm.conf -l %(verb)s &> ipcmstart.log &'
% format_args)]
logger.info('Sending setup commands to node %s.', node.name)
diff --git a/rumba/prototypes/rlite.py b/rumba/prototypes/rlite.py
index 3268ef5..dca693b 100644
--- a/rumba/prototypes/rlite.py
+++ b/rumba/prototypes/rlite.py
@@ -41,7 +41,8 @@ class Experiment(mod.Experiment):
def __init__(self, testbed, nodes=None,
git_repo='https://github.com/vmaffione/rlite',
git_branch='master'):
- mod.Experiment.__init__(self, testbed, nodes, git_repo, git_branch)
+ mod.Experiment.__init__(self, testbed, nodes, git_repo, git_branch,
+ prototype_logs=['/tmp/uipcp.log'])
@staticmethod
def make_executor(node, packages, testbed):
@@ -74,7 +75,7 @@ class Experiment(mod.Experiment):
"modprobe rlite-shim-eth",
"modprobe rlite-shim-udp4",
"modprobe rlite-shim-loopback",
- "rlite-uipcps -v DBG >uipcp.log 2>&1 &"]
+ "rlite-uipcps -v DBG > /tmp/uipcp.log 2>&1 &"]
self.may_sudo(cmds)
for node in self.nodes: