canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.87k stars 856 forks source link

[docs]: `NoCloud` does not, in fact, use `network-config` from network sources #5603

Closed Saviq closed 1 month ago

Saviq commented 1 month ago

Documentation request

The Sources section in the NoCloud docs mentions network-config as one of the files it will retrieve from the datasource, but is that correct for network datasources (http, ftp)?

Following the core tutorial I can't seem to inject network configuration into it.


*Reported from: https://cloudinit.readthedocs.io/en/latest/reference/datasources/nocloud.html

blackboxsw commented 1 month ago

Thanks @Saviq for filing this bug and making cloud-init better.

The support for network-config in nocloud datasource didn't land in tip of main until commit 5322dca2f3da7bb9b8d6f1fac6ccb00ef33ef8ee which just published to Ubuntu Oracular in cloud-init version 24.4~1gedd92b71-0ubuntu1

This will be in cloud-init upstream release 24.3 and has not yet SRU'd to stable releases.

I'll close this bug because I'm guessing you may be looking at an older version of cloud-init which doesn't yet support network-config for NoCloud datasource. If this is in error, please reopen the bug and tell is the version you are seeing this behavior on.

Saviq commented 1 month ago

@blackboxsw right, that makes sense (I'm on a noble image).

Not sure if you have a pattern of marking things like that with a "Since version…" note, but that would've probably helped me :)