Project

General

Profile

Actions

Bug #35719

closed

Ubuntu Autoinstall enable offline and online installation

Added by Bastian Schmidt over 1 year ago. Updated about 1 year ago.

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

Description

The userdata template preseed_autoinstall_cloud_init defines the installer configuration for a new Ubuntu host. This includes also an initial package manager setup which configures a repository for apt.
As of now, the URL http://archive.ubuntu.com/ubuntu is set statically. This leads to an error if the host cannot reach this URL during the initial installer setup. This is usually the case if a host is supposed to be deployed offline and should not have access to the Internet.

We need an option to enable offline installation for Ubuntu host deployment. This could be achieved by assigning a mirror dynamically.

Actions #1

Updated by Bastian Schmidt over 1 year ago

After further research, we found out:

Instead of assigning an URL for the offline installation, we can disable the auto-updates of the installer.
Moreover, in katello-supported EL finish templates, host upgrades are managed by the finish template. Therefore, no auto-update of the installer is necessary (see EL finish template: https://github.com/theforeman/foreman/blob/5339e9fd73fbe4d33e8625f805321afc58391e66/app/views/unattended/provisioning_templates/finish/kickstart_default_finish.erb#L23).

However, I propose to differentiate between the following use cases:

auto-updates[y]?:
- katello[y]?:
-- managed by finish script (disable corresponding components)
- katello[n]?:
-- use official repos
auto-updates[n]?:
- disable corresponding components

Actions #2

Updated by The Foreman Bot over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.6.0 added
Actions #4

Updated by Bastian Schmidt over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.5.1 added
Actions #6

Updated by Ewoud Kohl van Wijngaarden about 1 year ago

  • Category changed from Host creation to Unattended installations
  • Triaged changed from No to Yes
Actions #7

Updated by Tim Eilers about 1 year ago

Your change introduced a bug. Raised #36229 due to that.

Actions

Also available in: Atom PDF