OK, my instrumented code[0] produces this, which seems to confirm my
hypothesis that DNS resolution is being weirdly slow:

Oct 03 09:23:06 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] 
__init__.py[DEBUG]: Seeing if we can get any data from <class 
'cloudinit.sources.DataSourceGCE.DataSourceGCE'>
Oct 03 09:23:06 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] util.py[DEBUG]: 
Checking DNS redirection...
Oct 03 09:23:06 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] util.py[DEBUG]: 
Trying does-not-exist.example.com....
Oct 03 09:23:31 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] util.py[DEBUG]: 
Not redirected
Oct 03 09:23:31 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] util.py[DEBUG]: 
Trying example.invalid....
Oct 03 09:23:56 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] util.py[DEBUG]: 
Not redirected
Oct 03 09:23:56 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] util.py[DEBUG]: 
Trying X516ZAGxJofmtsCvbLA3bHeK2o2fcfVf...
Oct 03 09:23:59 ip-172-31-3-216 systemd-timesyncd[669]: Synchronized to time 
server 91.189.89.198:123 (ntp.ubuntu.com).
Oct 03 09:24:21 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] util.py[DEBUG]: 
Not redirected
Oct 03 09:24:21 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] util.py[DEBUG]: 
DNS redirection checking complete.
Oct 03 09:24:21 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] util.py[DEBUG]: 
Doing actual check...
Oct 03 09:24:46 ip-172-31-3-216 kernel: random: crng init done
Oct 03 09:24:46 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] util.py[DEBUG]: 
Actual check failed.
Oct 03 09:24:46 ip-172-31-3-216 cloud-init[1041]: [CLOUDINIT] 
DataSourceGCE.py[DEBUG]: http://metadata.google.internal/computeMetadata/v1/ is 
not resolvable


[0] http://paste.ubuntu.com/23269423/ is the relevant snippet of cloudinit.util.

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

Title:
  cloud-init seems to take most of yakkety slow boot time

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1629797/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to