Bug 1371858

Summary: [RFE] Dracut timeout 60 seconds per interface when it can't find a route to the interface's gateway
Product: Red Hat Enterprise Linux 7 Reporter: Supreet <srandhaw>
Component: dracutAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED CANTFIX QA Contact: Release Test Team <release-test-team>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: dereks, dracut-maint-list, harald, jstodola, michael.facciani
Target Milestone: rcKeywords: FutureFeature
Target Release: 7.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-02 12:30:01 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:
Bug Depends On:    
Bug Blocks: 1298243, 1420851, 1466365    

Description Supreet 2016-08-31 09:48:58 UTC
Description of problem:
When configuring a system to use the ip= boot option the system will timeout after 60 seconds per interface when it can't find the provided gateway.

dracut's ip= is using arping and waits 60 seconds for a gateway to respond.

https://github.com/dracutdevs/dracut/blob/RHEL-7/modules.d/40network/net-lib.sh#L168

This setting should be something that's configurable via an additional boot option.  When configuring multiple interfaces this way on a network less machine causes an excessive amount of waiting. 3+ minutes.


Version-Release number of selected component (if applicable):
RHEL 7.2 initrd

Additional info:
 Upstream patch : 

https://github.com/dracutdevs/dracut/blob/RHEL-7/modules.d/40network/net-lib.sh#L168

Comment 4 Lukáš Nykrýn 2017-11-02 12:30:01 UTC
Unfortunately the patch in upstream dracut uses arping2 which is not available in rhel7.

Comment 5 Derek Schrock 2017-12-07 13:11:57 UTC
https://github.com/dracutdevs/dracut master uses arping2 however it does fall back to arping if arping2 isn't found.   Is the patch you're referencing something else?

https://github.com/dracutdevs/dracut/blob/master/modules.d/40network/net-lib.sh#L174 

But the point is both are hard coded to wait 60 seconds (or arping2 60 counts). This 60 seconds wait should be a passable value and if not passed defaulted to 60 seconds. arping ... -w 60