>On Fri, Apr 28, 2017 at 05:
23:19PM +0800, ZhiPeng Lu wrote:
>> Creating tap device andadding the device to bridge are not atomic operation.
>> Similarly deleting tap deviceand removing it from bridge are not atomic operation.
>>The Problem occurs when twovms start and shutdown. When one vm with the nic
>> named "vnet0" stopping, itdeleted tap device but not removing port from bridge.
>> At this time, another vmcreated the tap device named " vnet0" and added port to the
>> same bridge. Then, the firstvm deleted the tap device from the same bridge.
>> Finally, the tap device ofthe second vm don't attached to the bridge.
>> So, we can add domid to vm'snic name. For example, the vm' s domid is 1 and vnet0
>> is renamed to vnet1.0.
>Surely deleting the NICautomatically removes it from the bridge so we
>can just remove the codethat delets the bridge port. i have done some tests for a tap + openvswitch bridge network. i find the nic named "vnet0" don't exsit before calling the
virNetDevOpenvswitchRemovePort . i think the tap is deleted not by removingport from bridge. i think hotpluging net has the same problem.
by the way:
my company's e-mail does not support thread posting and has some other problems. i believe that my colleagues can soon resloved them.
为了让您的VPlat虚拟化故障得到高效的处理,请上报故障到:
$VPlat技术支持。 芦志朋 luzhipeng
IT开发工程师 IT Development Engineer
操作系统产品部/中心研究院/系统产品 OS Product Dept./Central R&D Institute/System Product
深圳市南山区科技南路55号中兴通讯研发大楼33楼
33/F, R&D Building, ZTE Corporation Hi-tech Road South,
Hi-tech Industrial Park Nanshan District, Shenzhen, P.R.China, 518057
T: +86 755 xxxxxxxx F:+86 755 xxxxxxxx
M: +86 xxxxxxxxxxx
E: lu.zhipeng@xxxxxxxxxx
www.zte.com.cn原始邮件发件人: <berrange@xxxxxxxxxx>;收件人:芦志朋10108272;抄送人: <libvir-list@xxxxxxxxxx>;日 期 :2017年04月28日 19:27主 题 :Re: [PATCH] qemu: change the name of tap device for a tapand bridge network
On Fri, Apr 28, 2017 at 05:23:19PM +0800, ZhiPeng Lu wrote: Regards,
> Creating tap device andadding the device to bridge are not atomic operation.
> Similarly deleting tapdevice and removing it from bridge are not atomic operation.
> The Problem occurs when twovms start and shutdown. When one vm with the nic
> named "vnet0" stopping, itdeleted tap device but not removing port from bridge.
> At this time, another vmcreated the tap device named " vnet0" and added port to the
> same bridge. Then, thefirst vm deleted the tap device from the same bridge.
> Finally, the tap device ofthe second vm don't attached to the bridge.
> So, we can add domid to vm's nic name. For example, the vm's domid is 1 and vnet0
> is renamed to vnet1.0.
Surely deleting the NICautomatically removes it from the bridge so we
can just remove the code thatdelets the bridge port.
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/ --photos/dberrange :|
|: https://libvirt.org-o- https:// fstop138.berrange.com :|
|: https://entangle-photo.org-o- https://www. instagram.com/dberrange :|
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list