On Fri, 2011-04-29 at 14:22 +0800, wuyu8242 wrote:
> hi Lucas,Jason,
> 
> I got this same error using the lastest code, just now. I clone autotest from 
> git-repos in a new host and run autotest, the  "Warning: Permanently added
> 'localhost' (RSA) to the list of known hosts."  output repeatedly until Login 
> timeout expired in LoginTimeoutError.
> please refer the info.

Fixed in:

http://autotest.kernel.org/changeset/5341

Thanks Gaston,

Lucas

> Best Regards,
> wuyu
> 
> On 2011-04-29,at 02:49:39, Gaston, Jason D wrote:
> 
> >发送日期:2011-04-29 02:49:39
> >收件人:Lucas Meneghel Rodrigues
> >抄送:[email protected]
> >主题:Re: [Autotest] Running KVM test standalone client
> >> 
> >>> Increasing the login_timeout value did not solve my problem.  It looks 
> >>> like the
> >>_remote_login() method in kvm_utils.py does not handle the string "Warning: 
> >>Permanently added
> >>'localhost' (RSA) to the list of known hosts."  So, I added another elif 
> >>and continue match for
> >>"[Wa]arning" and then it worked fine.
> >>
> >>Would you mind sending your modification as a patch, please?
> >>
> >>Cheers,
> >>
> >>Lucas
> >
> >Here you go.
> >
> >Jason
> >
> >
> >--- autotest/client/virt/virt_utils.py.orig  2011-04-28 10:38:17.835957898 
> >-0700
> >+++ autotest/client/virt/virt_utils.py       2011-04-28 10:46:17.122957836 
> >-0700
> >@@ -557,7 +557,7 @@
> >             match, text = session.read_until_last_line_matches(
> >                 [r"[Aa]re you sure", r"[Pp]assword:\s*$", r"[Ll]ogin:\s*$",
> >                  r"[Cc]onnection.*closed", r"[Cc]onnection.*refused",
> >-                 r"[Pp]lease wait", prompt],
> >+                 r"[Pp]lease wait", r"[Ww]arning", prompt],
> >                 timeout=timeout, internal_timeout=0.5)
> >             if match == 0:  # "Are you sure you want to continue connecting"
> >                 logging.debug("Got 'Are you sure...'; sending 'yes'")
> >@@ -592,7 +592,10 @@
> >                 logging.debug("Got 'Please wait'")
> >                 timeout = 30
> >                 continue
> >-            elif match == 6:  # prompt
> >+            elif match == 6:  # "Warning added RSA"
> >+                logging.debug("Got 'Warning added RSA to known host list")
> >+                continue
> >+            elif match == 7:  # prompt
> >                 logging.debug("Got shell prompt -- logged in")
> >                 break
> >         except aexpect.ExpectTimeoutError, e:
> >_______________________________________________
> >Autotest mailing list
> >[email protected]
> >http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
> >
> >
> 
> 
> ------------------                             
> wuyu8242
> 2011-04-29


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

Reply via email to