gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r22793 - gnunet-planetlab/gplmt


From: gnunet
Subject: [GNUnet-SVN] r22793 - gnunet-planetlab/gplmt
Date: Fri, 20 Jul 2012 15:32:48 +0200

Author: wachs
Date: 2012-07-20 15:32:48 +0200 (Fri, 20 Jul 2012)
New Revision: 22793

Modified:
   gnunet-planetlab/gplmt/README
   gnunet-planetlab/gplmt/Worker.py
Log:
- added pseudo terminal allocation to make sudo work


Modified: gnunet-planetlab/gplmt/README
===================================================================
--- gnunet-planetlab/gplmt/README       2012-07-20 12:49:06 UTC (rev 22792)
+++ gnunet-planetlab/gplmt/README       2012-07-20 13:32:48 UTC (rev 22793)
@@ -15,6 +15,7 @@
 Features:
 =============
 
+- Support for public key and SSH agent authentication
 - PlanetLab API integration to retrieve node list
 - SFTP support to copy data from and to nodes
 - Extensible task list

Modified: gnunet-planetlab/gplmt/Worker.py
===================================================================
--- gnunet-planetlab/gplmt/Worker.py    2012-07-20 12:49:06 UTC (rev 22792)
+++ gnunet-planetlab/gplmt/Worker.py    2012-07-20 13:32:48 UTC (rev 22793)
@@ -46,6 +46,7 @@
         try:
             channel = transport.open_session()
             channel.settimeout(1.0)
+            channel.get_pty ()
             channel.exec_command(task.command + " " + task.arguments)
         except SSHException as e:
             print self.node + " : Error while trying to connect: " + str(e)
@@ -53,7 +54,7 @@
         if (task.timeout > 0):
             timeout = task.timeout
         else:
-            timeout = 10
+            timeout = 90
         exec_time = 0
         result = Tasks.Taskresult.success
         while ((not channel.exit_status_ready()) and (exec_time < timeout)):
@@ -73,6 +74,8 @@
         if (result == Tasks.Taskresult.success):                    
             if (exit_status != task.expected_return_code):
                 g_logger.log (self.node + " : Task '"+ task.name + "' 
completed, but exit code " +str(exit_status)+ " was not as expected " + 
str(task.expected_return_code))
+                g_logger.log (stdout_data)
+                g_logger.log (stderr_data)
                 result = Tasks.Taskresult.return_value_did_not_match
             else:
                 g_logger.log (self.node + " : Task '"+ task.name + "' 
completed, exit code " +str(exit_status)+ " was as expected " + 
str(task.expected_return_code))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]