[ovs-discuss] [bug] ovs dpdk restart will fail the existing vhost user interface on VM

gong_ys2004 gong_ys2004 at aliyun.com
Fri Feb 19 10:51:34 UTC 2016



Hi,I am configuring dpdk ovs with openstack. The OVS is 2.5.0, dpdk is 2.2.0, qemu is 2.3.
with the working vm networking, I mean I can ping from inside the vm to outside, I restart the ovs-vswitchd,  then the VM's network cannot ping out side. but If I start a new VM, the newly started VM can work.
I start ovs like this:/usr/sbin/ovs-vswitchd --dpdk -l 3 -n 4 --proc-type primary  --huge-dir /dev/hugepages --socket-mem 1024,1024 -- unix:/var/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --mlockall --no-chdir --log-file=/var/log/openvswitch/ovs-vswitchd.log --pidfile=/var/run/openvswitch/ovs-vswitchd.pid --detach --monitor
the kernel parameters are:[root at node-108 ~]# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.10.0-327.10.1.el7.x86_64 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap net.ifnames=0 biosdevname=0 default_hugepagesz=1GB hugepagesz=1GB hugepages=50 iommu=pt intel_iommu=on rhgb quiet
the vm is started like this:[root at node-108 ~]# ps -ef | grep kvm
root       925     2  0 12:10 ?        00:00:00 [kvm-irqfd-clean]
root     14776     1 12 18:42 ?        00:00:44 /usr/libexec/qemu-kvm -name instance-0000001b -S -machine pc-i440fx-rhel7.2.0,accel=kvm,usb=off -cpu IvyBridge,+pdpe1gb,+osxsave,+dca,+pcid,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds -m 4096 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -object memory-backend-file,id=ram-node0,prealloc=yes,mem-path=/dev/hugepages/libvirt/qemu,share=yes,size=4294967296,host-nodes=0,policy=bind -numa node,nodeid=0,cpus=0-1,memdev=ram-node0 -uuid 844030b7-e995-4b8e-8070-68bbfdfbf09f -smbios type=1,manufacturer=Fedora Project,product=OpenStack Nova,version=12.0.1-1.el7,serial=e5b50de4-d534-40d5-a433-ae7ad3b936bc,uuid=844030b7-e995-4b8e-8070-68bbfdfbf09f,family=Virtual Machine -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-instance-0000001b/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/nova/instances/844030b7-e995-4b8e-8070-68bbfdfbf09f/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -chardev socket,id=charnet0,path=/var/run/openvswitch/vhue96df5b4-80 -netdev type=vhost-user,id=hostnet0,chardev=charnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:0e:fa:82,bus=pci.0,addr=0x3 -chardev file,id=charserial0,path=/var/lib/nova/instances/844030b7-e995-4b8e-8070-68bbfdfbf09f/console.log -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -device usb-tablet,id=input0 -vnc 0.0.0.0:0 -k en-us -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on

Thanks
yong sheng gong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160219/0f6d4fde/attachment-0002.html>


More information about the discuss mailing list