FS#66727 - [iputils] arping duplicate ip address detection breaks dracut network boot

Attached to Project: Arch Linux
Opened by Andreas (G33KatWork) - Wednesday, 20 May 2020, 16:12 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 17 August 2020, 09:24 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

On 2019-07-05 this change broke the duplicate address detection mechanism in arping: https://github.com/iputils/iputils/commit/84ca65ca980315c73f929fed8b6f16bbd698c3a0#diff-f160be89ab84bdd931aff275599e905c
This patch was partly reverted on 2019-07-31 to fix the issue: https://github.com/iputils/iputils/commit/18f14be80466ddc8fb17a400be82764a779c8dcd#diff-f160be89ab84bdd931aff275599e905c

The used version of arping causes issues when using dracut with a network based root file system. Dracut acquires a DHCP lease and uses arping to check if the received IP is unique. If it isn't, it tries again and ultimately fails. The change in arping leads the dracut network config code to believe that the IP isn't unique which completely breaks the boot.

Additional info:
* Package version: iputils 20190709-2
* Additional link to the bug discovered by void-linux: https://github.com/void-linux/void-packages/issues/13304

Steps to reproduce:
1. Build dracut initramfs
2. Boot with rd.ip=auto in the kernel cmdline
3. Watch dracut acquire 2 leases, report about duplicate IPs and get stuck
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Monday, 17 August 2020, 09:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  20190709-3
Comment by Andreas (G33KatWork) - Friday, 22 May 2020, 08:30 GMT
Just for the sake of completeness: I got the iputils PKGBUILD, added the patch in the commit which fixes the issue[1], rebuilt the initramfs and everything works as expected again.

[1]: https://github.com/iputils/iputils/commit/18f14be80466ddc8fb17a400be82764a779c8dcd
Comment by Matt Berry (mwberry) - Sunday, 31 May 2020, 22:22 GMT
Annoyingly, the last official upstream release occurred just days before the commit that fixes it. Before discovering this bug report I essentially followed the same resolution steps, but w/ commit 60c28a5865b7dcc41946bff7e8ed173bf712c0d1 (current tip of upstream), and can confirm both the symptoms and the resolution.

Loading...