Can't provision rancherOS after upgrading to Foreman 1.20

Problem:
After upgrading foreman from 1.19 to 1.20 i get the following error after trying to provision rancher os. Provisioning Debian is still working. No changes where made after the update.

  • Unable to render PXELinux template ‘PXE RancherOS’: wrong number of arguments (given 1, expected 2…3)
  • Fetch TFTP boot files for pxetest.container.domain.de task failed with the following error: wrong number of arguments (given 1, expected 2…3)

Expected outcome:
Enable vm build.

Foreman and Proxy versions:
1.20

Foreman and Proxy plugin versions:

Other relevant data:

2018-11-27T16:22:44 [I|app|] Started PATCH "/discovered_hosts/114" for 10.208.1.159 at 2018-11-27 16:22:44 +0100
2018-11-27T16:22:44 [I|app|32d2d] Processing by DiscoveredHostsController#update as */*
2018-11-27T16:22:44 [I|app|32d2d]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"iASGpUa9mMBd6txPvpV7Q9uhGkt0nhZvDoQJ4xg5xBbMHsttowkL/6txUpODBNoHqhJwtzN7CVRspNXbvdhGzA==", "host"=>{"name"=>"pxetest", "hostgroup_id"=>"", "environment_id"=>"1", "puppet_proxy_id"=>"1", "puppet_ca_proxy_id"=>"1", "ansible_role_ids"=>[""], "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "mac"=>"00:50:56:af:9c:db", "identifier"=>"ens192", "name"=>"pxetest", "domain_id"=>"1", "subnet_id"=>"1", "ip"=>"172.22.224.170", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "tag"=>"", "attached_to"=>"", "id"=>"155"}}, "architecture_id"=>"1", "operatingsystem_id"=>"4", "build"=>"1", "medium_id"=>"9", "ptable_id"=>"100", "pxe_loader"=>"PXELinux BIOS", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"1", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "id"=>"114"}
2018-11-27T16:22:44 [I|app|32d2d] Current user set to admin (admin)
2018-11-27T16:22:44 [W|app|32d2d] Unable to render PXELinux template 'PXE RancherOS': wrong number of arguments (given 1, expected 2..3)
ArgumentError: wrong number of arguments (given 1, expected 2..3)
/usr/share/foreman/app/models/operatingsystems/rancheros.rb:20:in `boot_files_uri'
/usr/share/foreman/lib/foreman/renderer/scope/variables/base.rb:101:in `pxe_config'
/usr/share/foreman/lib/foreman/renderer/scope/variables/base.rb:31:in `load_variables_base'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:20:in `block in load_variables'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:18:in `each'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:18:in `load_variables'
/usr/share/foreman/lib/foreman/renderer/scope/base.rb:27:in `initialize'
/usr/share/foreman/lib/foreman/renderer/scope/template.rb:9:in `initialize'
/usr/share/foreman/lib/foreman/renderer.rb:39:in `new'
/usr/share/foreman/lib/foreman/renderer.rb:39:in `get_scope'
/usr/share/foreman/app/models/template.rb:172:in `render'
/usr/share/foreman/app/models/host/base.rb:352:in `render_template'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:66:in `build_pxe_render'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:57:in `generate_pxe_template'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:82:in `setTFTP'
/usr/share/foreman/app/models/concerns/orchestration.rb:221:in `execute'
/usr/share/foreman/app/models/concerns/orchestration.rb:145:in `block in process'
/usr/share/foreman/app/models/concerns/orchestration.rb:137:in `each'
/usr/share/foreman/app/models/concerns/orchestration.rb:137:in `process'
/usr/share/foreman/app/models/concerns/orchestration.rb:44:in `around_save_orchestration'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:816:in `_run_save_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/callbacks.rb:342:in `create_or_update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/persistence.rb:275:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/validations.rb:46:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:310:in `block (2 levels) in save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `block in transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:212:in `transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:310:in `block in save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:325:in `rollback_active_record_state!'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:309:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/suppressor.rb:44:in `save'
/usr/share/foreman/app/models/concerns/foreman/sti.rb:26:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:81:in `block in perform_update'
/usr/share/foreman/app/models/taxonomy.rb:69:in `block in no_taxonomy_scope'
/usr/share/foreman/app/models/taxonomy.rb:76:in `block (2 levels) in as_taxonomy'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:179:in `as_location'
/usr/share/foreman/app/models/taxonomy.rb:75:in `block in as_taxonomy'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:142:in `as_org'
/usr/share/foreman/app/models/taxonomy.rb:74:in `as_taxonomy'
/usr/share/foreman/app/models/taxonomy.rb:68:in `no_taxonomy_scope'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:79:in `perform_update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:75:in `update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:194:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:134:in `process'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionview-5.2.1/lib/action_view/rendering.rb:32:in `process'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal.rb:191:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal.rb:252:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `each'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:840:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/static_dispatcher.rb:65:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/extractor/recorder.rb:137:in `call'
/usr/share/foreman/lib/middleware/telemetry.rb:9:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/tempfile_reaper.rb:15:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/etag.rb:25:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/conditional_get.rb:38:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/head.rb:12:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
/usr/share/foreman/lib/middleware/logging_context.rb:23:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:232:in `context'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:226:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/cookies.rb:670:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:98:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/rack/logger.rb:38:in `call_app'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/rack/logger.rb:28:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/method_override.rb:22:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/runtime.rb:22:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/sendfile.rb:111:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/secure_headers-6.0.0/lib/secure_headers/middleware.rb:13:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/engine.rb:524:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `public_send'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `method_missing'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:68:in `block in call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `each'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `call'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:160:in `accept_and_process_next_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
/usr/share/foreman/vendor/ruby/2.3.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2018-11-27T16:22:44 [I|app|32d2d] Skipping TFTP PXELinux configuration for pxetest.container.domain.de
2018-11-27T16:22:44 [I|app|32d2d] Skipping TFTP PXEGrub2 configuration for pxetest.container.domain.de
2018-11-27T16:22:44 [I|app|32d2d] Skipping TFTP PXEGrub configuration for pxetest.container.domain.de
2018-11-27T16:22:44 [I|app|32d2d] Skipping TFTP iPXE configuration for pxetest.container.domain.de
2018-11-27T16:22:44 [I|app|32d2d] Fetching required TFTP boot files for pxetest.container.domain.de
2018-11-27T16:22:44 [W|app|32d2d] Fetch TFTP boot files for pxetest.container.domain.de task failed with the following error: wrong number of arguments (given 1, expected 2..3)
ArgumentError: wrong number of arguments (given 1, expected 2..3)
/usr/share/foreman/app/models/operatingsystems/rancheros.rb:20:in `boot_files_uri'
/usr/share/foreman/app/models/operatingsystem.rb:199:in `pxe_files'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:111:in `setTFTPBootFiles'
/usr/share/foreman/app/models/concerns/orchestration.rb:222:in `execute'
/usr/share/foreman/app/models/concerns/orchestration.rb:145:in `block in process'
/usr/share/foreman/app/models/concerns/orchestration.rb:137:in `each'
/usr/share/foreman/app/models/concerns/orchestration.rb:137:in `process'
/usr/share/foreman/app/models/concerns/orchestration.rb:44:in `around_save_orchestration'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:816:in `_run_save_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/callbacks.rb:342:in `create_or_update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/persistence.rb:275:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/validations.rb:46:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:310:in `block (2 levels) in save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `block in transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:212:in `transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:310:in `block in save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:325:in `rollback_active_record_state!'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:309:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/suppressor.rb:44:in `save'
/usr/share/foreman/app/models/concerns/foreman/sti.rb:26:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:81:in `block in perform_update'
/usr/share/foreman/app/models/taxonomy.rb:69:in `block in no_taxonomy_scope'
/usr/share/foreman/app/models/taxonomy.rb:76:in `block (2 levels) in as_taxonomy'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:179:in `as_location'
/usr/share/foreman/app/models/taxonomy.rb:75:in `block in as_taxonomy'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:142:in `as_org'
/usr/share/foreman/app/models/taxonomy.rb:74:in `as_taxonomy'
/usr/share/foreman/app/models/taxonomy.rb:68:in `no_taxonomy_scope'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:79:in `perform_update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:75:in `update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:194:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:134:in `process'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionview-5.2.1/lib/action_view/rendering.rb:32:in `process'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal.rb:191:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal.rb:252:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `each'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:840:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/static_dispatcher.rb:65:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/extractor/recorder.rb:137:in `call'
/usr/share/foreman/lib/middleware/telemetry.rb:9:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/tempfile_reaper.rb:15:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/etag.rb:25:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/conditional_get.rb:38:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/head.rb:12:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
/usr/share/foreman/lib/middleware/logging_context.rb:23:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:232:in `context'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:226:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/cookies.rb:670:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:98:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/rack/logger.rb:38:in `call_app'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/rack/logger.rb:28:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/method_override.rb:22:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/runtime.rb:22:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/sendfile.rb:111:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/secure_headers-6.0.0/lib/secure_headers/middleware.rb:13:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/engine.rb:524:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `public_send'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `method_missing'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:68:in `block in call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `each'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `call'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:160:in `accept_and_process_next_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
/usr/share/foreman/vendor/ruby/2.3.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2018-11-27T16:22:44 [W|app|32d2d] Rolling back due to a problem: [#<Orchestration::Task:0x00561a8835e550 @name="Fetch TFTP boot files for pxetest.container.domain.de", @id="Fetch TFTP boot files for pxetest.container.domain.de", @status="failed", @priority=25, @action=[#<Nic::Managed id: 155, mac: "00:50:56:af:9c:db", ip: "172.22.224.170", type: "Nic::Managed", name: "pxetest.container.domain.de", host_id: 114, subnet_id: 1, domain_id: 1, attrs: {"netmask"=>"255.255.255.0", "mtu"=>1500, "network"=>"172.22.224.0", "lldp_neighbor_chassisid"=>"00:50:56:af:32:fd", "lldp_neighbor_sysname"=>"fdi", "speed"=>"10000", "duplex"=>"full", "port"=>"Twisted Pair", "auto_negotiation"=>"false"}, created_at: "2018-11-27 15:08:49", updated_at: "2018-11-27 15:08:50", provider: nil, username: nil, password: nil, virtual: false, link: true, identifier: "ens192", tag: "", attached_to: "", managed: true, mode: "balance-rr", attached_devices: "", bond_options: "", primary: true, provision: true, compute_attributes: {}, ip6: "", subnet6_id: nil, execution: true>, :setTFTPBootFiles], @created=1543332164.3883824, @timestamp=2018-11-27 15:22:44 UTC>]
2018-11-27T16:22:44 [I|app|32d2d] Delete the TFTP configuration for pxetest.container.domain.de
2018-11-27T16:22:44 [I|app|32d2d] Delete the TFTP configuration for pxetest.container.domain.de
2018-11-27T16:22:44 [I|app|32d2d] Delete the TFTP configuration for pxetest.container.domain.de
2018-11-27T16:22:44 [I|app|32d2d] Delete the TFTP configuration for pxetest.container.domain.de
2018-11-27T16:22:44 [I|app|32d2d] Processed 4 tasks from queue 'Host::Managed Main', completed 0/5
2018-11-27T16:22:44 [E|app|32d2d] Task 'Deploy TFTP PXELinux config for pxetest.container.domain.de' *rollbacked*
2018-11-27T16:22:44 [E|app|32d2d] Task 'Deploy TFTP PXEGrub2 config for pxetest.container.domain.de' *rollbacked*
2018-11-27T16:22:44 [E|app|32d2d] Task 'Deploy TFTP PXEGrub config for pxetest.container.domain.de' *rollbacked*
2018-11-27T16:22:44 [E|app|32d2d] Task 'Deploy TFTP iPXE config for pxetest.container.domain.de' *rollbacked*
2018-11-27T16:22:44 [E|app|32d2d] Task 'Fetch TFTP boot files for pxetest.container.domain.de' *failed*
2018-11-27T16:22:44 [E|app|32d2d] Failed to save: Unable to render PXELinux template 'PXE RancherOS': wrong number of arguments (given 1, expected 2..3), Fetch TFTP boot files for pxetest.container.domain.de task failed with the following error: wrong number of arguments (given 1, expected 2..3)
2018-11-27T16:22:44 [I|app|32d2d]   Rendering vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/views/discovered_hosts/edit.html.erb within layouts/application
2018-11-27T16:22:44 [I|app|32d2d]   Rendered hosts/_progress.html.erb (0.3ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered hosts/puppet/_main_tab_fields.html.erb (1.8ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered collection of puppetclasses/_selectedClasses.html.erb [0 times] (0.0ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered collection of puppetclasses/_classes_in_groups.html.erb [0 times] (0.0ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered puppetclasses/_classes.html.erb (0.2ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered puppetclasses/_class_selection.html.erb (8.9ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered hosts/puppet/_puppet_classes_tab.html.erb (9.3ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered nic/_base_form.html.erb (11.2ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered nic/_virtual_form.html.erb (1.1ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered nic/_provider_specific_form.html.erb (0.2ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered nic/manageds/_managed.html.erb (13.9ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered nic/_base_form.html.erb (9.7ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered nic/_virtual_form.html.erb (1.0ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered nic/_provider_specific_form.html.erb (0.2ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered nic/manageds/_managed.html.erb (12.4ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered hosts/_interfaces.html.erb (27.9ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered common/os_selection/_architecture.html.erb (3.8ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered common/os_selection/_pxe_loader.html.erb (0.8ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered common/os_selection/_operatingsystem.html.erb (6.6ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered hosts/provision_method/build/_form.html.erb (7.8ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered hosts/provision_method/image/_form.html.erb (0.2ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered hosts/_operating_system.html.erb (14.8ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered hosts/_unattended.html.erb (15.1ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered collection of puppetclasses/_class_parameters.html.erb [0 times] (0.0ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered puppetclasses/_classes_parameters.html.erb (4.2ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered common_parameters/_inherited_parameters.html.erb (0.2ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered common_parameters/_parameter.html.erb (1.0ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered common_parameters/_parameters.html.erb (2.9ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered hosts/_form.html.erb (89.5ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/views/discovered_hosts/edit.html.erb within layouts/application (90.2ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendered layouts/_application_content.html.erb (0.9ms)
2018-11-27T16:22:44 [I|app|32d2d]   Rendering layouts/base.html.erb
2018-11-27T16:22:44 [I|app|32d2d]   Rendered layouts/base.html.erb (10.0ms)
2018-11-27T16:22:44 [I|app|32d2d] Completed 200 OK in 350ms (Views: 93.9ms | ActiveRecord: 26.3ms)
2018-11-27T16:22:44 [I|app|] Started GET "/tasks/572f190e-7464-421a-a930-34746b441a41" for 10.208.1.159 at 2018-11-27 16:22:44 +0100
2018-11-27T16:22:44 [I|app|4a808] Processing by TasksController#show as */*
2018-11-27T16:22:44 [I|app|4a808]   Parameters: {"id"=>"572f190e-7464-421a-a930-34746b441a41"}
2018-11-27T16:22:44 [I|app|4a808] Current user set to admin (admin)
2018-11-27T16:22:44 [I|app|4a808]   Rendered tasks/_list.html.erb (0.5ms)
2018-11-27T16:22:44 [I|app|4a808] Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 0.7ms)
2018-11-27T16:22:45 [I|app|] Started GET "/tasks/572f190e-7464-421a-a930-34746b441a41" for 10.208.1.159 at 2018-11-27 16:22:45 +0100

Seems to be a update issue. Any suggestions?

can you share the contents of the PXE RancherOS template? Is this a custom template you created? I think the default RancherOS pxe template shipped with Foreman is called RancherOS PXELinux - so perhaps there is something in the template itself that needs fixing?

Actually, scratch that, looks like it’s indeed a bug. The method signature was changed in https://github.com/theforeman/foreman/pull/5244 but the rancher os one wasn’t changed accordingly. Can you open an issue on projects.theforeman.org please?

Sure, should i like 5244?

I’ll take care of connecting it to the original issue. as a workaround, you can comment out lines https://github.com/theforeman/foreman/blob/1.20-stable/app/models/operatingsystems/rancheros.rb#L20-L22 on your system (under /usr/share/foreman) and restart the server, that should fix it until a new version is released with the fix.

1 Like

I commented out

  def boot_files_uri(medium, architecture, host = nil)
    super(medium, architecture, host)
  end

and restarted foreman/foreman-proxy.
Still the same error.

that’s odd… can you share the stack trace again please?

Looks like:

2018-11-28T10:18:18 [I|app|] Started PATCH "/discovered_hosts/114" for 10.208.1.159 at 2018-11-28 10:18:18 +0100
2018-11-28T10:18:18 [I|app|59383] Processing by DiscoveredHostsController#update as */*
2018-11-28T10:18:18 [I|app|59383]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"R+59MFdoqYxktXlHXv1FBLqsQgungQUYB+wQclCEI8/i/4ist/DRE4EdBL50xDBYVqE0N10KIdqpFlFWJBckqA==", "host"=>{"name"=>"mac005056af9cdb", "hostgroup_id"=>"", "environment_id"=>"", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "ansible_role_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "mac"=>"00:50:56:af:9c:db", "identifier"=>"ens192", "name"=>"mac005056af9cdb", "domain_id"=>"1", "subnet_id"=>"1", "ip"=>"172.22.224.170", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "tag"=>"", "attached_to"=>"", "id"=>"155"}}, "architecture_id"=>"1", "operatingsystem_id"=>"4", "build"=>"1", "medium_id"=>"9", "ptable_id"=>"100", "pxe_loader"=>"None", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"1", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "id"=>"114"}
2018-11-28T10:18:18 [I|app|59383] Current user set to admin (admin)
2018-11-28T10:18:18 [W|app|59383] Unable to render PXELinux template 'PXE RancherOS': wrong number of arguments (given 1, expected 2..3)
ArgumentError: wrong number of arguments (given 1, expected 2..3)
/usr/share/foreman/app/models/operatingsystems/rancheros.rb:20:in `boot_files_uri'
/usr/share/foreman/lib/foreman/renderer/scope/variables/base.rb:101:in `pxe_config'
/usr/share/foreman/lib/foreman/renderer/scope/variables/base.rb:31:in `load_variables_base'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:20:in `block in load_variables'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:18:in `each'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:18:in `load_variables'
/usr/share/foreman/lib/foreman/renderer/scope/base.rb:27:in `initialize'
/usr/share/foreman/lib/foreman/renderer/scope/template.rb:9:in `initialize'
/usr/share/foreman/lib/foreman/renderer.rb:39:in `new'
/usr/share/foreman/lib/foreman/renderer.rb:39:in `get_scope'
/usr/share/foreman/app/models/template.rb:172:in `render'
/usr/share/foreman/app/models/host/base.rb:352:in `render_template'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:66:in `build_pxe_render'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:57:in `generate_pxe_template'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:82:in `setTFTP'
/usr/share/foreman/app/models/concerns/orchestration.rb:221:in `execute'
/usr/share/foreman/app/models/concerns/orchestration.rb:145:in `block in process'
/usr/share/foreman/app/models/concerns/orchestration.rb:137:in `each'
/usr/share/foreman/app/models/concerns/orchestration.rb:137:in `process'
/usr/share/foreman/app/models/concerns/orchestration.rb:44:in `around_save_orchestration'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:816:in `_run_save_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/callbacks.rb:342:in `create_or_update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/persistence.rb:275:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/validations.rb:46:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:310:in `block (2 levels) in save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `block in transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:212:in `transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:310:in `block in save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:325:in `rollback_active_record_state!'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:309:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/suppressor.rb:44:in `save'
/usr/share/foreman/app/models/concerns/foreman/sti.rb:26:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:81:in `block in perform_update'
/usr/share/foreman/app/models/taxonomy.rb:69:in `block in no_taxonomy_scope'
/usr/share/foreman/app/models/taxonomy.rb:76:in `block (2 levels) in as_taxonomy'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:179:in `as_location'
/usr/share/foreman/app/models/taxonomy.rb:75:in `block in as_taxonomy'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:142:in `as_org'
/usr/share/foreman/app/models/taxonomy.rb:74:in `as_taxonomy'
/usr/share/foreman/app/models/taxonomy.rb:68:in `no_taxonomy_scope'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:79:in `perform_update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:75:in `update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:194:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:134:in `process'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionview-5.2.1/lib/action_view/rendering.rb:32:in `process'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal.rb:191:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal.rb:252:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `each'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:840:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/static_dispatcher.rb:65:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/extractor/recorder.rb:137:in `call'
/usr/share/foreman/lib/middleware/telemetry.rb:9:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/tempfile_reaper.rb:15:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/etag.rb:25:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/conditional_get.rb:38:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/head.rb:12:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
/usr/share/foreman/lib/middleware/logging_context.rb:23:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:232:in `context'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:226:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/cookies.rb:670:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:98:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/rack/logger.rb:38:in `call_app'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/rack/logger.rb:28:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/method_override.rb:22:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/runtime.rb:22:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/sendfile.rb:111:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/secure_headers-6.0.0/lib/secure_headers/middleware.rb:13:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/engine.rb:524:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `public_send'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `method_missing'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:68:in `block in call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `each'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `call'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:160:in `accept_and_process_next_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
/usr/share/foreman/vendor/ruby/2.3.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2018-11-28T10:18:18 [I|app|59383] Skipping TFTP PXELinux configuration for mac005056af9cdb.container.domain.de
2018-11-28T10:18:18 [I|app|59383] Skipping TFTP PXEGrub2 configuration for mac005056af9cdb.container.domain.de
2018-11-28T10:18:18 [I|app|59383] Skipping TFTP PXEGrub configuration for mac005056af9cdb.container.domain.de
2018-11-28T10:18:18 [I|app|59383] Skipping TFTP iPXE configuration for mac005056af9cdb.container.domain.de
2018-11-28T10:18:18 [I|app|59383] Fetching required TFTP boot files for mac005056af9cdb.container.domain.de
2018-11-28T10:18:18 [W|app|59383] Fetch TFTP boot files for mac005056af9cdb.container.domain.de task failed with the following error: wrong number of arguments (given 1, expected 2..3)
ArgumentError: wrong number of arguments (given 1, expected 2..3)
/usr/share/foreman/app/models/operatingsystems/rancheros.rb:20:in `boot_files_uri'
/usr/share/foreman/app/models/operatingsystem.rb:199:in `pxe_files'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:111:in `setTFTPBootFiles'
/usr/share/foreman/app/models/concerns/orchestration.rb:222:in `execute'
/usr/share/foreman/app/models/concerns/orchestration.rb:145:in `block in process'
/usr/share/foreman/app/models/concerns/orchestration.rb:137:in `each'
/usr/share/foreman/app/models/concerns/orchestration.rb:137:in `process'
/usr/share/foreman/app/models/concerns/orchestration.rb:44:in `around_save_orchestration'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:816:in `_run_save_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/callbacks.rb:342:in `create_or_update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/persistence.rb:275:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/validations.rb:46:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:310:in `block (2 levels) in save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `block in transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:212:in `transaction'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:310:in `block in save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:325:in `rollback_active_record_state!'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/transactions.rb:309:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/suppressor.rb:44:in `save'
/usr/share/foreman/app/models/concerns/foreman/sti.rb:26:in `save'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:81:in `block in perform_update'
/usr/share/foreman/app/models/taxonomy.rb:69:in `block in no_taxonomy_scope'
/usr/share/foreman/app/models/taxonomy.rb:76:in `block (2 levels) in as_taxonomy'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:179:in `as_location'
/usr/share/foreman/app/models/taxonomy.rb:75:in `block in as_taxonomy'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:142:in `as_org'
/usr/share/foreman/app/models/taxonomy.rb:74:in `as_taxonomy'
/usr/share/foreman/app/models/taxonomy.rb:68:in `no_taxonomy_scope'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:79:in `perform_update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/controllers/discovered_hosts_controller.rb:75:in `update'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:194:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:134:in `process'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionview-5.2.1/lib/action_view/rendering.rb:32:in `process'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal.rb:191:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_controller/metal.rb:252:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `each'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `serve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:840:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/static_dispatcher.rb:65:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/extractor/recorder.rb:137:in `call'
/usr/share/foreman/lib/middleware/telemetry.rb:9:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.14/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/tempfile_reaper.rb:15:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/etag.rb:25:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/conditional_get.rb:38:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/head.rb:12:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
/usr/share/foreman/lib/middleware/logging_context.rb:23:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:232:in `context'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:226:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/cookies.rb:670:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:98:in `run_callbacks'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/rack/logger.rb:38:in `call_app'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/rack/logger.rb:28:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/method_override.rb:22:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/runtime.rb:22:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/sendfile.rb:111:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/secure_headers-6.0.0/lib/secure_headers/middleware.rb:13:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/engine.rb:524:in `call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `public_send'
/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `method_missing'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:68:in `block in call'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `each'
/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `call'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:160:in `accept_and_process_next_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
/usr/share/foreman/vendor/ruby/2.3.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2018-11-28T10:18:18 [W|app|59383] Rolling back due to a problem: [#<Orchestration::Task:0x00556e78bfd998 @name="Fetch TFTP boot files for mac005056af9cdb.container.domain.de", @id="Fetch TFTP boot files for mac005056af9cdb.container.domain.de", @status="failed", @priority=25, @action=[#<Nic::Managed id: 155, mac: "00:50:56:af:9c:db", ip: "172.22.224.170", type: "Nic::Managed", name: "mac005056af9cdb.container.domain.de", host_id: 114, subnet_id: 1, domain_id: 1, attrs: {"netmask"=>"255.255.255.0", "mtu"=>1500, "network"=>"172.22.224.0", "lldp_neighbor_chassisid"=>"00:50:56:af:32:fd", "lldp_neighbor_sysname"=>"fdi", "speed"=>"10000", "duplex"=>"full", "port"=>"Twisted Pair", "auto_negotiation"=>"false"}, created_at: "2018-11-27 15:08:49", updated_at: "2018-11-27 15:08:50", provider: nil, username: nil, password: nil, virtual: false, link: true, identifier: "ens192", tag: "", attached_to: "", managed: true, mode: "balance-rr", attached_devices: "", bond_options: "", primary: true, provision: true, compute_attributes: {}, ip6: "", subnet6_id: nil, execution: true>, :setTFTPBootFiles], @created=1543396698.7309637, @timestamp=2018-11-28 09:18:18 UTC>]
2018-11-28T10:18:18 [I|app|59383] Delete the TFTP configuration for mac005056af9cdb.container.domain.de
2018-11-28T10:18:18 [I|app|59383] Delete the TFTP configuration for mac005056af9cdb.container.domain.de
2018-11-28T10:18:18 [I|app|59383] Delete the TFTP configuration for mac005056af9cdb.container.domain.de
2018-11-28T10:18:18 [I|app|59383] Delete the TFTP configuration for mac005056af9cdb.container.domain.de
2018-11-28T10:18:18 [I|app|59383] Processed 4 tasks from queue 'Host::Managed Main', completed 0/5
2018-11-28T10:18:18 [E|app|59383] Task 'Deploy TFTP PXELinux config for mac005056af9cdb.container.domain.de' *rollbacked*
2018-11-28T10:18:18 [E|app|59383] Task 'Deploy TFTP PXEGrub2 config for mac005056af9cdb.container.domain.de' *rollbacked*
2018-11-28T10:18:18 [E|app|59383] Task 'Deploy TFTP PXEGrub config for mac005056af9cdb.container.domain.de' *rollbacked*
2018-11-28T10:18:18 [E|app|59383] Task 'Deploy TFTP iPXE config for mac005056af9cdb.container.domain.de' *rollbacked*
2018-11-28T10:18:18 [E|app|59383] Task 'Fetch TFTP boot files for mac005056af9cdb.container.domain.de' *failed*
2018-11-28T10:18:18 [E|app|59383] Failed to save: Unable to render PXELinux template 'PXE RancherOS': wrong number of arguments (given 1, expected 2..3), Fetch TFTP boot files for mac005056af9cdb.container.domain.de task failed with the following error: wrong number of arguments (given 1, expected 2..3)
2018-11-28T10:18:18 [I|app|59383]   Rendering vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/views/discovered_hosts/edit.html.erb within layouts/application
2018-11-28T10:18:18 [I|app|59383]   Rendered hosts/_progress.html.erb (0.2ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered hosts/puppet/_main_tab_fields.html.erb (1.8ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered hosts/puppet/_puppet_classes_tab.html.erb (0.3ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered nic/_base_form.html.erb (12.8ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered nic/_virtual_form.html.erb (1.1ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered nic/_provider_specific_form.html.erb (0.2ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered nic/manageds/_managed.html.erb (15.6ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered nic/_base_form.html.erb (10.8ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered nic/_virtual_form.html.erb (1.1ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered nic/_provider_specific_form.html.erb (0.1ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered nic/manageds/_managed.html.erb (13.5ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered hosts/_interfaces.html.erb (30.9ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered common/os_selection/_architecture.html.erb (3.9ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered common/os_selection/_pxe_loader.html.erb (0.8ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered common/os_selection/_operatingsystem.html.erb (7.0ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered hosts/provision_method/build/_form.html.erb (8.2ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered hosts/provision_method/image/_form.html.erb (0.2ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered hosts/_operating_system.html.erb (15.5ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered hosts/_unattended.html.erb (15.9ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered collection of puppetclasses/_class_parameters.html.erb [0 times] (0.0ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered puppetclasses/_classes_parameters.html.erb (6.2ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered common_parameters/_inherited_parameters.html.erb (0.2ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered common_parameters/_parameter.html.erb (1.1ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered common_parameters/_parameters.html.erb (3.1ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered hosts/_form.html.erb (88.2ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered vendor/ruby/2.3.0/gems/foreman_discovery-14.0.0/app/views/discovered_hosts/edit.html.erb within layouts/application (88.7ms)
2018-11-28T10:18:18 [I|app|59383]   Rendered layouts/_application_content.html.erb (0.7ms)
2018-11-28T10:18:18 [I|app|59383]   Rendering layouts/base.html.erb
2018-11-28T10:18:18 [I|app|59383]   Rendered layouts/base.html.erb (8.4ms)
2018-11-28T10:18:18 [I|app|59383] Completed 200 OK in 294ms (Views: 91.0ms | ActiveRecord: 22.8ms)
2018-11-28T10:18:18 [I|app|] Started GET "/tasks/4acc8fc9-1ee8-4d3a-bd80-0e4be7b5bffd" for 10.208.1.159 at 2018-11-28 10:18:18 +0100
2018-11-28T10:18:18 [I|app|a0202] Processing by TasksController#show as */*
2018-11-28T10:18:18 [I|app|a0202]   Parameters: {"id"=>"4acc8fc9-1ee8-4d3a-bd80-0e4be7b5bffd"}
2018-11-28T10:18:18 [I|app|a0202] Current user set to admin (admin)
2018-11-28T10:18:18 [I|app|a0202]   Rendered tasks/_list.html.erb (0.3ms)
2018-11-28T10:18:18 [I|app|a0202] Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.5ms)
2018-11-28T10:18:20 [I|app|] Started GET "/tasks/4acc8fc9-1ee8-4d3a-bd80-0e4be7b5bffd" for 10.208.1.159 at 2018-11-28 10:18:20 +0100
2018-11-28T10:18:20 [I|app|c2f93] Processing by TasksController#show as */*
2018-11-28T10:18:20 [I|app|c2f93]   Parameters: {"id"=>"4acc8fc9-1ee8-4d3a-bd80-0e4be7b5bffd"}
2018-11-28T10:18:20 [I|app|c2f93] Current user set to admin (admin)
2018-11-28T10:18:20 [I|app|c2f93]   Rendered tasks/_list.html.erb (0.3ms)
2018-11-28T10:18:20 [I|app|c2f93] Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 1.0ms)

Can’t the any changes

Wow. ffs. Restarting apache done it…
So should i open a bugreport anymore?

yes please :slight_smile:

https://projects.theforeman.org/issues/25567

Thanks for ur help!

1 Like

Quick question, is this error caused by the same issue?
There was an error rendering the Windows PXE template: undefined method `medium_uri’ for nil:NilClass

On all Windowstemplates the same error

might be related to the same change, but please open an issue for that one as well so we can investigate :slight_smile: