Is the provisioning working actually?

Hi,

When I follow the provisioning wizard, after the command to run with the foreman-install I cannot get to step 4. Is this normal?

The error output:

root@foreman:/var/lib/foreman/bootdisk#  foreman-rake errors:fetch_log request_id=d772b3b0
2021-03-01T13:59:35 [I|app|d772b3b0] Started POST "/foreman_setup/provisioners/2/step4" for 127.0.0.1 at 2021-03-01 13:59:35 +0100
2021-03-01T13:59:35 [I|app|d772b3b0] Processing by ForemanSetup::ProvisionersController#step4 as HTML
2021-03-01T13:59:35 [I|app|d772b3b0]   Parameters: {"authenticity_token"=>"5kLfPOPNKCTD5CKg64e7TJpTE5T36cl5BGiHM48SLQcuD967PRyHc/LcnM2Lc9R0wVabHj+/nfH8sg4BY7sYFg==", "id"=>"2"}
2021-03-01T13:59:36 [I|aud|d772b3b0] Subnet (6) update event on dns_id , 1
2021-03-01T13:59:36 [I|aud|d772b3b0] Subnet (6) update event on dhcp_id , 1
2021-03-01T13:59:36 [I|aud|d772b3b0] Subnet (6) update event on tftp_id , 1
2021-03-01T13:59:36 [W|app|d772b3b0] wrong number of arguments (given 1, expected 0)
2021-03-01T13:59:36 [I|app|d772b3b0] Backtrace for 'wrong number of arguments (given 1, expected 0)' error (ArgumentError): wrong number of arguments (given 1, expected 0)
 d772b3b0 | /usr/share/foreman/app/models/provisioning_template.rb:153:in `build_pxe_default'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_setup-6.0.0/app/controllers/foreman_setup/provisioners_controller.rb:99:in `step4'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/abstract_controller/base.rb:195:in `process_action'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_controller/metal/rendering.rb:30:in `process_action'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
 d772b3b0 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 d772b3b0 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 d772b3b0 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/callbacks.rb:139:in `run_callbacks'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/abstract_controller/callbacks.rb:41:in `process_action'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_controller/metal/rescue.rb:22:in `process_action'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/notifications.rb:180:in `block in instrument'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/notifications.rb:180:in `instrument'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activerecord-6.0.3.5/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/abstract_controller/base.rb:136:in `process'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.5/lib/action_view/rendering.rb:39:in `process'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_controller/metal.rb:190:in `dispatch'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_controller/metal.rb:254:in `dispatch'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/journey/router.rb:49:in `block in serve'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/journey/router.rb:32:in `each'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/journey/router.rb:32:in `serve'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/routing/route_set.rb:834:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-dsl-2.3.0/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/static_dispatcher.rb:66:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/extractor/recorder.rb:137:in `call'
 d772b3b0 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 d772b3b0 | /usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:40:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
 d772b3b0 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/middleware/cookies.rb:648:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/callbacks.rb:101:in `run_callbacks'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.5/lib/rails/rack/logger.rb:37:in `call_app'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.5/lib/rails/rack/logger.rb:28:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 d772b3b0 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/middleware/request_id.rb:27:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.5/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/middleware/executor.rb:14:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/middleware/static.rb:126:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.5/lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/secure_headers-6.3.2/lib/secure_headers/middleware.rb:11:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.5/lib/rails/engine.rb:527:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.5/lib/rails/railtie.rb:190:in `public_send'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.5/lib/rails/railtie.rb:190:in `method_missing'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in `block in call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `each'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-5.2.1/lib/puma/configuration.rb:247:in `call'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-5.2.1/lib/puma/request.rb:76:in `block in handle_request'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-5.2.1/lib/puma/thread_pool.rb:337:in `with_force_shutdown'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-5.2.1/lib/puma/request.rb:75:in `handle_request'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-5.2.1/lib/puma/server.rb:431:in `process_client'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-5.2.1/lib/puma/thread_pool.rb:145:in `block in spawn_thread'
 d772b3b0 | /usr/share/foreman/vendor/ruby/2.5.0/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2021-03-01T13:59:36 [I|app|d772b3b0]   Rendering common/500.html.erb within layouts/application
2021-03-01T13:59:36 [I|app|d772b3b0]   Rendered common/500.html.erb within layouts/application (Duration: 7.7ms | Allocations: 6969)
2021-03-01T13:59:36 [I|app|d772b3b0]   Rendered layouts/_application_content.html.erb (Duration: 2.8ms | Allocations: 5888)
2021-03-01T13:59:36 [I|app|d772b3b0]   Rendering layouts/base.html.erb
2021-03-01T13:59:36 [I|app|d772b3b0]   Rendered layouts/base.html.erb (Duration: 5.4ms | Allocations: 7410)
2021-03-01T13:59:36 [I|app|d772b3b0] Completed 500 Internal Server Error in 553ms (Views: 20.0ms | ActiveRecord: 28.7ms | Allocations: 91277)

Foreman version: 2.4.0-rc2
Plugins:

  • foreman-tasks 3.0.3
  • foreman_ansible 6.1.1
  • foreman_bootdisk 17.0.2
  • foreman_chef 0.10.0
  • foreman_dhcp_browser 0.0.8
  • foreman_discovery 16.3.4
  • foreman_monitoring 2.1.0
  • foreman_remote_execution 4.2.2
  • foreman_setup 6.0.0

Provisioning works just fine, this plugin is often broken. It aims to help with the initial setup, no one is actively maintaining it. Here are docs with all you need:

https://docs.theforeman.org/nightly/Provisioning_Guide/index-foreman-el.html

I propose to remove this plugin, we don’t test it. Running an installer and creating a subnet is not getting users anywhere, they need to understand what is going on and read the documentation.
But I think it will end up as usual - we fix this and it will work for another two major versions until it breaks.

@lzap I am learning a lot of this foreman adventure :slight_smile:

What version would you advise to install to have the best working system? (2.4 or a lower version)

Any version will do, this setup plugin is broken tho. Just follow our docs to setup provisioning. It’s couple of clicks.