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.
A patch for this has been pushed to the upstream repo:
commit 41064facd48676bb311784f29619c1fbd0aed8c4
Author: Stefan Berger <stefanb.ibm.com>
Date: Wed Mar 12 10:35:13 2014 -0400
nwfilter: Add missing goto err_exit in error path
https://bugzilla.redhat.com/show_bug.cgi?id=1071095
Add a missing goto err_exit in the error path where an unsupported
value is assigned to the CTRL_IP_LEARNING key.
Signed-off-by: Stefan Berger <stefanb.ibm.com>
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.
https://rhn.redhat.com/errata/RHSA-2015-0323.html
Description of problem: Libvirt report incorrect error message when parsing invalid value of CTRL_IP_LEARNING in nwfilter Version-Release number of selected component (if applicable): libvirt-1.1.1-25.el7.x86_64 qemu-kvm-rhev-1.5.3-50.el7.x86_64 kernel-3.10.0-97.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. Set invalid value to CTRL_IP_LEARNING, Valid values are any, dhcp, or none. [root@intel-e5530-8-2 ~]# virsh dumpxml r7 | grep interface -A8 <interface type='network'> <mac address='52:54:00:7f:44:cb'/> <source network='default'/> <model type='rtl8139'/> <filterref filter='clean-traffic'> <parameter name='CTRL_IP_LEARNING' value='jiahu'/> </filterref> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> ... 2. Start the domain. [root@intel-e5530-8-2 ~]# virsh start r7 error: Failed to start domain r7 error: internal error: Could not find value for variable 'IP' Actual results: As shown above, after checking the codes, lack of "goto err_exit;" after the "virReportError" sentence in virNWFilterInstantiate function in nwfilter/nwfilter_gentech_driver.c 710 } else { 711 rc = -1; 712 virReportError(VIR_ERR_PARSE_FAILED, 713 _("filter '%s' " 714 "learning value '%s' invalid."), 715 filter->name, learning); 716 } 717 } else Expected results: Rebuild libvirt with "goto err_exit;" line after src/nwfilter/nwfilter_gentech_driver.c:715, below message is expected results. [root@intel-3323-24-1 src]# rpm -q libvirt libvirt-1.1.1-25.el7_jiahu_testing.x86_64 [root@intel-3323-24-1 src]# [root@intel-3323-24-1 src]# virsh dumpxml mig1| grep interface -A8 <interface type='network'> <mac address='52:54:00:b7:e7:d8'/> <source network='default'/> <model type='rtl8139'/> <filterref filter='clean-traffic'> <parameter name='CTRL_IP_LEARNING' value='jiahu'/> </filterref> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> ... [root@intel-3323-24-1 src]# virsh start mig1 error: Failed to start domain mig1 error: failed to parse configuration file filter 'clean-traffic' learning value 'jiahu' invalid.