Bug #35887
openrealm OTP not generated for Ubuntu Autoinstall rebuild
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?)
Updated by Ewoud Kohl van Wijngaarden almost 2 years ago
- Found in Releases 3.5.0 added