Actions
Bug #940
closedError trying to set a subnet on a host
Description
Getting the following error trying to set a subnet on a host. Using 0.3rc2 but happened on 0.2 as well.
Processing HostsController#update (for 161.210.45.73 at 2011-05-24 13:52:32) [PUT] Parameters: {"commit"=>"Submit", "action"=>"update", "_method"=>"put", "authenticity_token"=>"rqu16sU+q4ArO97tXF2SYTFPC1OftXKN9gi9J6Gq7/0=", "id"=>"ap p02.dmacc.net", "controller"=>"hosts", "host"=>{"comment"=>"", "serial"=>"", "architecture_id"=>"1", "subnet_id"=>"1", "managed"=>"t", "name"=>"app02", "puppetmaster_name"=>"puppet.dmacc.net", "mac"=>"00:50:56:95:6d:f0", "domain_id"=>"1", "enabled"=>"1", "root_pass"=>"[FILTERED]", "medium_id"=>"5", "hos tgroup_id"=>"", "is_owned_by"=>"1-Users", "ptable_id"=>"1", "ip"=>"161.210.221.101", "environment_id"=>"1", "model_id"=>"", "disk"=>"", "puppetclass_ids"=>[""], "operatingsystem_id"=>"2"}} Add the TFTP configuration for app02.dmacc.net SyntaxError (compile error (erb):13: syntax error, unexpected ';' ; for profile in @profiles -; _erbout.concat "\nLABEL " ^ (erb):16: syntax error, unexpected ';' ...eratingsystem.is_a?(Redhat) -; _erbout.concat "\n append... ^ (erb):18: syntax error, unexpected kELSE, expecting $end ; else -; _erbout.concat "\n append initrd=" ^): (erb):18:in `generate_pxe_template' app/models/orchestration/tftp.rb:84:in `generate_pxe_template' app/models/orchestration/tftp.rb:33:in `setTFTP' app/models/orchestration.rb:129:in `send' app/models/orchestration.rb:129:in `execute' app/models/orchestration.rb:85:in `process' app/models/orchestration.rb:80:in `each' app/models/orchestration.rb:80:in `process' app/models/orchestration.rb:31:in `on_save' app/controllers/hosts_controller.rb:101:in `update' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' Rendering /usr/share/foreman/public/500.html (500 Internal Server Error)
Actions