It waits 60 seconds for something other than "lo" to appear in
/var/run/network/ifstate.  That doesn't actually correlate with an
interface having a working address.  ifup brings the interface up, and
writes out that file, then runs dhclient3.  On a network with STP, you
could be looking at 60 seconds before the switch starts forwarding
traffic, and however long the DHCP server takes to respond after that
before you have a working network.

But because cloud-init-nonet only checks to see if the ifstate file is
updated, it exits immediately.

No, I don't have "cloud" instance that takes that long, however cloud-
init is being used by juju for orchestra deployments now.  This is
running on bare metal.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/861866

Title:
  cloud-init-nonet does not wait for dhcp

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to