Hi Lucas,

yes, you are correct. I tried adding ssh keys for autotest user. It is
working. But seeing rsync issue.

Log:
===

utils:0074| Running 'rsync -L  --timeout=1800 --rsh='/usr/bin/ssh -a -x
-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/fd/21 -o
BatchMode=yes -o ConnectTimeout=30 -o ServerAliveInterval=300 -l root -p
22' -az
[email protected]:"/var/log/monitor-ssh-reboots" 
/usr/local/autotest/results/27-root/xx.beaverton.ibm.com/crashinfo.xx.beaverton.ibm.com'
11/29 23:28:51 INFO |crashcolle:0109| Collecting 'dmesg' ...
11/29 23:28:51 DEBUG|  ssh_host:0114| Running (ssh) 'dmesg'
11/29 23:28:52 DEBUG|  ssh_host:0114| Running (ssh) 'rm -rf
"/tmp/autoserv-pprM0D"'
11/29 23:28:53 ERROR| traceback:0013| Traceback (most recent call last):
11/29 23:28:53 ERROR| traceback:0013|   File
"/usr/local/autotest/server/autoserv", line 148, in run_autoserv
11/29 23:28:53 ERROR| traceback:0013|
only_collect_crashinfo=collect_crashinfo)
11/29 23:28:53 ERROR| traceback:0013|   File
"/usr/local/autotest/server/server_job.py", line 541, in run
11/29 23:28:53 ERROR| traceback:0013|
self._execute_code(server_control_file, namespace)
11/29 23:28:53 ERROR| traceback:0013|   File
"/usr/local/autotest/server/server_job.py", line 1021, in _execute_code
11/29 23:28:53 ERROR| traceback:0013|     execfile(code_file, namespace,
namespace)
11/29 23:28:53 ERROR| traceback:0013|   File
"/usr/local/autotest/results/27-root/xx.beaverton.ibm.com/control.srv",
line 12, in <module>
11/29 23:28:53 ERROR| traceback:0013|
job.parallel_simple(run_client, machines)
11/29 23:28:53 ERROR| traceback:0013|   File
"/usr/local/autotest/server/server_job.py", line 443, in parallel_simple
11/29 23:28:53 ERROR| traceback:0013|     return_results=return_results)
11/29 23:28:53 ERROR| traceback:0013|   File
"/usr/local/autotest/server/subcommand.py", line 92, in parallel_simple
11/29 23:28:53 ERROR| traceback:0013|     function(arg)
11/29 23:28:53 ERROR| traceback:0013|   File
"/usr/local/autotest/results/27-root/xx.beaverton.ibm.com/control.srv",
line 9, in run_client
11/29 23:28:53 ERROR| traceback:0013|     at.run(control, host=host)
11/29 23:28:53 ERROR| traceback:0013|   File
"/usr/local/autotest/server/autotest.py", line 316, in run
11/29 23:28:53 ERROR| traceback:0013|     client_disconnect_timeout)
11/29 23:28:53 ERROR| traceback:0013|   File
"/usr/local/autotest/server/autotest.py", line 399, in _do_run
11/29 23:28:53 ERROR| traceback:0013|
client_disconnect_timeout=client_disconnect_timeout)
11/29 23:28:53 ERROR| traceback:0013|   File
"/usr/local/autotest/server/autotest.py", line 743, in execute_control
11/29 23:28:53 ERROR| traceback:0013|     logger,
client_disconnect_timeout)
11/29 23:28:53 ERROR| traceback:0013|   File
"/usr/local/autotest/server/autotest.py", line 690, in execute_section
11/29 23:28:53 ERROR| traceback:0013|     raise err
11/29 23:28:53 ERROR| traceback:0013| AutotestRunError: client job was
aborted
11/29 23:28:53 DEBUG|logging_ma:0561| Logging subprocess finished
11/29 23:28:53 DEBUG|logging_ma:0561| Logging subprocess finished
11/29 23:29:15 INFO |  autoserv:0202| Results placed
in /usr/local/autotest/results/27-root/xx.beaverton.ibm.com
11/29 23:29:15 DEBUG|  base_job:0347| Persistent state
global_properties.tag now set to ''
11/29 23:29:15 DEBUG|  base_job:0347| Persistent state
global_properties.last_boot_tag now set to None
11/29 23:29:15 INFO |server_job:0540| Processing control file
11/29 23:29:15 INFO |server_job:0542| Finished processing control file
11/29 23:29:15 DEBUG|logging_ma:0561| Logging subprocess finished
11/29 23:29:15 DEBUG|logging_ma:0561| Logging subprocess finished

Thanks,
Madhuri

On Tue, 2010-11-30 at 16:09 -0200, Lucas Meneghel Rodrigues wrote:
> Yes Madhuria, it might be that you have setup ssh keys with user 'root' and
> your autoserv command is being executed by user 'autotest', giving the
> problem you've described. Better check.
> 
> On Tue, Nov 30, 2010 at 3:48 PM, Jean-Marc Eurin <[email protected]> wrote:
> > The ssh command is ran by your server.  Did you check that the account
> > running your server can ssh into the machine?
> >
> > Jean-Marc
> >
> > On Nov 30, 2010 2:14 AM, "madhuri" <[email protected]> wrote:
> >> Hi,
> >>
> >> I am facing ssh issue as below, when I submit a job through the autotest
> >> scheduler.
> >>
> >> Permission denied (publickey,gssapi-with-mic,password).
> >>
> >> ssh password-less authentication is enabled in both server and client
> >> and also I gave chmod 700 .ssh and 600 to authorized_keys.
> >>
> >> I have executed the below ssh -a -x command in log manually and i could
> >> able to log into client machine. Dont know why it was giving permission
> >> denied.please let me know where I am doing wrong.
> >>
> >> Log:
> >> ===
> >> /atest job create -m xx.beaverton.ibm.com
> >> --control-file /usr/local/autotest/client/tests/kvm/control -w
> >> yy.beaverton.ibm.com -n job12 --reboot_before=never
> >> --reboot_after=never --parse-failed-repair=false
> >>
> >> Command:
> >> /usr/bin/ssh -a -x -o StrictHostKeyChecking=no -o
> >> UserKnownHostsFile=/dev/fd/20 -o BatchMode=yes -o ConnectTimeout=30
> >> -o
> >> ServerAliveInterval=300 -l root -p 22 xx.beaverton.ibm.com " rm -f
> >> /var/log/messages.autotest_start"
> >> Exit status: 255
> >> Duration: 0.544964075089
> >>
> >> stderr:
> >> Permission denied (publickey,gssapi-with-mic,password).
> >> 11/29 01:02:53 DEBUG| ssh_host:0114| Running (ssh) '/bin/uname -r'
> >> 11/29 01:02:54 ERROR| utils:0106| [stderr] Permission denied
> >> (publickey,gssapi-with-mic,password).^M
> >> 11/29 01:02:54 ERROR|server_job:0549| Exception escaped control file,
> >> job aborting:
> >> Traceback (most recent call last):
> >> File "/usr/local/autotest/server/server_job.py", line 541, in run
> >> self._execute_code(server_control_file, namespace)
> >> File "/usr/local/autotest/server/server_job.py", line 1021, in
> >> _execute_code
> >> execfile(code_file, namespace, namespace)
> >> File
> >> "/usr/local/autotest/results/17-root/xx.beaverton.ibm.com/control.srv",
> >> line 12, in <module>
> >> job.parallel_simple(run_client, machines)
> >> File "/usr/local/autotest/server/server_job.py", line 443, in
> >> parallel_simple
> >> return_results=return_results)
> >> File "/usr/local/autotest/server/subcommand.py", line 92, in
> >> parallel_simple
> >> function(arg)
> >> File
> >> "/usr/local/autotest/results/17-root/xx.beaverton.ibm.com/control.srv",
> >> line 8, in run_client
> >> host.log_kernel()
> >> File "/usr/local/autotest/client/common_lib/hosts/base_classes.py",
> >> line 560, in log_kernel
> >> kernel = self.get_kernel_ver()
> >> File "/usr/local/autotest/client/common_lib/hosts/base_classes.py",
> >> line 519, in get_kernel_ver
> >> return self.run('/bin/uname -r').stdout.rstrip()
> >> File "/usr/local/autotest/server/hosts/ssh_host.py", line 123, in run
> >> stdin, args)
> >> File "/usr/local/autotest/server/hosts/ssh_host.py", line 94, in _run
> >> raise error.AutoservRunError("command execution error", result)
> >> AutoservRunError: command execution error
> >> * Command:
> >> /usr/bin/ssh -a -x -o StrictHostKeyChecking=no -o
> >> UserKnownHostsFile=/dev/fd/20 -o BatchMode=yes -o ConnectTimeout=30
> >> -o
> >> ServerAliveInterval=300 -l root -p 22 xx.beaverton.ibm.com "
> >> /bin/uname -r"
> >> Exit status: 255
> >> Duration: 0.551712036133
> >>
> >> Thanks,
> >> Madhuri
> >>
> >> _______________________________________________
> >> Autotest mailing list
> >> [email protected]
> >> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
> >
> > _______________________________________________
> > Autotest mailing list
> > [email protected]
> > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
> >
> >
> 
> 
> 


_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to