Activity log for bug #1999476

Date Who What changed Old value New value Message
2022-12-13 03:54:26 Robie Basak bug added bug
2022-12-13 16:51:33 James Falcon cloud-init: status New Triaged
2022-12-13 16:51:36 James Falcon cloud-init: importance Undecided Medium
2022-12-13 17:06:59 Robie Basak description Against cc_users_groups, I have some configurations that use: #cloud-config disable_root: false users: [] This used to work. I think it's a reasonable configuration: "please make root work, and don't create a non-root user". I'm doing this in order to have management of users/groups done later, not by cloud-init, on these instances. On booting Ubuntu 22.04 (cloud-init 22.3.4-0ubuntu1~22.04.1), I got: [ 30.621713] cloud-init[505]: 2022-12-13 03:35:09,073 - schema.py[WARNING]: Invalid cloud-config provided: Please run 'sudo cloud-init schema --system' to see the schema errors. # cloud-init schema --system Cloud config schema deprecations: Error: Cloud config schema errors: users: [] is too short This seems to be caused by cloudinit/config/schemas/schema-cloud-config-v1.json specifying "minItems": 1 against the "users" key. Expected behaviour: the above configuration works as before, with root login permitted but no other users created. Actual behaviour: unexpected schema warning. However I did get root access as desired, and the ubuntu user does exist. So perhaps the validation isn't enforced yet? Against cc_users_groups, I have some configurations that use: #cloud-config disable_root: false users: [] This used to work. I think it's a reasonable configuration: "please make root work, and don't create a non-root user". I'm doing this in order to have management of users/groups done later, not by cloud-init, on these instances. On booting Ubuntu 22.04 (cloud-init 22.3.4-0ubuntu1~22.04.1), I got: [ 30.621713] cloud-init[505]: 2022-12-13 03:35:09,073 - schema.py[WARNING]: Invalid cloud-config provided: Please run 'sudo cloud-init schema --system' to see the schema errors. # cloud-init schema --system Cloud config schema deprecations: Error: Cloud config schema errors: users: [] is too short This seems to be caused by cloudinit/config/schemas/schema-cloud-config-v1.json specifying "minItems": 1 against the "users" key. Expected behaviour: the above configuration works as before, with root login permitted but no other users created. Actual behaviour: unexpected schema warning. However I did get root access as desired, and the ubuntu user does not exist. So perhaps the validation isn't enforced yet?
2022-12-13 17:17:51 James Falcon tags bitesize
2023-04-19 18:30:09 Chad Smith cloud-init: status Triaged Fix Committed
2023-05-12 20:08:19 James Falcon bug watch added https://github.com/canonical/cloud-init/issues/4055