Question

After upgrading to 20.04 LTS, network now takes 2 minutes to start because of cloud-init

Posted November 9, 2020 72 views
NetworkingUbuntu 20.04

I recently upgraded an Ubuntu droplet from 18.04 LTS to 20.04 LTS using sudo do-release-upgrade. The system seems fine after the upgrade except for 1 thing. It now takes 2 minutes for the network to start after a boot. The console shows:

[ OK ] Reached target Network.
[    ] A start job is running for Wait for Network to be Configured (47s / no limit)

/var/log/cloud-init-output.log contains:

2020-11-09 19:38:37,068 - util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceDigitalOcean.DataSourceDigitalOcean'> failed

Further digging shows:

$ cloud-id
none

/etc/cloud/cloud.cfg.d/ contains some files that are 4+ years old:

-rw-r–r– 1 root root 1480 Nov 2 2016 93-digitalocean-cloud-config.cfg
-rw-r–r– 1 root root 95 Nov 2 2016 91-digitalocean-dpkg.cfg
-rw-r–r– 1 root root 200 Nov 2 2016 92-digitalocean-ds.cfg
-rw-r–r– 1 root root 167 Jan 14 2020 README
-rw-r–r– 1 root root 2070 Aug 26 16:58 05logging.cfg
-rw-r–r– 1 root root 104 Nov 9 19:36 90
dpkg.cfg

Are the files in /etc/cloud/cloud.cfg.d supposed to be removed or updated at some point?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @plujon,

I usually remove them on all my droplets. Having said that, you should be able to create a disabled file for cloud-init which should resolve your issues without actually removing cloud-init. SSH to your droplet and run the following :

touch /etc/cloud/cloud-init.disabled

Then try to restart your network and see if it’s still taking some time to restart.

Restart,
KDSys

  • Thanks for the reply. Unfortunately, the network still took 2 minutes to start even after touching /etc/cloud/cloud-init.disabled.

    I thought there’d be a “standard way” for Ubuntu 20 D.O. droplets to configure networking. If so, what is it? If not, then I guess I’ll just configure networking however I want..?

Submit an Answer