[Lunar/Desktop] 5 min boot delay on bare metal due cloud-init-local.service
Bug #2008727 reported by
Carlos Nihelton
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Critical
|
Unassigned |
Bug Description
I run lunar for a while now (upgraded from Jammy through `do-release-upgrade -d`) and since I do some Subiquity development often, I do have cloud-init setup, for a while as well.
Friday 24th, after a regular `apt update && apt upgrade` my laptop boot time increased by surprising 5 min, at a first glance it appears to be due cloud-init-
Changed in cloud-init: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in cloud-init: | |
importance: | Low → High |
description: | updated |
To post a comment you must log in.
Thanks for reporting this Carlos.
Current recommendation for users with cloud-init installed manually on their local desktop for development is to manually create /etc/cloud/ cloud-init. disabled, which will prevent cloud-init from doing the local discovery that caused this delay.
Prior to cloud-init release 23.1, cloud-init was running, however no datasource was detected so you didn't experience this delay. With the addition of support for OpenStack baremetal[1], your system is being detected as a potential datasource for OpenStack, which caused the delay. If openstack ironic has some way of identifying itself to cloud-init, we might be able to improve cloud-init by eliminating this false positive, however from the docs I've read I haven't seen seen anything that we can use.
> at a first glance it appears to be due cloud-init- local.service waiting for network activity in the Ethernet port, which I rarely use.
Agreed, cloud-init used the first fallback device, which looks like was a wireless device on the more successful subsequent (15s) timeouts. I'm curious why the fallback device changed. To help us with this, would you mind also including dmesg output of this system just after boot with cloud-init installed?
[1] https:/ /github. com/canonical/ cloud-init/ commit/ 02202954c65a7a1 cdb9b28703bd0af 01edd0e091