canonical / cloud-init

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

Using `source` in `write_files` causes error: `Additional properties are not allowed ('source' was unexpected)` #5791

Closed dharmab closed 1 month ago

dharmab commented 1 month ago

Bug report

Using source field in write_files module fails schema validation

Steps to reproduce the problem

sample init file: https://github.com/dharmab/skyeye/blob/9078b284b5ebb94e9d4dad3273f42bbc8e60d199/init/cloud-init/ubuntu.yaml

Validation using cloud-init schema outputs:

Error: Cloud config schema errors: write_files.0: Additional properties are not allowed ('source' was unexpected), write_files.1: Additional properties are not allowed ('source' was unexpected)

Environment details

cloud-init logs

cloud-init.log

dharmab commented 1 month ago

Looks like Ubuntu is shipping a slightly older version of cloud-init?