From 8393b876fc0c946d7cb36f4e8046e0323cfde823 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 17 Nov 2008 16:41:19 +0000 Subject: [PATCH] get sliver /var/log through the node main entrance --- system/TestSliver.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/system/TestSliver.py b/system/TestSliver.py index f0238b3..815afa3 100644 --- a/system/TestSliver.py +++ b/system/TestSliver.py @@ -47,8 +47,13 @@ class TestSliver: return self.test_ssh.copy("tcptest.py")==0 and \ self.test_ssh.run(client_command,background=True)==0 + # use the node's main ssh root entrance, as the slice entrance might be down + #def tar_var_logs (self): + # return self.test_ssh.actual_command("sudo tar -C /var/log -cf - .") def tar_var_logs (self): - return self.test_ssh.actual_command("sudo tar -C /var/log -cf - .") + test_ssh=self.test_node.create_test_ssh() + dir_to_tar="/vservers/%s/var/log"%self.test_slice.name() + return test_ssh.actual_command("tar -C %s -cf - ."%dir_to_tar) def check_sanity (self): print 'NOTE: slice sanity check scripts NOT (yet?) run in sudo' -- 2.43.0