Bug 1371858 - [RFE] Dracut timeout 60 seconds per interface when it can't find a route to the interface's gateway
Summary: [RFE] Dracut timeout 60 seconds per interface when it can't find a route to t...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: dracut
Version: 7.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: 7.3
Assignee: Lukáš Nykrýn
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 1298243 1420851 1466365
TreeView+ depends on / blocked
 
Reported: 2016-08-31 09:48 UTC by Supreet
Modified: 2021-03-11 14:40 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-02 12:30:01 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.