2024-05-07 10:13:37 |
Stefano |
bug |
|
|
added bug |
2024-05-07 10:13:37 |
Stefano |
attachment added |
|
initramfs_v4.debug https://bugs.launchpad.net/bugs/2065037/+attachment/5775838/+files/initramfs_v4.debug |
|
2024-05-07 10:13:48 |
Stefano |
attachment added |
|
dmesg_v4.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5775839/+files/dmesg_v4.debug |
|
2024-05-07 10:14:22 |
Stefano |
affects |
initramfs-tools (Ubuntu) |
dhcpcd (Ubuntu) |
|
2024-05-07 10:23:33 |
Benjamin Drung |
affects |
dhcpcd (Ubuntu) |
initramfs-tools (Ubuntu) |
|
2024-05-07 12:13:37 |
Stefano |
attachment added |
|
initramfs_v5.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5775867/+files/initramfs_v5.debug |
|
2024-05-07 13:25:39 |
Stefano |
attachment added |
|
initramfs_v6a.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5775932/+files/initramfs_v6a.debug |
|
2024-05-07 13:25:54 |
Stefano |
attachment added |
|
initramfs_v6b.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5775933/+files/initramfs_v6b.debug |
|
2024-05-07 13:26:23 |
Stefano |
attachment added |
|
functions_v6b.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5775934/+files/functions_v6b.debug |
|
2024-05-07 19:58:52 |
Stefano |
attachment added |
|
initramfs_v7.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776025/+files/initramfs_v7.debug |
|
2024-05-07 19:59:16 |
Stefano |
attachment added |
|
functions_v7.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776026/+files/functions_v7.debug |
|
2024-05-07 20:29:17 |
Benjamin Drung |
attachment added |
|
functions https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776084/+files/functions |
|
2024-05-07 20:48:30 |
Stefano |
attachment added |
|
initramfs_v8.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776089/+files/initramfs_v8.debug |
|
2024-05-08 05:03:16 |
Stefano |
attachment added |
|
dmesg_v9.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776171/+files/dmesg_v9.debug |
|
2024-05-08 05:03:26 |
Stefano |
attachment added |
|
initramfs_v9.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776172/+files/initramfs_v9.debug |
|
2024-05-08 05:15:09 |
Stefano |
attachment added |
|
dmesg_v10.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776173/+files/dmesg_v10.debug |
|
2024-05-08 05:15:18 |
Stefano |
attachment added |
|
initramfs_v10.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776174/+files/initramfs_v10.debug |
|
2024-05-08 05:22:34 |
Stefano |
attachment added |
|
dmesg_v11.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776175/+files/dmesg_v11.debug |
|
2024-05-08 05:22:43 |
Stefano |
attachment added |
|
initramfs_v11.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776176/+files/initramfs_v11.debug |
|
2024-05-08 20:22:29 |
Stefano |
attachment added |
|
dmesg_v4_new.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776396/+files/dmesg_v4_new.debug |
|
2024-05-08 20:22:59 |
Stefano |
attachment added |
|
initramfs_v4_new.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776397/+files/initramfs_v4_new.debug |
|
2024-05-08 20:28:29 |
Stefano |
attachment added |
|
dmesg_v9_new.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776398/+files/dmesg_v9_new.debug |
|
2024-05-08 20:29:10 |
Stefano |
attachment added |
|
initramfs_v9_new.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776399/+files/initramfs_v9_new.debug |
|
2024-05-08 20:50:59 |
Stefano |
attachment added |
|
functions_v9_new.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776400/+files/functions_v9_new.debug |
|
2024-05-08 21:23:54 |
Stefano |
attachment added |
|
initramfs_v9_new_b.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776402/+files/initramfs_v9_new_b.debug |
|
2024-05-08 21:26:08 |
Stefano |
attachment added |
|
dmesg_v9_new_b.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776403/+files/dmesg_v9_new_b.debug |
|
2024-05-08 22:21:32 |
Benjamin Drung |
nominated for series |
|
Ubuntu Noble |
|
2024-05-08 22:21:32 |
Benjamin Drung |
bug task added |
|
initramfs-tools (Ubuntu Noble) |
|
2024-05-08 22:23:00 |
Benjamin Drung |
initramfs-tools (Ubuntu): importance |
Undecided |
Medium |
|
2024-05-08 22:23:03 |
Benjamin Drung |
initramfs-tools (Ubuntu Noble): importance |
Undecided |
Medium |
|
2024-05-08 22:23:05 |
Benjamin Drung |
initramfs-tools (Ubuntu): status |
New |
Fix Committed |
|
2024-05-09 06:54:44 |
Stefano |
attachment added |
|
dmesg_v9_new_noarp.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776537/+files/dmesg_v9_new_noarp.debug |
|
2024-05-09 06:55:03 |
Stefano |
attachment added |
|
initramfs_v9_new_norap.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776538/+files/initramfs_v9_new_norap.debug |
|
2024-05-09 07:55:02 |
Stefano |
attachment added |
|
dmesg_v9_new_noarp_main_workstation.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776544/+files/dmesg_v9_new_noarp_main_workstation.debug |
|
2024-05-09 07:55:16 |
Stefano |
attachment added |
|
initramfs_v9_new_norap_main_workstation.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776545/+files/initramfs_v9_new_norap_main_workstation.debug |
|
2024-05-10 13:30:24 |
Benjamin Drung |
attachment added |
|
initramfs-tools_0.142ubuntu25.1.debdiff https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5776988/+files/initramfs-tools_0.142ubuntu25.1.debdiff |
|
2024-05-10 13:38:09 |
Benjamin Drung |
description |
In automatically encrypted Clevis+Tang unlock of LUKS encrypted device (dmcrypt/cryptsetup) - on top of which the ZFS Pool for / resides, dhcpcd is used in order to obtain automatically an IP address during initramfs boot.
During this phase, dhcpcd is called before interfaces have carrier causing a 29 seconds boot delay.
Boot delay is currently 45 seconds, instead of the 15 seconds that it should.
BUG Initially reported in: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2064926
Relevant Logs:
```
dhcpcd-10.0.6 starting
[...]
no interfaces have a carrier
exiting due to oneshot
dhcpcd exited
Sleeping 29 seconds before retrying getting a DHCP lease
dhcpcd-10.0.6 starting
```
A possible workaround would be to manually edit /usr/share/initramfs-tools/scripts/functions
Changing this:
`for ROUNDTTT in 30 60 90 120; do`
To this:
`for ROUNDTTT in 5 5 5 5; do`
But the proper solution would be to continuously "scan" the state of the Interface (every Second or so), and wait until the interface is UP, before deciding to call dhcpcd. |
[ Impact ]
The boot time can be longer on system that configure their network in the initrd.
[ Test Plan ]
The affected systems show "Sleeping $time seconds before retrying getting a DHCP lease" in their boot log. Once applying the fix, this message should not be found any more and "dhcpcd-10.0.6 starting" should be only logged once (at most once for IPv4 and once for IPv6 depending on the boot parameters).
There are qemu-net and qemu-net-dnsmasq autopkgtests for this area of code.
[ Where problems could occur ]
The DHCP code in the initrd are touched. So the boot can be affected. Also updating initramfs-tools will regenerate the initrd and can cause issues there (like full disks, etc).
[ Original report ]
In automatically encrypted Clevis+Tang unlock of LUKS encrypted device (dmcrypt/cryptsetup) - on top of which the ZFS Pool for / resides, dhcpcd is used in order to obtain automatically an IP address during initramfs boot.
During this phase, dhcpcd is called before interfaces have carrier causing a 29 seconds boot delay.
Boot delay is currently 45 seconds, instead of the 15 seconds that it should.
BUG Initially reported in: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2064926
Relevant Logs:
```
dhcpcd-10.0.6 starting
[...]
no interfaces have a carrier
exiting due to oneshot
dhcpcd exited
Sleeping 29 seconds before retrying getting a DHCP lease
dhcpcd-10.0.6 starting
```
A possible workaround would be to manually edit /usr/share/initramfs-tools/scripts/functions
Changing this:
`for ROUNDTTT in 30 60 90 120; do`
To this:
`for ROUNDTTT in 5 5 5 5; do`
But the proper solution would be to continuously "scan" the state of the Interface (every Second or so), and wait until the interface is UP, before deciding to call dhcpcd. |
|
2024-05-10 16:19:59 |
Ubuntu Foundations Team Bug Bot |
tags |
|
patch |
|
2024-05-10 16:36:48 |
Timo Aaltonen |
initramfs-tools (Ubuntu Noble): status |
New |
Fix Committed |
|
2024-05-10 16:36:49 |
Timo Aaltonen |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2024-05-10 16:36:51 |
Timo Aaltonen |
bug |
|
|
added subscriber SRU Verification |
2024-05-10 16:36:53 |
Timo Aaltonen |
tags |
patch |
patch verification-needed verification-needed-noble |
|
2024-05-10 20:41:28 |
Stefano |
attachment added |
|
dmesg_proposed_testing.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5777132/+files/dmesg_proposed_testing.debug |
|
2024-05-10 20:41:43 |
Stefano |
attachment added |
|
initramfs_proposed_testing.debug https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2065037/+attachment/5777133/+files/initramfs_proposed_testing.debug |
|
2024-05-10 22:55:37 |
Benjamin Drung |
tags |
patch verification-needed verification-needed-noble |
patch verification-done verification-done-noble |
|
2024-05-22 01:16:48 |
Launchpad Janitor |
initramfs-tools (Ubuntu): status |
Fix Committed |
Fix Released |
|
2024-05-23 17:56:45 |
Launchpad Janitor |
initramfs-tools (Ubuntu Noble): status |
Fix Committed |
Fix Released |
|
2024-05-23 17:56:48 |
Andreas Hasenack |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|