Problem:
During the provisioning process, I receive the following error:
waiting for cloud-init...
finish: subiquity/Userdata/load_autoinstall_data: Cloud config schema errors: autoinstall.user-data.users.0: {'gecos': 'root', 'hashed_passwd': '<snipped>', 'lock-passwd': False, 'name':'root', 'ssh_authorized_keys': []} is not valid under any of the given schemas
An error occurred. Press enter to start a shell
Expected outcome:
The provisioning process completes without errors.
Foreman and Proxy versions:
3.9.1
Foreman and Proxy plugin versions:
- foreman-tasks: 9.0.0
- foreman_bootdisk: 21.2.1
- foreman_remote_execution: 12.0.2
- katello: 4.11.0
Distribution and version:
AlmaLinux 8.9
Other relevant data:
- The host is being PXE-less booted, using a Full host image.
- The host is a VMware VM (managed via vSphere)
- The Operating System config:
- Partition Table: preseed default autoinstall
- Templates:
- Finish template: Preseed default finish
- Host initial configuration template: Linux host_init_config default
- iPXE Template: Preseed default iPXE Autoinstall
- Provisioning Template: preseed default
- PXEGrub2 template: Preseed default PXEGrub2 Autoinstall
- PXELinux template: Preseed default PXELinux Autoinstall
- User data template: Preseed Autoinstall cloud-init user data
- Host config:
- Operating System:
- Partition Table: Preseed default autoinstall
- PXE loader: PXELinux BIOS
- Operating System:
These are all default Templates (in case the names weren’t obvious), I haven’t modified any of them apart from associating them with the Operating System I created for Ubuntu 22.04.3.
The provisioning boot process appears successful, until reaching the error shown above.
After receiving the error, I can start a shell and do some troubleshooting.
The last line of /var/log/cloud-init.log:
handlers.py[DEBUG]: finish: modules-final: SUCCESS: running modules for final
I can provide more of that file via screenshot, if that helps.
I can run
curl -D - http://<my-server-URL>/userdata/meta-data
and it returns an HTTP 200 response, with the correct hostname, mac and local-ipv4 info for the Host I am trying to provision.