wait_for_login() related update

Redhat ID: 1080834



On 08/14/2014 04:42 PM, suqinhuang wrote:
>
> In virttest/virt_vm.py:
>
> > @@ -1019,7 +987,7 @@ def remote_commander(self, nic_index=0, timeout=LOGIN_TIMEOUT,
> >
> >      def wait_for_login(self, nic_index=0, timeout=LOGIN_WAIT_TIMEOUT,
> >                         internal_timeout=LOGIN_TIMEOUT,
> > -                       serial=False, restart_network=False,
> > +                       serial=False, restart_network=True,
>
> Need to check witch one is common in our testing.
>
This value should just follow the current code.   Set it to true just 
want to fix the issue that some guest could not get IP after booting up.

It will effect all the case.

Another concern is whether it will make us lost some network bug. 
Because we always try to restart network if guest lost network.

This may happen in some special situation.  But when we want to check 
guest network available. We always use ping or other tools to check it.
Will not check the available by wait_for_login().


> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/autotest/virt-test/pull/1764/files#r16226882>.
>