← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~raharper/cloud-init:cloud-init-wait-on-networkd into cloud-init:master

 

Ryan Harper has proposed merging ~raharper/cloud-init:cloud-init-wait-on-networkd into cloud-init:master.

Requested reviews:
  cloud init development team (cloud-init-dev)
Related bugs:
  Bug #1636912 in cloud-init: "systemd-networkd runs too late for cloud-init.service (net)"
  https://bugs.launchpad.net/cloud-init/+bug/1636912

For more details, see:
https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/317917

Cloud-init.service should run after networkd

Cloud-init.service should run after networkd has brought networking
online.  If cloud-init.service does not run after networkd then
cloud-init may fail to fetch network metadata or other resources on
systems using networkd.  A system may have one or more networking
service installed and possibly enabled and cloud-init should run after
these services.

LP: #1636912 #1649931

-- 
Your team cloud init development team is requested to review the proposed merge of ~raharper/cloud-init:cloud-init-wait-on-networkd into cloud-init:master.
diff --git a/systemd/cloud-init.service b/systemd/cloud-init.service
index fb3b918..cde6ed8 100644
--- a/systemd/cloud-init.service
+++ b/systemd/cloud-init.service
@@ -6,6 +6,7 @@ Wants=sshd-keygen.service
 Wants=sshd.service
 After=cloud-init-local.service
 After=networking.service
+After=systemd-networkd-wait-online.service
 Before=network-online.target
 Before=sshd-keygen.service
 Before=sshd.service

Follow ups