Bug #15354
closedsome provisioning templates are broken after upgrade from 1.11.1 to 1.11.2
Description
After upgrading to 1.11.2 from 1.11.1 (for DHCP API performance improvements), I found that my Foreman provisioning/tempates are broken in several places.
1. "<% kernel, initrd = @host.operatingsystem.boot_files_uri(@host.medium,@host.architecture) ->
KERNEL <= kernel >
INITRD <= initrd %>
in PXELinux template used to return these:
KERNEL http://installsvc.domain.com/images/ubuntu/trusty/dists/trusty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux
INITRD http://installsvc.domain.com/images/ubuntu/trusty/dists/trusty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz
now it complains and gives me this:
There was an error rendering the Ubuntu_PXELinux template: ERF42-8219 [Foreman::Exception]: Invalid medium for Ubuntu 14.04
2. no @preseed_path or @preseed_server vars populated in neither PXELinux or provisioning templates. They are just empty, but used to be something like this:
http://installsvc.domain.com:80/images/ubuntu/trusty
3. "<%= @host.os.medium_uri(@host) %>" used in finish script to get this:
http://installsvc.domain.com/images/ubuntu/trusty
now gives me this error:
There was an error rendering the Ubuntu_postinstall template: The snippet 'Ubuntu_repos' threw an error: undefined method `path' for nil:NilClass
Did my upgrade go wrong or what happened?