Bug 1090011
Summary: | Need to limit names of new interfaces to IFNAMSIZ | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yanbing du <ydu> |
Component: | netcf | Assignee: | Laine Stump <laine> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | dyuan, jsuchane, laine, mzhan, rbalakri |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | netcf-0.2.8-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 08:58:12 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: | |||
Bug Depends On: | 1206680 | ||
Bug Blocks: |
Description
yanbing du
2014-04-22 11:32:30 UTC
This was not a libvirt issue - it was a netcf issue (changed the component). In any case, netcf 0.2.4 has the following commit: commit ccf88a39fb3a0efdff0fefe1903664fec541b747 Author: jmiao <jmiao> Date: Mon Apr 21 18:01:12 2014 +0800 Don't allow defining an interface with length > IFNAMSIZ-1 drv_define() needs to check the length of interface's name to prevent the actual name being different (truncated) from the configured name. Signed-off-by: jmiao <jmiao> Which resolves the issue. Moving to MODIFIED as once the depends on bz is resolved for RHEL7.2 this will be resolved. FWIW: Using the same command on a much more recent upstream environment results in the following: # virsh iface-bridge lo abcdefghijklmnopq error: Failed to define new bridge interface abcdefghijklmnopq error: internal error: could not get interface XML description: internal error - The interface name 'abcdefghijklmnopq' exceeds the maximum allowed length: 15 # Verified as below: [root@localhost ~]# rpm -q netcf netcf-0.2.8-1.el7.x86_64 [root@localhost ~]# [root@localhost ~]# virsh iface-list --all Name State MAC Address --------------------------------------------------- eno1 active 24:be:05:18:81:ce enp2s0 inactive 00:1b:21:27:4e:ce lo active 00:00:00:00:00:00 [root@localhost ~]# virsh iface-bridge lo abcdefghijklmnopq error: Failed to define new bridge interface abcdefghijklmnopq error: internal error: could not get interface XML description: internal error - The interface name 'abcdefghijklmnopq' exceeds the maximum allowed length: 15 We can get expected results, changed to 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. https://rhn.redhat.com/errata/RHSA-2015-2248.html |