Foreman 3.4 change for subiquity breaks generic bootdisk / preseed iPXE install of Ubuntu 20.04 and above

Thanks all for the above advice and ideas. I think I’m getting there.

My situation is a bit different in that I’m using the bootdisk plugin, with DHCP (where I don’t control the DHCP server) and behind NAT. So this is shaking out some other issues that I’m happy to solve and post a PR for.

@lzap I note in this thread you seem to have been managing the provisioning template changes for autoinstall. I think there’s a bug with dhcp in the netplan template. All the checks calculating if an interface is DHCP like ….subnet.nil? ? false : … should use true if there is no subnet?

The other place I had trouble was getting @host to load for http://foreman-server/userdata/. Since I am behind NAT the remote IP doesn’t work. After finding the routing code I managed to get it to work by adding the primary interface MAC to that /userdata/ URL. But @lzap: In this comment you talk about adding token support which would be nicer but I can’t see how that works. My experiments with adding the build token as a query parma did not work. Is it possible to access /userdata/ by build token?