[Bug 1584147] Re: cloud-init hangs on boot as Python waits for sufficient randomness to start

Scott Moser smoser at ubuntu.com
Mon Jun 13 14:07:11 UTC 2016


This is fixed in current yakkety at 
$ dpkg-query --show python3.5
python3.5	3.5.1-16

I booted a cloud instance (serial: 20160611-164137) and cloud-init was
up in 11 seconds, where previously that was much longer.

** Changed in: python3.5 (Ubuntu)
       Status: Confirmed => Fix Released

** Changed in: cloud-images
       Status: Confirmed => Fix Released

** No longer affects: cloud-init (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.5 in Ubuntu.
https://bugs.launchpad.net/bugs/1584147

Title:
  cloud-init hangs on boot as Python waits for sufficient randomness to
  start

Status in cloud-images:
  Fix Released
Status in Python:
  Fix Released
Status in python3.5 package in Ubuntu:
  Fix Released
Status in python3.5 package in Debian:
  Fix Released

Bug description:
  If Python 3.5 starts before the kernel has initialised its RNG, it
  will hang[0] until there is sufficient entropy for it to randomise
  dictionary keys.

  As cloud-init uses Python 3.5, this means that cloud-init will hang
  until this happens (meaning that the instance won't be properly
  initialised).

  I have seen this cause a hang of up to 7 minutes on an OpenStack
  cloud.

  Upstream python bug is issue 26839 [1].

  [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822431
  [1] https://bugs.python.org/issue26839

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1584147/+subscriptions



More information about the foundations-bugs mailing list