Project

General

Profile

Actions

Bug #35887

open

realm OTP not generated for Ubuntu Autoinstall rebuild

Added by Dan Ports almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Orchestration
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Tried to provision some Ubuntu 22.04 hosts using autoinstall on 3.5.0-rc1, in an environment with a FreeIPA realm. Provisioning and IPA host registration succeeds on a newly-created host, but when attempting to reprovision an existing host, IPA registration fails because the host OTP is not set.

Looking into this, it seems like the issue is that realm OTP reset takes place via handle_realm in unattended_controller.rb. This only gets called when rendering a provisioning template, but the new Ubuntu installer flow doesn't use one; it only uses userdata and finish templates.

Not familiar enough with all the provisioning options to suggest the right fix here. Adding the same handle_realm logic to userdata_controller works for my situation, but I'm not sure what implications it has for other types of installation.

(For that matter, is this an issue with all image-based provisioning too? Or does rebuilding an image-provisioned host even make sense?)

Actions

Also available in: Atom PDF