Solaris Install Issue: /unattended/finish 500 error

Greetings,

I'm not sure if I need to report this as a bug or not, and am looking for
guidance. My last several posts have been in regard to unattended Solaris
installs. I had previously stated that I am able to build Solaris 10 x86
servers, but I was partially wrong. The build process never completes.
The servers get their OS loaded - so I have the meat of it working, but
when they download their jumpstart finish script this shows up in Foreman
Logs…

Started GET "/unattended/finish" for 10.0.0.32 at 2013-08-23 12:39:52 -0400
Processing by UnattendedController#finish as /
Found builtdest2.example.com
Operation FAILED: Missing template unattended/finish, application/finish
with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :png,
:jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :mult
ipart_form, :url_encoded_form, :json, :pdf, :zip, :yml], :handlers=>[:erb,
:builder, :rabl]}. Searched in:

  • "/usr/share/foreman/app/views"
  • "/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.0.18/app/views"

Completed 500 Internal Server Error in 27ms

ArgumentError (There was no default layout for UnattendedController in
#<ActionView::PathSet:0x007f1cac6888a8
@paths=[/usr/share/foreman/app/views,
/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.0.18/app/
views]>):
app/controllers/application_controller.rb:329:in `generic_exception'

The same is produced when trying to spoof the finish URL by adding a
?spoof=<ip address> to the URL. I have safe_mode rendering turned off in
the settings. I'm running foreman 1.2.1-1 on Oracle Linux.

That sounds like there's no finish template associated with the Host - if
you go to the Templates tab on that Host, do you have a finish template
listed?

Interesting, I don't recall having to associate the finish script by
environment/hostgroup in the previous version…I did have it associated
with the Solaris OS, but it didn't start working until I put the
environment associations in place.

··· On Friday, August 23, 2013 1:44:26 PM UTC-4, Greg Sutcliffe wrote: > > That sounds like there's no finish template associated with the Host - if > you go to the Templates tab on that Host, do you have a finish template > listed? >

Sorry, also meant to say,

Thank you for the speedy reply Greg!

··· On Friday, August 23, 2013 2:23:25 PM UTC-4, Sean Alderman wrote: > > Interesting, I don't recall having to associate the finish script by > environment/hostgroup in the previous version...I did have it associated > with the Solaris OS, but it didn't start working until I put the > environment associations in place. > > On Friday, August 23, 2013 1:44:26 PM UTC-4, Greg Sutcliffe wrote: >> >> That sounds like there's no finish template associated with the Host - if >> you go to the Templates tab on that Host, do you have a finish template >> listed? >> >

If the finish template is associated with the OS and the OS has it
selected as the default template for type: finish, then no, you shouldn't
need to specify any combinations of env/hg.