>> 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:
virt_utils.patch
Description: virt_utils.patch
_______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
