Project

General

Profile

Actions

Bug #34908

closed

Ubuntu Autoinstall hostname is not set correctly before finish template execution

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

Status:
Closed
Priority:
Normal
Category:
Host creation
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

During the Ubuntu Autoinstall provisioning, the hostname of the new machine must be set before the finish template is applied. It is important because the subscription-manager register command, which is executed in the finish template, relies on the hostname.

Unfortunately, due to the new Ubuntu Autoinstall mechanism, the hostname is not set correctly when the provisioning template is executed. A restart of the machine is necessary such that the hostname can be identified, but a restart is not an option since it needs further changes to switch the finish template execution after a restart.
Therefore, we must ensure that the hostname is set successfully, before the finish template got triggered. AFAIK, there would be two suitable solutions:
  • Execute hostnamectl in the provisioning template, before the finish template is triggered
  • Execute hostnamectl as first action in the finish template itself

It must be discussed, whether a change in the provisioning template or finish template should be preferred.

Actions #1

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/9216 added
Actions #2

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.4.0 added
Actions #3

Updated by Bastian Schmidt over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF