Bug 998865
Summary: | Add vlan parameter in device_add command would cause device_add qemu_new_net_client: Assertion `!peer' | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | xhan |
Component: | qemu-kvm | Assignee: | Vlad Yasevich <vyasevic> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.5 | CC: | bsarathy, jasowang, juzhang, michen, mkenneth, mst, qiguo, qzhang, rbalakri, rhod, virt-maint, vyasevic |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-0.12.1.2-2.425.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-14 06:50:24 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
xhan
2013-08-20 09:17:45 UTC
For RHEL6.5, Bug 999745 - remove vlan option for all virtual nics RHEL7.0 Bug 999746 - remove vlan option for all virtual nics Fix included in qemu-kvm-0.12.1.2-2.425.el6 Reproduced this bug by qemu-kvm-0.12.1.2-2.398.el6.x86_64 Steps: 1.Boot up guest with property 'vlan' to the virtual nic: ]# /usr/libexec/qemu-kvm -cpu Penryn -m 4G -smp 4,sockets=1,cores=4,threads=1 -machine type=pc,dump-guest-core=off -enable-kvm -device piix3-usb-uhci,id=usb -name rhel6 -nodefaults -nodefconfig -device virtio-balloon-pci,id=balloon0 -spice port=5930,disable-ticketing -vga qxl -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -monitor stdio -drive file=/home/rhel6.5/rhel6u5base.qcow2,if=none,media=disk,format=qcow2,rerror=stop,werror=stop,aio=native,id=scsi-disk0 -device virtio-scsi-pci,id=bus2 -device scsi-hd,bus=bus2.0,drive=scsi-disk0,id=disk0 -netdev tap,id=netdev0,script=/etc/qemu-ifup -device e1000,netdev=netdev0,vlan=1,id=vn1,mac=52:54:00:b5:d5:e3 Result: Qemu coredumpd: qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/net.c:249: qemu_new_net_client: Assertion `!peer' failed. Aborted (core dumped) So according to above, this bug is reproduced. Try to verify this bug by qemu-kvm-0.12.1.2-2.428.el6.x86_64 Steps: 1.Try to boot guest with vlan option in the virtual nic: # /usr/libexec/qemu-kvm -cpu Penryn -m 4G -smp 4,sockets=1,cores=4,threads=1 -machine type=pc,dump-guest-core=off -enable-kvm -device piix3-usb-uhci,id=usb -name rhel6 -nodefaults -nodefconfig -device virtio-balloon-pci,id=balloon0 -spice port=5930,disable-ticketing -vga qxl -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -monitor stdio -drive file=/home/rhel6.5/rhel6u5base.qcow2,if=none,media=disk,format=qcow2,rerror=stop,werror=stop,aio=native,id=scsi-disk0 -device virtio-scsi-pci,id=bus2 -device scsi-hd,bus=bus2.0,drive=scsi-disk0,id=disk0 -netdev tap,id=netdev0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=netdev0,vlan=1,id=vn1,mac=52:54:00:b5:d5:e3 Result: qemu-kvm: -device virtio-net-pci,netdev=netdev0,vlan=1,id=vn1,mac=52:54:00:b5:d5:e3: Property 'virtio-net-pci.vlan' doesn't take value '1' /etc/qemu-ifdown: could not launch network script Hi, Vlad No abort(coredumpd) occurs, but can not take the vlan value, is this expected, and how to make virtual nic take the value? Thanks, (In reply to Qian Guo from comment #9) > Try to verify this bug by qemu-kvm-0.12.1.2-2.428.el6.x86_64 > Steps: > 1.Try to boot guest with vlan option in the virtual nic: > # /usr/libexec/qemu-kvm -cpu Penryn -m 4G -smp 4,sockets=1,cores=4,threads=1 > -machine type=pc,dump-guest-core=off -enable-kvm -device > piix3-usb-uhci,id=usb -name rhel6 -nodefaults -nodefconfig -device > virtio-balloon-pci,id=balloon0 -spice port=5930,disable-ticketing -vga qxl > -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -monitor stdio > -drive > file=/home/rhel6.5/rhel6u5base.qcow2,if=none,media=disk,format=qcow2, > rerror=stop,werror=stop,aio=native,id=scsi-disk0 -device > virtio-scsi-pci,id=bus2 -device scsi-hd,bus=bus2.0,drive=scsi-disk0,id=disk0 > -netdev tap,id=netdev0,script=/etc/qemu-ifup -device > virtio-net-pci,netdev=netdev0,vlan=1,id=vn1,mac=52:54:00:b5:d5:e3 > > Result: > > qemu-kvm: -device > virtio-net-pci,netdev=netdev0,vlan=1,id=vn1,mac=52:54:00:b5:d5:e3: Property > 'virtio-net-pci.vlan' doesn't take value '1' > /etc/qemu-ifdown: could not launch network script > > Hi, Vlad > > No abort(coredumpd) occurs, but can not take the vlan value, is this > expected, Yes. It is invalid to use both netdev and vlan parameters. > and how to make virtual nic take the value? Use one or the other parameters, not both. Using both is invalid -vlad > > Thanks, Test comment 11 with both fix and unfix build: Step, boot guest with virto-net-pci device and vlan options: ]# /usr/libexec/qemu-kvm -cpu Penryn -m 4G -smp 4,sockets=1,cores=4,threads=1 -machine type=pc,dump-guest-core=off -enable-kvm -device piix3-usb-uhci,id=usb -name rhel6 -nodefaults -nodefconfig -device virtio-balloon-pci,id=balloon0 -spice port=5930,disable-ticketing -vga qxl -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -monitor stdio -drive file=/home/rhel6.5/rhel6u5base.qcow2,if=none,media=disk,format=qcow2,rerror=stop,werror=stop,aio=native,id=scsi-disk0 -device virtio-scsi-pci,id=bus2 -device scsi-hd,bus=bus2.0,drive=scsi-disk0,id=disk0 -device virtio-net-pci,vlan=1,id=vn1,mac=52:54:00:b5:d5:e3 Warning: vlan 1 is not connected to host network QEMU 0.12.1 monitor - type 'help' for more information (qemu) (qemu) So reporter hit this bug just when boot with wrong options (according to comment 11 , reporter boot with netdev and vlan options together.) And this bug can be verified according to comment 8 and comment 9 Hi, Vlad Could we verify this bug according to above? Thanks, (In reply to Qian Guo from comment #12) > Test comment 11 with both fix and unfix build: > > Step, boot guest with virto-net-pci device and vlan options: > ]# /usr/libexec/qemu-kvm -cpu Penryn -m 4G -smp > 4,sockets=1,cores=4,threads=1 -machine type=pc,dump-guest-core=off > -enable-kvm -device piix3-usb-uhci,id=usb -name rhel6 -nodefaults > -nodefconfig -device virtio-balloon-pci,id=balloon0 -spice > port=5930,disable-ticketing -vga qxl -global PIIX4_PM.disable_s3=0 -global > PIIX4_PM.disable_s4=0 -monitor stdio -drive > file=/home/rhel6.5/rhel6u5base.qcow2,if=none,media=disk,format=qcow2, > rerror=stop,werror=stop,aio=native,id=scsi-disk0 -device > virtio-scsi-pci,id=bus2 -device scsi-hd,bus=bus2.0,drive=scsi-disk0,id=disk0 > -device virtio-net-pci,vlan=1,id=vn1,mac=52:54:00:b5:d5:e3 > Warning: vlan 1 is not connected to host network > QEMU 0.12.1 monitor - type 'help' for more information > (qemu) > (qemu) > > > So reporter hit this bug just when boot with wrong options (according to > comment 11 , reporter boot with netdev and vlan options together.) Right. The problem really was that there was no indication that using vlan and netdev together was invalid. > > And this bug can be verified according to comment 8 and comment 9 > > Hi, Vlad > > Could we verify this bug according to above? > I believe so. Instead of an assert(), there is now an error reported. -vlad > Thanks, According to comment 8 and comment 9 comment 12 comment 13 , this bug can be verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1490.html |