Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:
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