Activity log for bug #1983306

Date Who What changed Old value New value Message
2022-08-02 04:03:16 Peter Surda bug added bug
2022-08-02 11:45:53 Alberto Contreras description Related to #1983303. My user-data begins with #include, as it's not a "Cloud Config Data" but an "Include File" as described in the official documentation. However, this causes the validator `cloud-init schema --system` to complain that ``` Error: Cloud config schema errors: format-l1.c1: File None needs to begin with "#cloud-config" ``` Ok I thought, I just manually add "#cloud-config" at the top and re-test: ``` Error: Cloud-config is not a YAML dict. ``` Well, it's not a YAML dict because it's not a cloud config data but an include file, which isn't in the YAML format. See the specification: https://cloudinit.readthedocs.io/en/latest/topics/format.html Also look at the implementation in `user_data.py`, function `_do_include`. As you can see, this file isn't processed as YAML but parsed line by line. So the specification and implementation agree, but the schema validator doesn't and thinks it should process it as YAML. This wouldn't be a practical problem for me, but due to #19833303 I get mangled logs and can't work around it. Related to #1983303. My user-data begins with #include, as it's not a "Cloud Config Data" but an "Include File" as described in the official documentation. However, this causes the validator `cloud-init schema --system` to complain that ``` Error: Cloud config schema errors: format-l1.c1: File None needs to begin with "#cloud-config" ``` Ok I thought, I just manually add "#cloud-config" at the top and re-test: ``` Error: Cloud-config is not a YAML dict. ``` Well, it's not a YAML dict because it's not a cloud config data but an include file, which isn't in the YAML format. See the specification: https://cloudinit.readthedocs.io/en/latest/topics/format.html Also look at the implementation in `user_data.py`, function `_do_include`. As you can see, this file isn't processed as YAML but parsed line by line. So the specification and implementation agree, but the schema validator doesn't and thinks it should process it as YAML. This wouldn't be a practical problem for me, but due to #1983303 I get mangled logs and can't work around it.
2022-08-02 12:16:24 Alberto Contreras cloud-init: status New Confirmed
2022-08-03 13:35:10 Alberto Contreras cloud-init: status Confirmed Triaged
2022-08-03 13:35:13 Alberto Contreras cloud-init: importance Undecided Medium
2022-08-04 17:03:13 Brett Holman cloud-init: status Triaged Incomplete
2022-08-08 21:13:25 Chad Smith cloud-init: importance Medium High
2022-08-09 10:26:26 Alberto Contreras cloud-init: assignee Alberto Contreras (aciba)
2022-08-09 10:26:40 Alberto Contreras cloud-init: status Incomplete In Progress
2022-08-11 18:06:12 James Falcon cloud-init: status In Progress Fix Committed
2022-08-19 16:37:34 Brett Holman cloud-init: status Fix Committed Fix Released
2023-05-12 18:05:02 James Falcon bug watch added https://github.com/canonical/cloud-init/issues/4004