Bug #37011
closedUbuntu 22.04.3 needs adaption user-data template
Description
Due to recent changes in the user-data schema, the ssh_authorized_keys requires a minimum of 1 item, if the attribute is given, see: https://github.com/canonical/cloud-init/blob/main/cloudinit/config/schemas/schema-cloud-config-v1.json#L272
This conflicts with an empty array, which is set here if no keys are configured for the specific system-to-be-installed - see here: https://github.com/theforeman/foreman/blob/develop/app/views/unattended/provisioning_templates/user_data/preseed_autoinstall_cloud_init.erb#L59
Also "lock-passwd" (here: https://github.com/theforeman/foreman/blob/develop/app/views/unattended/provisioning_templates/user_data/preseed_autoinstall_cloud_init.erb#L50) should be changed to "lock_passwd", because the first one is deprecated (see here: https://github.com/canonical/cloud-init/blob/main/cloudinit/config/schemas/schema-cloud-config-v1.json#L208).
I modified both in a copied template and only with these changes i could succesfully install an Ubuntu 22.04.3
Updated by The Foreman Bot 12 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/10048 added
Updated by Bastian Schmidt 11 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|2836e9387420911fee0320d4c79d56f53c43bd58.
Updated by Ewoud Kohl van Wijngaarden 7 months ago
- Category changed from Templates to Unattended installations
- Triaged changed from No to Yes