Actions
Bug #35784
openChanging puppet master for multiple hosts
Status:
New
Priority:
Normal
Assignee:
-
Category:
Puppet integration
Target version:
-
Description
This is from https://community.theforeman.org/t/changing-puppet-master-for-multiple-hosts/30946
Problem:
When I select multiple hosts and click on action “Change Puppet Master”, all I get is the modal with the circling image. I can see in the firefox dev tools that it calls the URI /foreman_puppet/hosts/select_multiple_puppet_proxy and gets 500 error.
Expected outcome:
List of hosts to change puppet master.
Foreman and Proxy versions:
foreman-3.4.0-1.el8.noarch
katello-4.6.0-1.el8.noarch
rubygem-hammer_cli_foreman_puppet-0.0.6-1.fm3_4.el8.noarch
rubygem-foreman_puppet-4.0.1-1.fm3_4.el8.noarch
Distribution and version:
Alma 8.7
Other relevant data:
production.log:
2022-10-21T10:46:53 [I|app|816c2165] Processing by HostsController#select_multiple_puppet_proxy as HTML 2022-10-21T10:46:53 [I|app|816c2165] Parameters: {"host_ids"=>["16", "30", "21", "27", "19", "17", "24", "28", "20", "29", "15", "14", "25", "23", "22", "26", "18"]} 2022-10-21T10:46:53 [I|app|816c2165] Rendering hosts/select_multiple_puppet_proxy.html.erb within layouts/application 2022-10-21T10:46:53 [I|app|816c2165] Rendered hosts/_selected_hosts.html.erb (Duration: 10.2ms | Allocations: 8974) 2022-10-21T10:46:53 [I|app|816c2165] Rendered hosts/select_multiple_puppet_proxy.html.erb within layouts/application (Duration: 287.7ms | Allocations: 63452) 2022-10-21T10:46:53 [W|app|816c2165] undefined method `update_multiple_puppet_proxy_hosts_path' for #<#<Class:0x00005563e9546558>:0x00005563e92b94e8> 816c2165 | Did you mean? update_multiple_puppet_ca_proxy_hosts_path 816c2165 | update_multiple_puppet_ca_proxy_hosts_url 816c2165 | update_multiple_owner_hosts_path 816c2165 | update_multiple_power_state_hosts_path 816c2165 | update_multiple_hostgroup_hosts_path 816c2165 | update_multiple_parameters_hosts_path 816c2165 | update_multiple_location_hosts_path 2022-10-21T10:46:53 [I|app|816c2165] Backtrace for 'undefined method `update_multiple_puppet_proxy_hosts_path' for #<#<Class:0x00005563e9546558>:0x00005563e92b94e8> 816c2165 | Did you mean? update_multiple_puppet_ca_proxy_hosts_path 816c2165 | update_multiple_puppet_ca_proxy_hosts_url 816c2165 | update_multiple_owner_hosts_path 816c2165 | update_multiple_power_state_hosts_path 816c2165 | update_multiple_hostgroup_hosts_path 816c2165 | update_multiple_parameters_hosts_path 816c2165 | update_multiple_location_hosts_path' error (ActionView::Template::Error): undefined method `update_multiple_puppet_proxy_hosts_path' for #<#<Class:0x00005563e9546558>:0x00005563e92b94e8> 816c2165 | Did you mean? update_multiple_puppet_ca_proxy_hosts_path 816c2165 | update_multiple_puppet_ca_proxy_hosts_url 816c2165 | update_multiple_owner_hosts_path 816c2165 | update_multiple_power_state_hosts_path 816c2165 | update_multiple_hostgroup_hosts_path 816c2165 | update_multiple_parameters_hosts_path 816c2165 | update_multiple_location_hosts_path 816c2165 | /usr/share/foreman/app/views/hosts/select_multiple_puppet_proxy.html.erb:3:in `_52d85893b6881baad887f8f6224ec61c' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/base.rb:274:in `_run' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/template.rb:185:in `block in render' 816c2165 | /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/notifications.rb:182:in `instrument' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/template.rb:385:in `instrument_render_template' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/template.rb:183:in `render' 816c2165 | /usr/share/gems/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in `render' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/renderer/template_renderer.rb:58:in `block (2 levels) in render_template' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument' 816c2165 | /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/notifications.rb:180:in `block in instrument' 816c2165 | /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument' 816c2165 | /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/notifications.rb:180:in `instrument' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/renderer/template_renderer.rb:57:in `block in render_template' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/renderer/template_renderer.rb:65:in `render_with_layout' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/renderer/template_renderer.rb:56:in `render_template' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/renderer/template_renderer.rb:13:in `render' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/renderer/renderer.rb:29:in `render_to_object' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/rendering.rb:117:in `block in _render_template' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/base.rb:304:in `in_rendering_context' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/rendering.rb:116:in `_render_template' 816c2165 | /usr/share/gems/gems/actionpack-6.0.4.7/lib/action_controller/metal/streaming.rb:218:in `_render_template' 816c2165 | /usr/share/gems/gems/actionview-6.0.4.7/lib/action_view/rendering.rb:103:in `render_to_body' 816c2165 | /usr/share/gems/gems/actionpack-6.0.4.7/lib/action_controller/metal/rendering.rb:52:in `render_to_body' 816c2165 | /usr/share/gems/gems/actionpack-6.0.4.7/lib/action_controller/metal/renderers.rb:142:in `render_to_body' 816c2165 | /usr/share/gems/gems/actionpack-6.0.4.7/lib/abstract_controller/rendering.rb:25:in `render' 816c2165 | /usr/share/gems/gems/actionpack-6.0.4.7/lib/action_controller/metal/rendering.rb:36:in `render' 816c2165 | /usr/share/gems/gems/actionpack-6.0.4.7/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' 816c2165 | /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/core_ext/benchmark.rb:14:in `block in ms' 816c2165 | /usr/share/ruby/benchmark.rb:308:in `realtime'
Updated by Ewoud Kohl van Wijngaarden almost 2 years ago
- Category set to Puppet integration
Actions