Project

General

Custom queries

Profile

Actions

Bug #34909

closed

Not possible to import hosts from vmware

Added by Maximilian Schmitz almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Target version:
-
Fixed in Releases:
Found in Releases:

Description

Hi everyone,

we upgraded our Foreman installation from version 2.5.4 over 3.0.2 and 3.1.2 to 3.2.0 (Debian Buster).
Unfortunately, we are not able to import new hosts from a VMware resource anymore. As soon as you click on "Import as managed host" or "Import as unmanaged host" you get an error message

Oops, we're sorry but something went wrong undefined method `host_puppet_environment_field' for #<#<Class:0x000055c0b2314f20>:0x00007f18f4364ae8>

Similar to [[https://projects.theforeman.org/issues/33582]]

This is the output of foreman-rake:

2022-05-12T12:28:55 [I|app|649ed455] Started GET "/compute_resources/2-vcenter%20-%20UniMZ/vms/50251ee4-96bc-e6f7-8164-1a8a3e4f1973/import?type=managed" for 172.24.30.252 at 2022-05-12 12:28:55 +0200
2022-05-12T12:28:55 [I|app|649ed455] Processing by ComputeResourcesVmsController#import as HTML
2022-05-12T12:28:55 [I|app|649ed455]   Parameters: {"type"=>"managed", "compute_resource_id"=>"2-vcenter - UniMZ", "id"=>"50251ee4-96bc-e6f7-8164-1a8a3e4f1973"}
2022-05-12T12:28:55 [I|per|649ed455] Current user set to maximilian.schmitz (admin)
2022-05-12T12:28:55 [D|app|649ed455] Reading from compute resource cache: networks
2022-05-12T12:28:55 [I|app|649ed455]   Rendering compute_resources_vms/import.html.erb within layouts/application
2022-05-12T12:28:55 [I|app|649ed455]   Rendered hosts/_progress.html.erb (Duration: 2.1ms | Allocations: 5427)
2022-05-12T12:28:55 [I|app|649ed455]   Rendered vendor/ruby/2.5.0/gems/foreman_puppet-3.0.6/app/views/hosts/foreman_puppet/_form_main_tab_fields.html.erb (Duration: 427.0ms | Allocations: 103127)
2022-05-12T12:28:55 [I|app|649ed455]   Rendered hosts/_form.html.erb (Duration: 444.6ms | Allocations: 123966)
2022-05-12T12:28:55 [I|app|649ed455]   Rendered compute_resources_vms/import.html.erb within layouts/application (Duration: 448.5ms | Allocations: 129428)
2022-05-12T12:28:55 [W|app|649ed455] undefined method `host_puppet_environment_field' for #<#<Class:0x000055c0b2314f20>:0x00007f18fd772a28>
2022-05-12T12:28:55 [I|app|649ed455] Backtrace for 'undefined method `host_puppet_environment_field' for #<#<Class:0x000055c0b2314f20>:0x00007f18fd772a28>' error (ActionView::Template::Error): undefined method `host_puppet_environment_field' for #<#<Class:0x000055c0b2314f20>:0x00007f18fd772a28>
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_puppet-3.0.6/app/views/hosts/foreman_puppet/_form_main_tab_fields.html.erb:1:in `public_send'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_puppet-3.0.6/app/views/hosts/foreman_puppet/_form_main_tab_fields.html.erb:1:in `_edca6255a56a5c0e96bca97c5e0b272e'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/base.rb:274:in `_run'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:185:in `block in render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:182:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:385:in `instrument_render_template'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:183:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/partial_renderer.rb:357:in `block in render_partial'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `block in instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/partial_renderer.rb:346:in `render_partial'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/partial_renderer.rb:317:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/renderer.rb:65:in `render_partial_to_object'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/renderer.rb:53:in `render_partial'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/helpers/rendering_helper.rb:38:in `render'
 649ed455 | /usr/share/foreman/app/helpers/pagelets_helper.rb:43:in `render_pagelet'
 649ed455 | /usr/share/foreman/app/helpers/pagelets_helper.rb:16:in `block in render_pagelets_for'
 649ed455 | /usr/share/foreman/app/helpers/pagelets_helper.rb:15:in `each'
 649ed455 | /usr/share/foreman/app/helpers/pagelets_helper.rb:15:in `render_pagelets_for'
 649ed455 | /usr/share/foreman/app/views/hosts/_form.html.erb:80:in `block (2 levels) in _178c9bcc2e440c45295cd77e3da3d933'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/helpers/form_helper.rb:452:in `form_for'
 649ed455 | /usr/share/foreman/app/helpers/form_helper.rb:287:in `form_for'
 649ed455 | /usr/share/foreman/app/views/hosts/_form.html.erb:7:in `block in _178c9bcc2e440c45295cd77e3da3d933'
 649ed455 | /usr/share/foreman/app/models/taxonomy.rb:80:in `block (2 levels) in as_taxonomy'
 649ed455 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:195:in `as_location'
 649ed455 | /usr/share/foreman/app/models/taxonomy.rb:79:in `block in as_taxonomy'
 649ed455 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:154:in `as_org'
 649ed455 | /usr/share/foreman/app/models/taxonomy.rb:78:in `as_taxonomy'
 649ed455 | /usr/share/foreman/app/views/hosts/_form.html.erb:6:in `_178c9bcc2e440c45295cd77e3da3d933'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/base.rb:274:in `_run'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:185:in `block in render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:182:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:385:in `instrument_render_template'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:183:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/partial_renderer.rb:357:in `block in render_partial'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `block in instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/partial_renderer.rb:346:in `render_partial'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/partial_renderer.rb:317:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/renderer.rb:65:in `render_partial_to_object'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/renderer.rb:27:in `render_to_object'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/renderer.rb:22:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/helpers/rendering_helper.rb:34:in `block in render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/base.rb:304:in `in_rendering_context'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/helpers/rendering_helper.rb:30:in `render'
 649ed455 | /usr/share/foreman/app/views/compute_resources_vms/import.html.erb:3:in `_c9c0b1b440caba7198f344ac1c391852'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/base.rb:274:in `_run'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:185:in `block in render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:182:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:385:in `instrument_render_template'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:183:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/template_renderer.rb:58:in `block (2 levels) in render_template'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `block in instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/template_renderer.rb:57:in `block in render_template'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/template_renderer.rb:65:in `render_with_layout'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/template_renderer.rb:56:in `render_template'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/template_renderer.rb:13:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/rendering.rb:117:in `block in _render_template'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/base.rb:304:in `in_rendering_context'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/rendering.rb:116:in `_render_template'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/streaming.rb:218:in `_render_template'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/rendering.rb:103:in `render_to_body'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/renderers.rb:142:in `render_to_body'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/abstract_controller/rendering.rb:25:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/rendering.rb:36:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/core_ext/benchmark.rb:14:in `block in ms'
 649ed455 | /usr/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/core_ext/benchmark.rb:14:in `ms'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activerecord-6.0.3.7/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:43:in `render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/implicit_render.rb:35:in `default_render'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `tap'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/abstract_controller/base.rb:195:in `process_action'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/rendering.rb:30:in `process_action'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
 649ed455 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 649ed455 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 649ed455 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:139:in `run_callbacks'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/abstract_controller/callbacks.rb:41:in `process_action'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/rescue.rb:22:in `process_action'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `block in instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `instrument'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activerecord-6.0.3.7/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/abstract_controller/base.rb:136:in `process'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.7/lib/action_view/rendering.rb:39:in `process'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal.rb:190:in `dispatch'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal.rb:254:in `dispatch'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/journey/router.rb:49:in `block in serve'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/journey/router.rb:32:in `each'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/journey/router.rb:32:in `serve'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:834:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-dsl-2.4.0/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.20/lib/apipie/static_dispatcher.rb:66:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.20/lib/apipie/extractor/recorder.rb:137:in `call'
 649ed455 | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
 649ed455 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.20/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 649ed455 | /usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
 649ed455 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/cookies.rb:648:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:101:in `run_callbacks'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.7/lib/rails/rack/logger.rb:37:in `call_app'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.7/lib/rails/rack/logger.rb:28:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 649ed455 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/request_id.rb:27:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/executor.rb:14:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/secure_headers-6.3.3/lib/secure_headers/middleware.rb:11:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.7/lib/rails/engine.rb:527:in `call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.7/lib/rails/railtie.rb:190:in `public_send'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.7/lib/rails/railtie.rb:190:in `method_missing'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in `block in call'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `each'
 649ed455 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `call'
 649ed455 | /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
 649ed455 | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request'
 649ed455 | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
 649ed455 | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
 649ed455 | /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
 649ed455 | /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'
2022-05-12T12:28:55 [I|app|649ed455]   Rendering common/500.html.erb within layouts/application
2022-05-12T12:28:55 [I|app|649ed455]   Rendered common/500.html.erb within layouts/application (Duration: 4.0ms | Allocations: 5775)
2022-05-12T12:28:55 [I|app|649ed455]   Rendered layouts/_application_content.html.erb (Duration: 2.0ms | Allocations: 5385)
2022-05-12T12:28:55 [I|app|649ed455]   Rendering layouts/base.html.erb
2022-05-12T12:28:55 [I|app|649ed455]   Rendered layouts/base.html.erb (Duration: 3.1ms | Allocations: 7085)
2022-05-12T12:28:55 [I|app|649ed455] Completed 500 Internal Server Error in 810ms (Views: 12.4ms | ActiveRecord: 2.6ms | Allocations: 308431)

Foreman version: 3.2.0
Plugins: 
 - foreman-tasks 6.0.1
 - foreman_discovery 21.0.0
 - foreman_puppet 3.0.6
 - foreman_remote_execution 6.0.0
 - foreman_setup 8.0.1
 - foreman_templates 9.2.0

Thanks in advance for any help

Max


Related issues 4 (0 open4 closed)

Related to Puppet - Bug #33582: undefined method `host_puppet_environment_field' for #<#<Class:0x000000001f633ef8>:0x000000001b019288>ClosedOndřej EzrActions
Has duplicate Puppet - Bug #35405: Import VMs from Ovirt manage or unmanaged host fails with something went wrong undefined method `host_puppet_environment_field'DuplicateActions
Has duplicate Puppet - Bug #34534: undefined method `host_puppet_environment_field' for #<#<Class:0x000000000bca26e0>:0x00007f8c9a796cf0>ClosedActions
Has duplicate Puppet - Bug #35597: undefined method `host_puppet_environment_field' for #<#<Class:0x00000000177db740>:0x0000000013b6e348>ClosedActions
#1

Updated by Moritz Throne almost 3 years ago

  • Priority changed from Normal to High
#2

Updated by The Foreman Bot almost 3 years ago

  • Pull request https://github.com/theforeman/foreman_puppet/pull/291 added
#3

Updated by The Foreman Bot almost 3 years ago

  • Pull request https://github.com/theforeman/foreman_puppet/pull/294 added
#4

Updated by Ewoud Kohl van Wijngaarden over 2 years ago

  • Has duplicate Bug #35405: Import VMs from Ovirt manage or unmanaged host fails with something went wrong undefined method `host_puppet_environment_field' added
#5

Updated by Ewoud Kohl van Wijngaarden over 2 years ago

  • Has duplicate Bug #34534: undefined method `host_puppet_environment_field' for #<#<Class:0x000000000bca26e0>:0x00007f8c9a796cf0> added
#6

Updated by Ewoud Kohl van Wijngaarden over 2 years ago

  • Has duplicate Bug #35597: undefined method `host_puppet_environment_field' for #<#<Class:0x00000000177db740>:0x0000000013b6e348> added
#7

Updated by Ewoud Kohl van Wijngaarden over 2 years ago

  • Related to Bug #33582: undefined method `host_puppet_environment_field' for #<#<Class:0x000000001f633ef8>:0x000000001b019288> added
#8

Updated by Ewoud Kohl van Wijngaarden over 2 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF