Cloud-init causes potentially huge boot delays with 4.15 kernels

Bug #1880334 reported by Kimball Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Expired
Undecided
Unassigned
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

portion of bug report for bionic:

Newer 4.15 kernels contain the following fix for CVE-2018-1108:
  43838a23a05fb ("random: fix crng_ready() test")

This causes cloud-init to stall for a potentially long time during boot (waiting for entropy I presume). Google reported boot delays of 75 minutes.

I've tracked this down to the following import in templater.py which causes the delay:
    from jinja2 import Template as JTemplate

Which is called when cc_update_etc_hosts is imported.

NOTE: I'm experiencing this with focal repeatedly - just hangs forever!

ubunutu 20.04 server - live

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1880334

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Dan Watkins (oddbloke) wrote : Re: Cloud-init causes potentially huge boot delays with 4.15 kernels Edit

Hi Kimball,

Thanks for the bug report! We need more information to be able to triage it further. Could you please run `cloud-init collect-logs` on an affected instance and attach the tarball it produces to this bug? (Once done, please move the cloud-init task back to New and we'll take a look. :)

Thanks!

Dan

Changed in cloud-init (Ubuntu):
status: New → Incomplete
Juerg Haefliger (juergh)
summary: - Cloud-init causes potentially huge boot delays with 4.15 kernels Edit
+ Cloud-init causes potentially huge boot delays with 4.15 kernels
Revision history for this message
Juerg Haefliger (juergh) wrote :

Is this a bug against the Focal 5.4 kernel or Bionic 4.15 or both? Could you please adjust the bug title accordingly?

Revision history for this message
Ee (e2tha-e) wrote :

I'm pretty sure this is for the 5.4 kernel. Also, I resolved the entropy issue by installing haveged https://packages.ubuntu.com/focal/misc/haveged

Can anyone else verify if this works?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cloud-init (Ubuntu) because there has been no activity for 60 days.]

Changed in cloud-init (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.