[libvirt] [PATCH] network type ethernet not needs to be reconnected

Laine Stump laine at laine.org
Fri Aug 28 14:03:03 UTC 2015


On 08/28/2015 06:42 AM, Vasiliy Tolstov wrote:
> 2015-08-24 14:56 GMT+03:00 Vasiliy Tolstov <v.tolstov at selfip.ru>:
>> 2015-08-24 14:45 GMT+03:00 Laine Stump <laine at laine.org>:
>>> I've been looking back at the history of why this code was added in the
>>> first place to make sure we're not inadvertently breaking something else.
>>>
>>> It looks like originally that code did check that ipaddr hadn't changed
>>> (when there was a single IP address), which wasn't needed but also
>>> didn't hurt anything (since ipaddr would always be 0 for type='ethernet'
>>> in the qemu driver. Then recently (commit aa2cc7) support for multiple
>>> IP addresses with type='ethernet' was added (apparently for LXC, but
>>> also added for openvz), any code that had touched ethernet.ipaddr was
>>> changed to look at nips and the ip array instead, but the code that
>>> replaced the unnecessary but innocuous check in qemu_hotplug.c was done
>>> incorrectly. So the correct thing *is* to simply remove the check.
>>>
>>> All of that is a long winded way of saying ACK. I'll push it in awhile.
>>
>> Thanks!
>
> I don't see this change in current master. Does it goes to 1.2.19 or to 1.2.20?


It was pushed on on Monday, commit id 
bbc705d1309b8ec2eb4cdae011dc702802c96d11. It will be in 1.2.19. I took 
the liberty of expanding the commit log message, so you may not have 
recognized it:


commit bbc705d1309b8ec2eb4cdae011dc702802c96d11
Author: Vasiliy Tolstov <v.tolstov at selfip.ru>
Date:   Sat Aug 22 15:33:15 2015 +0000

     Eliminate incorrect and unnecessary check for changed IP address

     Commit aa2cc7 modified a previously unnecessary but innocuous check
     for interface IP address during interface update incorrectly, causing
     all attempted updates (e.g. changing link state) to interfaces of
     type='ethernet' for QEMU to fail.

     This patch fixes the issue by completely removing the check for IP
     address, which is pointless since QEMU doesn't support setting
     interface IP addresses from the domain interface XML anyway.




More information about the libvir-list mailing list