Commit b03083e
committed
testscript: improve wait_for_ssh() network diagnosis and logging
We will be able to better understand if a network issue is caused by
the VM host or the VM.
Now, in wait_for_ssh() we first wait for ping and then we ssh
--> better diagnosis of guest network state, e.g., ping may
work but ssh fail
A possible missing IP in VM host error might be reported like this:
```
The VM host is not in the same network as IP 192.168.5.2! Networks:
[IPv4Network('192.168.1.0/24'), IPv4Network('192.168.2.0/24'), IPv4Network('192.168.3.0/24'), IPv4Network('192.168.4.0/24'), IPv4Network('192.168.100.0/24')]
```
On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>1 parent 81b3e6a commit b03083e
1 file changed
+22
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1975 | 1975 | | |
1976 | 1976 | | |
1977 | 1977 | | |
1978 | | - | |
1979 | | - | |
| 1978 | + | |
1980 | 1979 | | |
1981 | | - | |
1982 | | - | |
| 1980 | + | |
| 1981 | + | |
1983 | 1982 | | |
1984 | 1983 | | |
1985 | 1984 | | |
| |||
1988 | 1987 | | |
1989 | 1988 | | |
1990 | 1989 | | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
1991 | 2007 | | |
1992 | | - | |
| 2008 | + | |
1993 | 2009 | | |
1994 | 2010 | | |
| 2011 | + | |
1995 | 2012 | | |
1996 | 2013 | | |
1997 | 2014 | | |
| |||
0 commit comments