Open ubuntu-server-builder opened 1 year ago
Launchpad user Chad Smith(chad.smith) wrote on 2022-09-22T03:32:39.667999+00:00
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
This bug was originally filed in Launchpad as LP: #1990149
Launchpad details
Launchpad user Oliver Gerlich(ogerlich) wrote on 2022-09-19T13:49:19.518010+00:00
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.