Bug 1319498

Summary: RTNETLINK answers: Cannot allocate memory when add 3164 vlan id in guest
Product: Red Hat Enterprise Linux 6 Reporter: Ping Li <pingl>
Component: qemu-kvmAssignee: Vlad Yasevich <vyasevic>
Status: CLOSED WORKSFORME QA Contact: weliao <weliao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8CC: ailan, chayang, juzhang, meyang, michen, mkenneth, ngu, rbalakri, shuang, virt-bugs, virt-maint, weliao, xiagao, xutian, xuwei
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-02 10:44:20 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:
Attachments:
Description Flags
full log of autotest none

Description Ping Li 2016-03-20 17:10:38 UTC
Created attachment 1138330 [details]
full log of autotest

Description of problem:
Add multiple vlan id in guest by executing "#for i in `seq 1 3164`; do ip link add link eth0 name eth0.$i type vlan id $i; done". It shows error message while adding eth0.3164. The case passed in host.

Version-Release number of selected component (if applicable):
Host:
RHEL6.8
2.6.32-624.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.490.el6.x86_64
Guest:
RHEL6.8
2.6.32-630.el6.i686

How reproducible:
100%

Steps to Reproduce:
1. for i in `seq 1 3164`; do ip link add link eth0 name eth0.$i type vlan id $i; done
2. Check the result

Actual results:
Add vlan eth0.3164 failed

Expected results:
Add vlan eth0.3164 success

Additional info:
[root@bootp-73-199-209 ~]# ethtool -i eth0
driver: virtio_net
version: 1.0.0
firmware-version: 
bus-info: 0000:00:05.0
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
[root@bootp-73-199-209 ~]# lspci -v -nn -mm -s 0000:00:05.0
Slot:	00:05.0
Class:	Ethernet controller [0200]
Vendor:	Red Hat, Inc [1af4]
Device:	Virtio network device [1000]
SVendor:	Red Hat, Inc [1af4]
SDevice:	Device [0001]
PhySlot:	5

Comment 4 Vlad Yasevich 2016-12-01 16:13:17 UTC
Can not reproduce on rhel6.9 with manual test.
Installed latest rhel6.9 host and guest and ran the supplied test.
eth0.3164 was created successfully.

Can you please re-test.

Thanks
vlad

Comment 5 weliao 2016-12-02 02:09:40 UTC
QE re-tested with following versions:
Host:
2.6.32-672.el6.x86_64
qemu-kvm-0.12.1.2-2.496.el6.x86_64
Guest:
2.6.32-671.el6.x86_64

create 4000 vlan also no this issue, seems this is a auto bug.

Comment 6 Ping Li 2016-12-02 02:33:03 UTC
I (In reply to weliao from comment #5)
> QE re-tested with following versions:
> Host:
> 2.6.32-672.el6.x86_64
> qemu-kvm-0.12.1.2-2.496.el6.x86_64
> Guest:
> 2.6.32-671.el6.x86_64
> 
> create 4000 vlan also no this issue, seems this is a auto bug.

I don't think so. I found the issue with autotest, but i can reproduce it manually when i filed this issue

Comment 7 Ping Li 2016-12-02 10:44:20 UTC
Host(RHEL 6.8Z):
2.6.32-642.13.1.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.491.el6_8.3
Guest:
2.6.32-642.13.1.el6.i686

Cannot reproduce the issue with latest RHEL 6.8z, close it.

#for i in `seq 1 3164`; do ip link add link eth0 name eth0.$i type vlan id $i; done