Bug 963927
Summary: | arping is not compatible with network namespaces | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Maru Newby <mnewby> | ||||||
Component: | iputils | Assignee: | Jan Synacek <jsynacek> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | qe-baseos-daemons | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 6.4 | CC: | azelinka, chrisw, cpelland, ddumas, kdube, lwang, mnewby, rkhan, rkukura, salmy, seansmith, snagar, tgraf | ||||||
Target Milestone: | rc | Keywords: | Patch, ZStream | ||||||
Target Release: | 6.5 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2013-11-14 10:37:08 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: | |||||||||
Bug Blocks: | 880142, 883504, 968342, 971672 | ||||||||
Attachments: |
|
Description
Maru Newby
2013-05-16 19:14:52 UTC
Created attachment 749104 [details]
workaround patch
The background for this is that the netns backport for 6.5 is not complete and does not include the sysfs bits. This leads to the /sys/class/net/$DEV/ directory not being available in the non default netns. arping reads its broadcast address via sysfs.
The following workaround has been used successfully in combination with the netns backport and RHOS. It's a POC patch that should be converted into a fallback alternative if the sysfs broadcast file is not available, i.e. fall back to using a default broadcast address of '-1' if the broadcast address can't be read.
Alternatively the broadcast address could be read from a source other than sysfs, e.f. by parsing the output of 'ip link' or by issueing a netlink request which are both netns aware.
Thomas, is there a possibility that the broadcast address could be anything else than all 0xff's? I'm not aware that it happens, so I think that the workaround patch is ok to apply, *as long as it gets removed once the netns backport is completed*. (In reply to Jan Synacek from comment #5) > Thomas, is there a possibility that the broadcast address could be anything > else than all 0xff's? I'm not aware that it happens, so I think that the > workaround patch is ok to apply, *as long as it gets removed once the netns > backport is completed*. It could differ but only in very rare situations. What seems to be the best option forward is to fall back to all 0xff's if the sysfs file cannot be read. I agree. I'll write a patch doing exactly that. I'm setting the old needinfo flags that should have stayed there back. Created attachment 751541 [details]
[Patch] fall back when sysfs broadcast file is not readable
|