Project

General

Profile

Actions

Bug #37011

closed

Ubuntu 22.04.3 needs adaption user-data template

Added by Tim Eilers 7 months ago. Updated 17 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Unattended installations
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/10048 added
Actions #2

Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 3.11.0 added
Actions #3

Updated by Bastian Schmidt 5 months ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Ewoud Kohl van Wijngaarden 17 days ago

  • Category changed from Templates to Unattended installations
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF