Foreman 1.13: error rendering the Kickstart template: undefined method `layout' for nil:NilClass

Note: IPs and Hostnames changed for privacy.

I have a fresh install of Foreman 1.13 on CentOS7 and am having problems
rendering templates.

When attempting to render the default Kickstart template for the Foreman
host, I'm presented with the error:

There was an error rendering the Kickstart default template: undefined
method `layout' for nil:NilClass

I have not edited any of the templates.

SELinux is set to permissive. When set to enforcing, Foreman is unable to
retrieve the Puppet certificates and the Salt keys for display in the
interface (this appears to be an issue with the foreman-proxy running the
requisite commands with sudo).

DNS and DHCP are configured on the host.

The Salt plugin is also configured as outlined in the documentation.

I'm running on PostgreSQL 9.6 so I can eventually run PuppetDB.

I have run the foreman-installer with the following options:

foreman-installer
–enable-foreman
–enable-foreman-cli
–enable-foreman-proxy
–enable-puppet
–enable-foreman-compute-ovirt
–enable-foreman-plugin-bootdisk
–enable-foreman-plugin-cockpit
–enable-foreman-plugin-discovery
–enable-foreman-plugin-docker
–enable-foreman-plugin-hooks
–enable-foreman-plugin-salt
–enable-foreman-plugin-setup
–enable-foreman-plugin-tasks
–enable-foreman-plugin-templates
–enable-foreman-plugin-dhcp-browser
–foreman-db-manage=false
–foreman-db-password=<REDACTED>

I also have the SaltStack plugin enabled and configured with the following
options:

foreman-installer
–enable-foreman-proxy
–enable-foreman-plugin-salt
–enable-foreman-proxy-plugin-salt
–foreman-proxy-plugin-salt-api=true
–foreman-proxy-plugin-salt-api-auth=pam
–foreman-proxy-plugin-salt-api-url=foreman.examplelab.net:9191
–foreman-proxy-plugin-salt-api-username=saltuser
–foreman-proxy-plugin-salt-api-password='<REDACTED>'
–foreman-proxy-plugin-salt-autosign-file='/etc/salt/autosign.conf'
–foreman-proxy-plugin-salt-listen-on=https
–foreman-proxy-plugin-salt-user=root
–foreman-proxy-plugin-salt-enabled=true
–foreman-proxy-plugin-salt-group=foreman-proxy

I configured provisioning with the following options

foreman-installer
–enable-foreman-proxy
–foreman-proxy-tftp=true
–foreman-proxy-tftp-servername=192.0.2.54
–foreman-proxy-dhcp=true
–foreman-proxy-dhcp-interface=enp0s25.203
–foreman-proxy-dhcp-gateway=192.0.2.2
–foreman-proxy-dhcp-range="192.0.2.40 192.0.2.99"
–foreman-proxy-dhcp-nameservers="192.0.2.54,192.0.2.159"
–foreman-proxy-dhcp-managed=false
–foreman-proxy-dhcp-key-name="omapi_key"
–foreman-proxy-dhcp-key-secret="<REDACTED>"
–foreman-proxy-dns-managed=false
–foreman-proxy-dns=true
–foreman-proxy-dns-interface=enp0s25.203
–foreman-proxy-dns-zone=examplelab.net
–foreman-proxy-dns-reverse=2.0.192.in-addr.arpa
–foreman-proxy-dns-forwarders=192.0.2.54
–foreman-proxy-dns-forwarders=192.0.2.159
–foreman-proxy-foreman-base-url=https://foreman.examplelab.net
–foreman-proxy-oauth-consumer-key=<REDACTED>
–foreman-proxy-oauth-consumer-secret=<REDACTED>

The log (set to debug) produces the following trace:

2016-10-23 18:20:18 992b49ed [app] [W] There was an error rendering the
Kickstart default template:
> ActionView::Template::Error: undefined method layout&#39; for nil:NilClass &gt; /usr/share/foreman/app/models/host/managed.rb:328:indiskLayout'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode/jail.rb:25:in
method_missing&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:232:inbind'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:51:in
eval&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:51:ineval'
> /usr/share/foreman/lib/foreman/renderer.rb:24:in render_safe&#39; &gt; /usr/share/foreman/lib/foreman/renderer.rb:153:inunattended_render'
> inline template:1:in _ed599a6e8f8bdcbfa998446a931abcd8&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:145:inblock in render'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:166:in
instrument&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:333:ininstrument'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:143:in
render&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.0.2/lib/deface/action_view_extensions.rb:41:inrender'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:54:in
block (2 levels) in render_template&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/abstract_renderer.rb:39:inblock in instrument'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in
block in instrument&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:ininstrument'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in
instrument&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/abstract_renderer.rb:39:ininstrument'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:53:in
block in render_template&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:61:inrender_with_layout'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:52:in
render_template&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:14:inrender'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/renderer.rb:46:in
render_template&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/renderer.rb:27:inrender'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:100:in
_render_template&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/streaming.rb:217:in_render_template'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:83:in
render_to_body&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:32:inrender_to_body'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/renderers.rb:37:in
render_to_body&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/rendering.rb:25:inrender'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:16:in
render&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:44:inblock (2 levels) in render'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/benchmark.rb:12:in
block in ms&#39; &gt; /opt/rh/rh-ruby22/root/usr/share/ruby/benchmark.rb:303:inrealtime'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/benchmark.rb:12:in
ms&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:44:inblock in render'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:87:in
cleanup_view_runtime&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:25:incleanup_view_runtime'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:43:in
render&#39; &gt; /usr/share/foreman/app/controllers/unattended_controller.rb:224:insafe_render'
> /usr/share/foreman/app/controllers/unattended_controller.rb:79:in
render_template&#39; &gt; /usr/share/foreman/app/controllers/unattended_controller.rb:47:inhost_template'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:4:in
send_action&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:198:inprocess_action'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:10:in
process_action&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:20:inblock in process_action'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in
block (2 levels) in compile&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:inblock (2 levels) in around'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:inblock (2 levels) in halting'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in
around&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:inpublic_send'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in
block in make_lambda&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
block in halting&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
block in around&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:inblock (2 levels) in around'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:inblock (2 levels) in halting'
>
/usr/share/foreman/app/controllers/concerns/application_shared.rb:14:in
set_timezone&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:inblock in make_lambda'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:inblock in halting'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:inblock in around'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in
block (2 levels) in around&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
block (2 levels) in halting&#39; &gt; /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:inclear_thread'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in
block in make_lambda&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
block in halting&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
block in around&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:inblock (2 levels) in around'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:inblock (2 levels) in halting'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in
around&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:inpublic_send'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in
block in make_lambda&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
block in halting&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
block in around&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:incall'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:inrun_callbacks'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in
_run_process_action_callbacks&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:inrun_callbacks'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:19:in
process_action&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rescue.rb:29:inprocess_action'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:32:in
block in process_action&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:inblock in instrument'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in
instrument&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:ininstrument'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:30:in
process_action&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/params_wrapper.rb:250:inprocess_action'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:18:in
process_action&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:137:inprocess'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:30:in
process&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:196:indispatch'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rack_delegation.rb:13:in
dispatch&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:237:inblock in action'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:in
call&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:indispatch'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:43:in
serve&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:43:inblock in serve'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in
each&#39; &gt; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:inserve'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/jo

Hi, have you associated disk layouts with the OS? Check that and
select one when provisioning.

LZ

··· On Mon, Oct 24, 2016 at 12:52 AM, techmanrc wrote: > Note: IPs and Hostnames changed for privacy. > > I have a fresh install of Foreman 1.13 on CentOS7 and am having problems > rendering templates. > > When attempting to render the default Kickstart template for the Foreman > host, I'm presented with the error: > > There was an error rendering the Kickstart default template: undefined > method `layout' for nil:NilClass > > I have not edited any of the templates. > > SELinux is set to permissive. When set to enforcing, Foreman is unable to > retrieve the Puppet certificates and the Salt keys for display in the > interface (this appears to be an issue with the foreman-proxy running the > requisite commands with sudo). > > DNS and DHCP are configured on the host. > > The Salt plugin is also configured as outlined in the documentation. > > I'm running on PostgreSQL 9.6 so I can eventually run PuppetDB. > > I have run the foreman-installer with the following options: > > foreman-installer \ > --enable-foreman \ > --enable-foreman-cli \ > --enable-foreman-proxy \ > --enable-puppet \ > --enable-foreman-compute-ovirt \ > --enable-foreman-plugin-bootdisk \ > --enable-foreman-plugin-cockpit \ > --enable-foreman-plugin-discovery \ > --enable-foreman-plugin-docker \ > --enable-foreman-plugin-hooks \ > --enable-foreman-plugin-salt \ > --enable-foreman-plugin-setup \ > --enable-foreman-plugin-tasks \ > --enable-foreman-plugin-templates \ > --enable-foreman-plugin-dhcp-browser \ > --foreman-db-manage=false \ > --foreman-db-password= > > I also have the SaltStack plugin enabled and configured with the following > options: > > foreman-installer \ > --enable-foreman-proxy \ > --enable-foreman-plugin-salt \ > --enable-foreman-proxy-plugin-salt \ > --foreman-proxy-plugin-salt-api=true \ > --foreman-proxy-plugin-salt-api-auth=pam \ > --foreman-proxy-plugin-salt-api-url=foreman.examplelab.net:9191 \ > --foreman-proxy-plugin-salt-api-username=saltuser \ > --foreman-proxy-plugin-salt-api-password='' \ > --foreman-proxy-plugin-salt-autosign-file='/etc/salt/autosign.conf' \ > --foreman-proxy-plugin-salt-listen-on=https \ > --foreman-proxy-plugin-salt-user=root \ > --foreman-proxy-plugin-salt-enabled=true \ > --foreman-proxy-plugin-salt-group=foreman-proxy > > I configured provisioning with the following options > > foreman-installer \ > --enable-foreman-proxy \ > --foreman-proxy-tftp=true \ > --foreman-proxy-tftp-servername=192.0.2.54 \ > --foreman-proxy-dhcp=true \ > --foreman-proxy-dhcp-interface=enp0s25.203 \ > --foreman-proxy-dhcp-gateway=192.0.2.2 \ > --foreman-proxy-dhcp-range="192.0.2.40 192.0.2.99" \ > --foreman-proxy-dhcp-nameservers="192.0.2.54,192.0.2.159" \ > --foreman-proxy-dhcp-managed=false \ > --foreman-proxy-dhcp-key-name="omapi_key" \ > --foreman-proxy-dhcp-key-secret="" \ > --foreman-proxy-dns-managed=false \ > --foreman-proxy-dns=true \ > --foreman-proxy-dns-interface=enp0s25.203 \ > --foreman-proxy-dns-zone=examplelab.net \ > --foreman-proxy-dns-reverse=2.0.192.in-addr.arpa \ > --foreman-proxy-dns-forwarders=192.0.2.54 \ > --foreman-proxy-dns-forwarders=192.0.2.159 \ > --foreman-proxy-foreman-base-url=https://foreman.examplelab.net \ > --foreman-proxy-oauth-consumer-key= \ > --foreman-proxy-oauth-consumer-secret= > > The log (set to debug) produces the following trace: > > 2016-10-23 18:20:18 992b49ed [app] [W] There was an error rendering the > Kickstart default template: > > ActionView::Template::Error: undefined method `layout' for > nil:NilClass > > /usr/share/foreman/app/models/host/managed.rb:328:in `diskLayout' > > > /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode/jail.rb:25:in > `method_missing' > > > /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:232:in > `bind' > > > /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:51:in > `eval' > > > /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:51:in > `eval' > > /usr/share/foreman/lib/foreman/renderer.rb:24:in `render_safe' > > /usr/share/foreman/lib/foreman/renderer.rb:153:in `unattended_render' > > inline template:1:in `_ed599a6e8f8bdcbfa998446a931abcd8' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:145:in > `block in render' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:166:in > `instrument' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:333:in > `instrument' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:143:in > `render' > > > /opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.0.2/lib/deface/action_view_extensions.rb:41:in > `render' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:54:in > `block (2 levels) in render_template' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/abstract_renderer.rb:39:in > `block in instrument' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in > `block in instrument' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in > `instrument' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in > `instrument' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/abstract_renderer.rb:39:in > `instrument' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:53:in > `block in render_template' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:61:in > `render_with_layout' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:52:in > `render_template' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:14:in > `render' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/renderer.rb:46:in > `render_template' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/renderer.rb:27:in > `render' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:100:in > `_render_template' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/streaming.rb:217:in > `_render_template' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:83:in > `render_to_body' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:32:in > `render_to_body' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/renderers.rb:37:in > `render_to_body' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/rendering.rb:25:in > `render' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:16:in > `render' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:44:in > `block (2 levels) in render' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/benchmark.rb:12:in > `block in ms' > > /opt/rh/rh-ruby22/root/usr/share/ruby/benchmark.rb:303:in `realtime' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/benchmark.rb:12:in > `ms' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:44:in > `block in render' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:87:in > `cleanup_view_runtime' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:25:in > `cleanup_view_runtime' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:43:in > `render' > > /usr/share/foreman/app/controllers/unattended_controller.rb:224:in > `safe_render' > > /usr/share/foreman/app/controllers/unattended_controller.rb:79:in > `render_template' > > /usr/share/foreman/app/controllers/unattended_controller.rb:47:in > `host_template' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:4:in > `send_action' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:198:in > `process_action' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:10:in > `process_action' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:20:in > `block in process_action' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in > `block (2 levels) in compile' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in > `block (2 levels) in around' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > `block (2 levels) in halting' > > > /opt/theforeman/tfm/root/usr/share/gems/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in > `around' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in > `public_send' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in > `block in make_lambda' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > `block in halting' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > `block in around' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in > `block (2 levels) in around' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > `block (2 levels) in halting' > > > /usr/share/foreman/app/controllers/concerns/application_shared.rb:14:in > `set_timezone' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in > `block in make_lambda' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > `block in halting' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > `block in around' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in > `block (2 levels) in around' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > `block (2 levels) in halting' > > /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in > `clear_thread' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in > `block in make_lambda' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > `block in halting' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > `block in around' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in > `block (2 levels) in around' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > `block (2 levels) in halting' > > > /opt/theforeman/tfm/root/usr/share/gems/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in > `around' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in > `public_send' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in > `block in make_lambda' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > `block in halting' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > `block in around' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > `call' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in > `__run_callbacks__' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in > `_run_process_action_callbacks' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in > `run_callbacks' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:19:in > `process_action' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rescue.rb:29:in > `process_action' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:32:in > `block in process_action' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in > `block in instrument' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in > `instrument' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in > `instrument' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:30:in > `process_action' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/params_wrapper.rb:250:in > `process_action' > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtim

Thanks Lukas. I was indeed missing the complete template configuration. Not
sure how I missed that.

··· On Monday, October 24, 2016 at 2:25:07 AM UTC-4, Lukas Zapletal wrote: > > Hi, have you associated disk layouts with the OS? Check that and > select one when provisioning. > > LZ > > On Mon, Oct 24, 2016 at 12:52 AM, techmanrc > wrote: > > Note: IPs and Hostnames changed for privacy. > > > > I have a fresh install of Foreman 1.13 on CentOS7 and am having problems > > rendering templates. > > > > When attempting to render the default Kickstart template for the Foreman > > host, I'm presented with the error: > > > > There was an error rendering the Kickstart default template: undefined > > method `layout' for nil:NilClass > > > > I have not edited any of the templates. > > > > SELinux is set to permissive. When set to enforcing, Foreman is unable > to > > retrieve the Puppet certificates and the Salt keys for display in the > > interface (this appears to be an issue with the foreman-proxy running > the > > requisite commands with sudo). > > > > DNS and DHCP are configured on the host. > > > > The Salt plugin is also configured as outlined in the documentation. > > > > I'm running on PostgreSQL 9.6 so I can eventually run PuppetDB. > > > > I have run the foreman-installer with the following options: > > > > foreman-installer \ > > --enable-foreman \ > > --enable-foreman-cli \ > > --enable-foreman-proxy \ > > --enable-puppet \ > > --enable-foreman-compute-ovirt \ > > --enable-foreman-plugin-bootdisk \ > > --enable-foreman-plugin-cockpit \ > > --enable-foreman-plugin-discovery \ > > --enable-foreman-plugin-docker \ > > --enable-foreman-plugin-hooks \ > > --enable-foreman-plugin-salt \ > > --enable-foreman-plugin-setup \ > > --enable-foreman-plugin-tasks \ > > --enable-foreman-plugin-templates \ > > --enable-foreman-plugin-dhcp-browser \ > > --foreman-db-manage=false \ > > --foreman-db-password= > > > > I also have the SaltStack plugin enabled and configured with the > following > > options: > > > > foreman-installer \ > > --enable-foreman-proxy \ > > --enable-foreman-plugin-salt \ > > --enable-foreman-proxy-plugin-salt \ > > --foreman-proxy-plugin-salt-api=true \ > > --foreman-proxy-plugin-salt-api-auth=pam \ > > --foreman-proxy-plugin-salt-api-url=foreman.examplelab.net:9191 \ > > --foreman-proxy-plugin-salt-api-username=saltuser \ > > --foreman-proxy-plugin-salt-api-password='' \ > > --foreman-proxy-plugin-salt-autosign-file='/etc/salt/autosign.conf' \ > > --foreman-proxy-plugin-salt-listen-on=https \ > > --foreman-proxy-plugin-salt-user=root \ > > --foreman-proxy-plugin-salt-enabled=true \ > > --foreman-proxy-plugin-salt-group=foreman-proxy > > > > I configured provisioning with the following options > > > > foreman-installer \ > > --enable-foreman-proxy \ > > --foreman-proxy-tftp=true \ > > --foreman-proxy-tftp-servername=192.0.2.54 \ > > --foreman-proxy-dhcp=true \ > > --foreman-proxy-dhcp-interface=enp0s25.203 \ > > --foreman-proxy-dhcp-gateway=192.0.2.2 \ > > --foreman-proxy-dhcp-range="192.0.2.40 192.0.2.99" \ > > --foreman-proxy-dhcp-nameservers="192.0.2.54,192.0.2.159" \ > > --foreman-proxy-dhcp-managed=false \ > > --foreman-proxy-dhcp-key-name="omapi_key" \ > > --foreman-proxy-dhcp-key-secret="" \ > > --foreman-proxy-dns-managed=false \ > > --foreman-proxy-dns=true \ > > --foreman-proxy-dns-interface=enp0s25.203 \ > > --foreman-proxy-dns-zone=examplelab.net \ > > --foreman-proxy-dns-reverse=2.0.192.in-addr.arpa \ > > --foreman-proxy-dns-forwarders=192.0.2.54 \ > > --foreman-proxy-dns-forwarders=192.0.2.159 \ > > --foreman-proxy-foreman-base-url=https://foreman.examplelab.net \ > > --foreman-proxy-oauth-consumer-key= \ > > --foreman-proxy-oauth-consumer-secret= > > > > The log (set to debug) produces the following trace: > > > > 2016-10-23 18:20:18 992b49ed [app] [W] There was an error rendering the > > Kickstart default template: > > > ActionView::Template::Error: undefined method `layout' for > > nil:NilClass > > > /usr/share/foreman/app/models/host/managed.rb:328:in `diskLayout' > > > > > > /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode/jail.rb:25:in > > > `method_missing' > > > > > > /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:232:in > > > `bind' > > > > > > /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:51:in > > > `eval' > > > > > > /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.4/lib/safemode.rb:51:in > > > `eval' > > > /usr/share/foreman/lib/foreman/renderer.rb:24:in `render_safe' > > > /usr/share/foreman/lib/foreman/renderer.rb:153:in > `unattended_render' > > > inline template:1:in `_ed599a6e8f8bdcbfa998446a931abcd8' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:145:in > > > `block in render' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:166:in > > > `instrument' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:333:in > > > `instrument' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:143:in > > > `render' > > > > > > /opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.0.2/lib/deface/action_view_extensions.rb:41:in > > > `render' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:54:in > > > `block (2 levels) in render_template' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/abstract_renderer.rb:39:in > > > `block in instrument' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in > > > `block in instrument' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in > > > `instrument' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in > > > `instrument' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/abstract_renderer.rb:39:in > > > `instrument' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:53:in > > > `block in render_template' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:61:in > > > `render_with_layout' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:52:in > > > `render_template' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:14:in > > > `render' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/renderer.rb:46:in > > > `render_template' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/renderer.rb:27:in > > > `render' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:100:in > > > `_render_template' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/streaming.rb:217:in > > > `_render_template' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:83:in > > > `render_to_body' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:32:in > > > `render_to_body' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/renderers.rb:37:in > > > `render_to_body' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/rendering.rb:25:in > > > `render' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:16:in > > > `render' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:44:in > > > `block (2 levels) in render' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/benchmark.rb:12:in > > > `block in ms' > > > /opt/rh/rh-ruby22/root/usr/share/ruby/benchmark.rb:303:in > `realtime' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/benchmark.rb:12:in > > > `ms' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:44:in > > > `block in render' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:87:in > > > `cleanup_view_runtime' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:25:in > > > `cleanup_view_runtime' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:43:in > > > `render' > > > /usr/share/foreman/app/controllers/unattended_controller.rb:224:in > > `safe_render' > > > /usr/share/foreman/app/controllers/unattended_controller.rb:79:in > > `render_template' > > > /usr/share/foreman/app/controllers/unattended_controller.rb:47:in > > `host_template' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:4:in > > > `send_action' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:198:in > > > `process_action' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:10:in > > > `process_action' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:20:in > > > `block in process_action' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in > > > `block (2 levels) in compile' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in > > > `block (2 levels) in around' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > > > `block (2 levels) in halting' > > > > > > /opt/theforeman/tfm/root/usr/share/gems/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in > > > `around' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in > > > `public_send' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in > > > `block in make_lambda' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > > > `block in halting' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > > > `block in around' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in > > > `block (2 levels) in around' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > > > `block (2 levels) in halting' > > > > > /usr/share/foreman/app/controllers/concerns/application_shared.rb:14:in > > `set_timezone' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in > > > `block in make_lambda' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > > > `block in halting' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > > > `block in around' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in > > > `block (2 levels) in around' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > > > `block (2 levels) in halting' > > > > /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in > > `clear_thread' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in > > > `block in make_lambda' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > > > `block in halting' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > > > `block in around' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in > > > `block (2 levels) in around' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in > > > `block (2 levels) in halting' > > > > > > /opt/theforeman/tfm/root/usr/share/gems/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in > > > `around' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in > > > `public_send' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in > > > `block in make_lambda' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in > > > `block in halting' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in > > > `block in around' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in > > > `call' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in > > > `__run_callbacks__' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in > > > `_run_process_action_callbacks' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in > > > `run_callbacks' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:19:in > > > `process_action' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rescue.rb:29:in > > > `process_action' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:32:in > > > `block in process_action' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in > > > `block in instrument' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in > > > `instrument' > > > > > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in > > > `instrument' > > > > > > /opt/rh/sclo-ror42/root/usr/share/ge