Cloud-init causes potentially huge boot delays with 4.15 kernels
Bug #1780062 reported by
Juerg Haefliger
This bug affects 10 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Bionic |
Invalid
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Unassigned |
Bug Description
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.
Changed in cloud-init (Ubuntu): | |
importance: | Undecided → High |
Changed in linux (Ubuntu Bionic): | |
status: | New → Fix Committed |
importance: | Undecided → High |
Changed in cloud-init (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in cloud-init (Ubuntu Bionic): | |
status: | Confirmed → Invalid |
Changed in linux (Ubuntu): | |
status: | Incomplete → Fix Committed |
To post a comment you must log in.
mvo: fwiw jinja2 imports random and that reads 2500 chars from /dev/urandom on import