Unable to render kickstart template

Hi all,

I'm trying to create kickstart templates for my machines using Foreman
1.0 installed by using the foreman-1.0.0-0.1.el6.noarch RPM. When I
try and renter a template using the following:
https://10.0.64.34/unattended/provision?spoof=10.0.64.204

I get:

"We're sorry, but something went wrong."
We've been notified about this issue and we'll take a look at it shortly."

My foreman log shows the following:
ArgumentError (There was no default layout for UnattendedController in
[#<ActionView::FileSystemResolver:0x7f636f257590
@path="/usr/share/foreman/app/views", @caching=true,
@cached={#<ActionView::LookupContext::DetailsKey:0x7f636cea9df0
@hash=70032502902520>=>{"common/os_selection"=>{"operatingsystem"=>{true=>[app/views/common/os_selection/_operatingsystem.html.erb]},
"architecture"=>{true=>[app/views/common/os_selection/_architecture.html.erb]}},
"subnets"=>{"welcome"=>{false=>[]}},
"puppetclasses"=>{"selectedClasses"=>{true=>[app/views/puppetclasses/_selectedClasses.html.erb]},
"class_selection"=>{true=>[app/views/puppetclasses/_class_selection.html.erb]},
"classes"=>{true=>[app/views/puppetclasses/_classes.html.erb]}},
"layouts"=>{"subnets"=>{false=>[]},
"application"=>{false=>[app/views/layouts/application.html.erb]},
"hosts"=>{false=>[]}}, "unattended"=>{"index"=>{false=>[]}},
"common"=>{"domain"=>{true=>[app/views/common/_domain.html.erb]}}},
#<ActionView::LookupContext::DetailsKey:0x7f636d12ca78
@hash=70032504218940>=>{"domains"=>{"index"=>{false=>[app/views/domains/index.html.erb]}},
"operatingsystems"=>{"templates"=>{true=>[app/views/operatingsystems/_templates.html.erb]},
"template_defaults"=>{true=>[app/views/operatingsystems/_template_defaults.html.erb]},
"edit"=>{false=>[app/views/operatingsystems/edit.html.erb]},
"index"=>{false=>[app/views/operatingsystems/index.html.erb]},
"form"=>{true=>[app/views/operatingsystems/_form.html.erb]}},
"tasks"=>{"list"=>{true=>[app/views/tasks/_list.rhtml]}},
"common/os_selection"=>{"operatingsystem"=>{true=>[app/views/common/os_selection/_operatingsystem.html.erb]},
"architecture"=>{true=>[app/views/common/os_selection/_architecture.html.erb]}},
"subnets"=>{"fields"=>{true=>[app/views/subnets/_fields.html.erb]},
"edit"=>{false=>[app/views/subnets/edit.html.erb]},
"index"=>{false=>[app/views/subnets/index.html.erb]},
"form"=>{true=>[app/views/subnets/_form.html.erb]},
"new"=>{false=>[app/views/subnets/new.html.erb]}},
"dashboard"=>{"index"=>{false=>[app/views/dashboard/index.html.erb]}},
"home"=>{"topbar"=>{true=>[app/views/home/_topbar.rhtml]},
"user_dropdown"=>{true=>[app/views/home/_user_dropdown.rhtml]},
"settings"=>{true=>[app/views/home/_settings.html.erb]}},
"puppetclasses"=>{"selectedClasses"=>{true=>[app/views/puppetclasses/_selectedClasses.html.erb]},
"class_selection"=>{true=>[app/views/puppetclasses/_class_selection.html.erb]},
"classes"=>{true=>[app/views/puppetclasses/_classes.html.erb]}},
"layouts"=>{"domains"=>{false=>[]}, "operatingsystems"=>{false=>[]},
"errors"=>{false=>[]}, "subnets"=>{false=>[]},
"dashboard"=>{false=>[]}, "smart_proxies"=>{false=>[]},
"media"=>{false=>[]}, "ptables"=>{false=>[]},
"config_templates"=>{false=>[]},
"application"=>{false=>[app/views/layouts/application.html.erb]},
"environments"=>{false=>[]}, "architectures"=>{false=>[]},
"hosts"=>{false=>[]}, "users"=>{false=>[]}},
"smart_proxies"=>{"edit"=>{false=>[app/views/smart_proxies/edit.html.erb]},
"index"=>{false=>[app/views/smart_proxies/index.html.erb]},
"form"=>{true=>[app/views/smart_proxies/_form.html.erb]}},
"common_parameters"=>{"parameter"=>{true=>[app/views/common_parameters/_parameter.erb]},
"parameters"=>{true=>[app/views/common_parameters/_parameters.erb]}},
"bookmarks"=>{"list"=>{true=>[app/views/bookmarks/_list.html.erb]}},
"media"=>{"edit"=>{false=>[app/views/media/edit.html.erb]},
"index"=>{false=>[app/views/media/index.html.erb]},
"form"=>{true=>[app/views/media/_form.html.erb]},
"new"=>{false=>[app/views/media/new.html.erb]}},
"ptables"=>{"edit"=>{false=>[app/views/ptables/edit.html.erb]},
"index"=>{false=>[app/views/ptables/index.html.erb]},
"form"=>{true=>[app/views/ptables/_form.html.erb]}},
"config_templates"=>{"combinations"=>{true=>[app/views/config_templates/_combinations.html.erb]},
"edit"=>{false=>[app/views/config_templates/edit.html.erb]},
"index"=>{false=>[app/views/config_templates/index.html.erb]},
"combination"=>{true=>[app/views/config_templates/_combination.html.erb]},
"form"=>{true=>[app/views/config_templates/_form.html.erb]},
"new"=>{false=>[app/views/config_templates/new.html.erb]}},
"environments"=>{"index"=>{false=>[app/views/environments/index.html.erb]}},
"unattended"=>{"provision"=>{false=>[]}},
"architectures"=>{"edit"=>{false=>[app/views/architectures/edit.html.erb]},
"index"=>{false=>[app/views/architectures/index.html.erb]},
"form"=>{true=>[app/views/architectures/_form.html.erb]}},
"hosts"=>{"conflicts"=>{true=>[app/views/hosts/_conflicts.html.erb]},
"show"=>{false=>[app/views/hosts/show.html.erb]},
"edit"=>{false=>[app/views/hosts/edit.html.erb]},
"sp_subnet"=>{true=>[app/views/hosts/_sp_subnet.html.erb]},
"list"=>{true=>[app/views/hosts/_list.html.erb]},
"overview"=>{true=>[app/views/hosts/_overview.html.erb]},
"index"=>{false=>[app/views/hosts/index.html.erb]},
"operating_system"=>{true=>[app/views/hosts/_operating_system.erb]},
"form"=>{true=>[app/views/hosts/_form.html.erb]},
"new"=>{false=>[app/views/hosts/new.html.erb]},
"unattended"=>{true=>[app/views/hosts/_unattended.html.erb]},
"progress"=>{true=>[app/views/hosts/_progress.erb]}},
"common"=>{"edit_habtm"=>{true=>[app/views/common/_edit_habtm.erb]},
"404"=>{false=>[app/views/common/404.rhtml]},
"500"=>{false=>[app/views/common/500.rhtml]},
"searchbar"=>{true=>[app/views/common/_searchbar.erb]},
"domain"=>{true=>[app/views/common/_domain.html.erb]}},
"users"=>{"login"=>{false=>[app/views/users/login.html.erb]}}}}>]):
app/controllers/application_controller.rb:278:in `generic_exception'

My templates are as follows:
Name: Kickstart default PXElinux
Kind: PXELinux
Content:
default linux
label linux
kernel <%= @kernel %>
append initrd=<%= @initrd %> ks=<%= foreman_url("provision")%>
ksdevice=bootif network kssendmac

I've associated this template to my Operating System and my host is
associated with the Operating System. Is there something I'm missing?

Regards,
Gareth

>
> Hi all,
>
> I'm trying to create kickstart templates for my machines using Foreman
> 1.0 installed by using the foreman-1.0.0-0.1.el6.noarch RPM. When I
> try and renter a template using the following:
> https://10.0.64.34/unattended/provision?spoof=10.0.64.204
>
> I get:
>
> "We're sorry, but something went wrong."
> We've been notified about this issue and we'll take a look at it shortly."
>
> My foreman log shows the following:
> ArgumentError (There was no default layout for UnattendedController in
> [#<ActionView::FileSystemResolver:0x7f636f257590
> @path="/usr/share/foreman/app/views", @caching=true,
> @cached={#<ActionView::LookupContext::DetailsKey:0x7f636cea9df0
>
@hash=70032502902520>=>{"common/os_selection"=>{"operatingsystem"=>{true=>[app/views/common/os_selection/_operatingsystem.html.erb]},
>
"architecture"=>{true=>[app/views/common/os_selection/_architecture.html.erb]}},
> "subnets"=>{"welcome"=>{false=>[]}},
>
"puppetclasses"=>{"selectedClasses"=>{true=>[app/views/puppetclasses/_selectedClasses.html.erb]},
>
"class_selection"=>{true=>[app/views/puppetclasses/_class_selection.html.erb]},
> "classes"=>{true=>[app/views/puppetclasses/_classes.html.erb]}},
> "layouts"=>{"subnets"=>{false=>[]},
> "application"=>{false=>[app/views/layouts/application.html.erb]},
> "hosts"=>{false=>[]}}, "unattended"=>{"index"=>{false=>[]}},
> "common"=>{"domain"=>{true=>[app/views/common/_domain.html.erb]}}},
> #<ActionView::LookupContext::DetailsKey:0x7f636d12ca78
>
@hash=70032504218940>=>{"domains"=>{"index"=>{false=>[app/views/domains/index.html.erb]}},
>
"operatingsystems"=>{"templates"=>{true=>[app/views/operatingsystems/_templates.html.erb]},
>
"template_defaults"=>{true=>[app/views/operatingsystems/_template_defaults.html.erb]},
> "edit"=>{false=>[app/views/operatingsystems/edit.html.erb]},
> "index"=>{false=>[app/views/operatingsystems/index.html.erb]},
> "form"=>{true=>[app/views/operatingsystems/_form.html.erb]}},
> "tasks"=>{"list"=>{true=>[app/views/tasks/_list.rhtml]}},
>
"common/os_selection"=>{"operatingsystem"=>{true=>[app/views/common/os_selection/_operatingsystem.html.erb]},
>
"architecture"=>{true=>[app/views/common/os_selection/_architecture.html.erb]}},
> "subnets"=>{"fields"=>{true=>[app/views/subnets/_fields.html.erb]},
> "edit"=>{false=>[app/views/subnets/edit.html.erb]},
> "index"=>{false=>[app/views/subnets/index.html.erb]},
> "form"=>{true=>[app/views/subnets/_form.html.erb]},
> "new"=>{false=>[app/views/subnets/new.html.erb]}},
> "dashboard"=>{"index"=>{false=>[app/views/dashboard/index.html.erb]}},
> "home"=>{"topbar"=>{true=>[app/views/home/_topbar.rhtml]},
> "user_dropdown"=>{true=>[app/views/home/_user_dropdown.rhtml]},
> "settings"=>{true=>[app/views/home/_settings.html.erb]}},
>
"puppetclasses"=>{"selectedClasses"=>{true=>[app/views/puppetclasses/_selectedClasses.html.erb]},
>
"class_selection"=>{true=>[app/views/puppetclasses/_class_selection.html.erb]},
> "classes"=>{true=>[app/views/puppetclasses/_classes.html.erb]}},
> "layouts"=>{"domains"=>{false=>[]}, "operatingsystems"=>{false=>[]},
> "errors"=>{false=>[]}, "subnets"=>{false=>[]},
> "dashboard"=>{false=>[]}, "smart_proxies"=>{false=>[]},
> "media"=>{false=>[]}, "ptables"=>{false=>[]},
> "config_templates"=>{false=>[]},
> "application"=>{false=>[app/views/layouts/application.html.erb]},
> "environments"=>{false=>[]}, "architectures"=>{false=>[]},
> "hosts"=>{false=>[]}, "users"=>{false=>[]}},
>
"smart_proxies"=>{"edit"=>{false=>[app/views/smart_proxies/edit.html.erb]},
> "index"=>{false=>[app/views/smart_proxies/index.html.erb]},
> "form"=>{true=>[app/views/smart_proxies/_form.html.erb]}},
>
"common_parameters"=>{"parameter"=>{true=>[app/views/common_parameters/_parameter.erb]},
> "parameters"=>{true=>[app/views/common_parameters/_parameters.erb]}},
> "bookmarks"=>{"list"=>{true=>[app/views/bookmarks/_list.html.erb]}},
> "media"=>{"edit"=>{false=>[app/views/media/edit.html.erb]},
> "index"=>{false=>[app/views/media/index.html.erb]},
> "form"=>{true=>[app/views/media/_form.html.erb]},
> "new"=>{false=>[app/views/media/new.html.erb]}},
> "ptables"=>{"edit"=>{false=>[app/views/ptables/edit.html.erb]},
> "index"=>{false=>[app/views/ptables/index.html.erb]},
> "form"=>{true=>[app/views/ptables/_form.html.erb]}},
>
"config_templates"=>{"combinations"=>{true=>[app/views/config_templates/_combinations.html.erb]},
> "edit"=>{false=>[app/views/config_templates/edit.html.erb]},
> "index"=>{false=>[app/views/config_templates/index.html.erb]},
> "combination"=>{true=>[app/views/config_templates/_combination.html.erb]},
> "form"=>{true=>[app/views/config_templates/_form.html.erb]},
> "new"=>{false=>[app/views/config_templates/new.html.erb]}},
>
"environments"=>{"index"=>{false=>[app/views/environments/index.html.erb]}},
> "unattended"=>{"provision"=>{false=>[]}},
>
"architectures"=>{"edit"=>{false=>[app/views/architectures/edit.html.erb]},
> "index"=>{false=>[app/views/architectures/index.html.erb]},
> "form"=>{true=>[app/views/architectures/_form.html.erb]}},
> "hosts"=>{"conflicts"=>{true=>[app/views/hosts/_conflicts.html.erb]},
> "show"=>{false=>[app/views/hosts/show.html.erb]},
> "edit"=>{false=>[app/views/hosts/edit.html.erb]},
> "sp_subnet"=>{true=>[app/views/hosts/_sp_subnet.html.erb]},
> "list"=>{true=>[app/views/hosts/_list.html.erb]},
> "overview"=>{true=>[app/views/hosts/_overview.html.erb]},
> "index"=>{false=>[app/views/hosts/index.html.erb]},
> "operating_system"=>{true=>[app/views/hosts/_operating_system.erb]},
> "form"=>{true=>[app/views/hosts/_form.html.erb]},
> "new"=>{false=>[app/views/hosts/new.html.erb]},
> "unattended"=>{true=>[app/views/hosts/_unattended.html.erb]},
> "progress"=>{true=>[app/views/hosts/_progress.erb]}},
> "common"=>{"edit_habtm"=>{true=>[app/views/common/_edit_habtm.erb]},
> "404"=>{false=>[app/views/common/404.rhtml]},
> "500"=>{false=>[app/views/common/500.rhtml]},
> "searchbar"=>{true=>[app/views/common/_searchbar.erb]},
> "domain"=>{true=>[app/views/common/_domain.html.erb]}},
> "users"=>{"login"=>{false=>[app/views/users/login.html.erb]}}}}>]):
> app/controllers/application_controller.rb:278:in `generic_exception'
>
>
> My templates are as follows:
> Name: Kickstart default PXElinux
> Kind: PXELinux
> Content:
> default linux
> label linux
> kernel <%= @kernel %>
> append initrd=<%= @initrd %> ks=<%= foreman_url("provision")%>
> ksdevice=bootif network kssendmac
>
> I've associated this template to my Operating System and my host is
> associated with the Operating System. Is there something I'm missing?

You are showing the pxe template but in your request you ask for the
provisioning template, my guess is that you have a snippet which does not
exist.

Ohad
>
> Regards,
> Gareth
>
> –
> You received this message because you are subscribed to the Google Groups
"Foreman users" group.
> To post to this group, send email to foreman-users@googlegroups.com.
> To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

··· בתאריך 9 ביול 2012 12:20, מאת "Gareth Allen" : >