On Mon, 2010-10-18 at 18:51 +0800, Amos Kong wrote:
> Linux IPv4 addresses are host attributes, not interface attributes.
> When guest has multi-nics in same LAN, we could not verify ip and
> macaddress by arp entries, just return True. If the ip is ineffective,
> login will be failed of timeout.

A proper fix was submitted for this issue and already applied. this one
will be dropped, Amos.

Thanks!

Lucas

> Signed-off-by: Amos Kong <[email protected]>
> ---
>  0 files changed, 0 insertions(+), 0 deletions(-)
> 
> diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py
> index a2b0a3f..914cbb8 100644
> --- a/client/tests/kvm/kvm_utils.py
> +++ b/client/tests/kvm/kvm_utils.py
> @@ -376,6 +376,10 @@ def verify_ip_address_ownership(ip, macs, timeout=10.0):
>      if regex.search(o):
>          return True
>  
> +    if len(macs) > 1:
> +        print "Guest has more than 1 nic, could not verify by arp entries"
> +        return True
> +
>      # Get the name of the bridge device for arping
>      o = commands.getoutput("%s route get %s" % (find_command("ip"), ip))
>      dev = re.findall("dev\s+\S+", o, re.IGNORECASE)
> 


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

Reply via email to