nocloud-net datasource attempts to read seed url before network is set up

Bug #1990149 reported by Oliver Gerlich
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init
Expired
High
Unassigned

Bug Description

I'm using the nocloud-net data source with Ubuntu 22.04 server (ubuntu-22.04.1-live-server-amd64.iso). Apparently the data source attempts to download the meta-data file from the supplied "seedfrom" URL regardless of whether the network configuration has actually finished.

In my particular use case it takes about ten seconds until the network interface is configured (maybe the DHCP server is a bit slow). Meanwhile, the nocloud-net data source will do ten retries to download the meta-data URL (with 1 second delay between retries). So there is a race; and as result the auto-installation will only work in a few cases.

I'm booting the auto-install system with a kernel command line ending like "ds=nocloud-net\;s=http://192.168.1.2:8095/\;local-hostname=somehost".
I'll try to save and transfer the cloud-init.log file next time this happens.

James Falcon (falcojr)
Changed in cloud-init:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Chad Smith (chad.smith) wrote :

it would be nice to somehow support datasource config options in NoCloud for:
max_wait, retries and timeout like other datasources ec2/gce/openstack/cloudstack do

Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.