dhcpcd stuck for 5 Minutes (300 Seconds) during Boot Process (LUKS/Clevis Autounlock)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dhcpcd (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Noble |
Fix Committed
|
Undecided
|
Unassigned | ||
initramfs-tools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Noble |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
Systems that use clevis will have a 5 minutes boot delay, because dhcpcd fails and retries until the retry loop exits.
[ Test Plan ]
Use a system with clevis and zfs where /etc/hostname is set and differs from the hostname reported by the DHCP server. Install the update and measure the boot time. It should be way shorter than five minutes.
I'll add a test case for initramfs-tools in oracular to cover this case.
[ Where problems could occur ]
The fix only touches a dhcpcd hook.
[ Original report ]
This is a long-lingering issue, probably affecting Ubuntu 23.04, surely Ubuntu 23.10 and now surely Ubuntu 24.04.
Due to other Priorities I kept having my PC on Standby/Sleep instead of turning it off all the time, since I would incur in 5 Minutes (300 Seconds) Boot being frozen.
I also thought it was due to Clevis LUKS Autounlock at first:
https:/
But according to the messages I see on the Screen during boot (if I see them !), it seems this is purely a dhcpcd Issue.
On one workstation the Screen is completely frozen, but boot Process continues normally after 5 Minutes have elapsed.
This BUG Report is based on the Machine that shows *some* Output while being Stuck.
Looks Similar to this one, but I do NOT have aoetools installed
https:/
List of Initramfs Scripts Installed in the system:
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
A possible workaround would be to manually edit /usr/share/
Changing this:
`for ROUNDTTT in 30 60 90 120; do`
To this:
`for ROUNDTTT in 15 15 15 15; do`
However it's really a last resort Workaround.
Any hope of a proper Fix ?
Possible mentions based on the logs output:
```
enp0s25: ignoring offer of 192.168.3.61 from 192.168.1.8
enp0s25: probing address 192.168.3.61/20
```
This might be due to High-Availability Configured in my OPNSense Router. There is a Master (192.168.1.7) and a Slave (192.168.1.8).
VLAN should be ENABLED, but right now ALL traffic flows on VLAN 1 / default VLAN (untagged), so this shouldn't be an issue IMHO. Didn't have time to setup VLANs yet.
Why does dhcpcd exit like this? What is the Error ?
```
script_status: /usr/lib/
```
tags: | added: patch |
tags: |
added: verification-done verification-done-noble removed: verification-needed verification-needed-noble |
Also adding DMESG Output immediately after Boot Process finishes.