canonical / cloud-init

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

[docs]: Incorrect guide for loading NoCloud config from local filesystem. #5843

Open MarekZydor opened 4 weeks ago

MarekZydor commented 4 weeks ago

Documentation request

As described, configuration can be loaded from the local filesystem using the following format: ds=nocloud;s=file://path/to/directory/

But, the prefix file:// is inappropriate as it corrupts the path. The correct version is: ds=nocloud;s=/path/to/directory/ Additionally, it would be good to mention that the only two configuration files are required:


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

holmanb commented 3 weeks ago

the prefix file:// is inappropriate as it corrupts the path

What do you mean by "corrupts"? Are you saying that this syntax doesn't work?

MarekZydor commented 3 weeks ago

Yes, this syntax doesn't work. I spent many hours trying to figure out why the config wouldn't load. Removing that prefix fixed it.

aciba90 commented 1 week ago

@MarekZydor, in order to assess the problem, cloud you please attach the output of cloud-init collect-logs from an affected instance?