Bug 689823
Summary: | [AMTU] "Failed to get list of network interfaces to test." | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Jeff Burke <jburke> | ||||
Component: | amtu | Assignee: | Paul Moore <pmoore> | ||||
Status: | CLOSED ERRATA | QA Contact: | Jaroslav Aster <jaster> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.1 | CC: | arozansk, ddumas, dspurek, eparis, fhrbata, jaster, jdonohue, jstancek, mnavrati, pbunyan, rvokal, sforsber, syeghiay | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
Previously, Abstract Machine Test Utility (AMTU) did not handle the name of the interface correctly under certain circumstances. As a consequence, AMTU failed to obtain a list of network interfaces to test. With this update, the interface hardware type and carriers are obtained from the /sys/class/net/ directory. Now, only an Ethernet and a token ring can be used, and a carrier must be present. As a result, AMTU handles the new network interface names as expected.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-06-09 06:56:29 UTC | Type: | --- | ||||
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: | |||||||
Bug Blocks: | 682269, 1070830 | ||||||
Attachments: |
|
Description
Jeff Burke
2011-03-22 14:46:21 UTC
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. If you would like it considered as an exception in the current release, please ask your support representative. Dup of 682339? All, This issue reproduced here: https://beaker.engineering.redhat.com/recipes/175935#task1909205 http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2011/05/856/85680/175935/1909205/8646976///test_log--kernel-misc-amtu.log And here: https://beaker.engineering.redhat.com/recipes/175934#task1909187 http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2011/05/856/85680/175934/1909187/8646898///test_log--kernel-misc-amtu.log -pbunyan Yes, they can be moved. The work around is to change our test scripts to use: amtu -dmsip which does all tests but the network tests. Created attachment 519817 [details] proposed patch - check ifc type and carrier in /sys [PATCH] networkio: check ifc type and carrier in /sys With biosdevname changes it's no longer valid to check interface type just by name of interface. This patch will get interface hardware type and carrier from /sys/class/net. As in previous implementation, only ethernet and token ring can be used, and carrier must be present. Difference is, that now all devices, that match this criteria, will get tested, e.g. bridge or tap devices too. Patch aims to resolve these bugs: Bug 689823 - [AMTU] "Failed to get list of network interfaces to test." https://bugzilla.redhat.com/show_bug.cgi?id=689823 Bug 723049 - [RHEL6.0] AMTU Running network tests on interfaces that have no link https://bugzilla.redhat.com/show_bug.cgi?id=723049 Before: [root@dell-pem710 amtu-1.0.8]# ./src/amtu -dn Executing Network I/O Tests... Failed to get list of network interfaces to test. After: [root@dell-pem710 amtu-1.0.8]# ./src/amtu -dn Executing Network I/O Tests... if: lo, type: 772, carrier: 1 if: em1, type: 1, carrier: 1 if: em2, type: 1, carrier: 1 if: em3, type: 1, carrier: -1 if: em4, type: 1, carrier: -1 if: lo, type: 772, carrier: 1 if: em1, type: 1, carrier: 1 if: lo, type: 772, carrier: 1 if: em1, type: 1, carrier: 1 if: em1, type: 1, carrier: 1 if: em2, type: 1, carrier: 1 if: em2, type: 1, carrier: 1 Interface list to test: em1 em2 *** Bug 682339 has been marked as a duplicate of this bug. *** Hi Jan, I try to reproduce this bug as your comment show. my steps: install amtu package [root@dell-pem905-01 ~]# rpm -q amtu amtu-1.0.8-8.el6.x86_64 cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.1 (Santiago) uname -a Linux dell-pem905-01.rhts.eng.bos.redhat.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)iTayQ;]r|cjwk&I'/%J_z"w-`VY'J7FR5)=,@R]Lz_{)[L_Nq$KKfd,TUEiQF%1OtKT\iaM}Xc<oUdMR2pD8v~A"R3j0p,"S_NfOX&VJH(gT[QlT] Interface eth0 passed test. Network I/O Controller Test SUCCESS! Can you give me the advice how reproduce this bug? Is it depends on some hardware (dell?) or some machine configuration? (In reply to comment #21) > Can you give me the advice how reproduce this bug? Is it depends on some > hardware (dell?) or some machine configuration? It depends on name of interface, so it's more likely to occur on machines where biosdevname is in effect (like Dell ones). Make sure you are not disabling biosdevname (for example biosdevname=0). Any machine where interface name doesn't match 'eth*' should be fine. Other option that comes to mind is to rename interface by hand: ifconfig eth0 down ip link set eth0 name em1 ifconfig em1 up dhclient em1 amtu -dn Sue Forsberg, Jan has created a patch for this. It has been fasttacked for several releases. But seems Steve does not have time for ATMU. Any chance you can get this BZ reassigned. Regards, Jeff This appears to have been fixed in Rawhide, see BZ #682337. I've verified that the attached patch works for me on a current Rawhide system. Unfortunately, my RHEL6.x systems don't exhibit the device naming issues as described in the original report, but using the patched RHEL6.x source RPM (see the Brew build link above) on a Rawhide system I've been able to verify the fix. I see no reason why this patch shouldn't be merged for RHEL6.x. 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-0639.html |