[copr] skvidal-backend: running from el6 and using transport=ssh ends in tears :) (6619282)

skvidal at fedoraproject.org skvidal at fedoraproject.org
Fri Nov 16 20:22:40 UTC 2012


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : skvidal-backend

>---------------------------------------------------------------

commit 6619282faaec188a845422ecea1ff3a55c395967
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Fri Nov 16 15:20:35 2012 -0500

    running from el6 and using transport=ssh ends in tears :)


>---------------------------------------------------------------

 backend/dispatcher.py |    2 +-
 backend/mockremote.py |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/backend/dispatcher.py b/backend/dispatcher.py
index cd387da..5478719 100644
--- a/backend/dispatcher.py
+++ b/backend/dispatcher.py
@@ -139,7 +139,7 @@ class Worker(multiprocessing.Process):
         return jobdata
 
     def return_results(self, job):
-        self.callback.log('%s status %s. Took %s seconds' % (job.id, job.status, job.ended_on - job.startedon))
+        self.callback.log('%s status %s. Took %s seconds' % (job.build_id, job.status, job.ended_on - job.startedon))
         os.unlink(job.jobfile)
         #FIXME - this should either return job status/results 
         # into a queue or it should submit results directly to the frontend
diff --git a/backend/mockremote.py b/backend/mockremote.py
index 44e9fd9..7a48857 100755
--- a/backend/mockremote.py
+++ b/backend/mockremote.py
@@ -97,7 +97,7 @@ def get_ans_results(results, hostname):
 def _create_ans_conn(hostname, username, timeout):
     ans_conn = ansible.runner.Runner(remote_user=username,
           host_list=[hostname], pattern=hostname, forks=1,
-          timeout=timeout, transport='ssh')
+          timeout=timeout)
     return ans_conn
     
 def check_for_ans_error(results, hostname, err_codes=[], success_codes=[0], 
@@ -362,7 +362,7 @@ class Builder(object):
             
         # connect as user 
         ans = ansible.runner.Runner(host_list=[self.hostname], pattern='*', 
-              remote_user=self.username, forks=1, timeout=20, transport='ssh')
+              remote_user=self.username, forks=1, timeout=20)
         ans.module_name = "shell"
         ans.module_args = str("/bin/rpm -q mock rsync")
         res = ans.run()



More information about the copr-devel mailing list