Regression in valid cloud-init "users" configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
A cloud-init configuration schema error under 22.04.
$ sudo cloud-init schema --system
Error:
Cloud config schema errors: users.0: {'name': 'sysadm', 'gecos': 'System Administrator', 'groups': ['adm', 'audio', 'cdrom', 'dialout', 'dip', 'floppy', 'lxd', 'netdev', 'plugdev', 'sudo', 'video'], 'lock_passwd': False, 'passwd': '$6$...$...', 'shell': '/bin/bash'} is not valid under any of the given schemas
However, I cannot see any problem with any of that; according to the documentation at
https:/
this should still be valid. The documentation for "groups" is a bit ambiguous:
groups: (string/
This says that object or array are valid - but then says it's a comma-separated string.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: cloud-init (not installed)
ProcVersionSign
Uname: Linux 5.15.0-46-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
Date: Thu Aug 25 17:42:04 2022
InstallationDate: Installed on 2016-10-31 (2123 days ago)
InstallationMedia: Ubuntu-Server 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
SourcePackage: cloud-init
UpgradeStatus: Upgraded to jammy on 2022-08-25 (0 days ago)
Thanks for reporting this, Candler. Could you please share your logs: https:/ /cloudinit. readthedocs. io/en/latest/ topics/ bugs.html ?