Error on editing proxmox associated host

Problem:

I have a clean install of Foreman 3.11 running on AlmaLinux 9.4 and have added the plugin for proxmox. When selecting the edit button for a host that has been installed and is associated with a proxmox compute resource an error is returned:

Oops, we’re sorry but something went wrong SSL_read: unexpected eof while reading (OpenSSL::SSL::SSLError)

I see this issue was highlighted as part of this topic.

Just thought it was worth highlighting this issue again on the latest stable version of foreman.

Expected outcome:

Can edit the foreman host.

Foreman and Proxy versions:

Foreman version: 3.11.0

Foreman and Proxy plugin versions:

Foreman version: 3.11.0
Plugins:

  • foreman-tasks 9.1.1
  • foreman_ansible 14.0.0
  • foreman_discovery 24.0.1
  • foreman_fog_proxmox 0.15.1
  • foreman_openscap 8.0.2
  • foreman_remote_execution 13.1.0
  • katello 4.13.0

Distribution and version:

AlmaLinux 9.4

Other relevant data:

Foreman version: 3.11.0
Plugins:
 - foreman-tasks 9.1.1
 - foreman_ansible 14.0.0
 - foreman_discovery 24.0.1
 - foreman_fog_proxmox 0.15.1
 - foreman_openscap 8.0.2
 - foreman_remote_execution 13.1.0
 - katello 4.13.0

2024-07-15T12:17:00 [I|app|122f7b85] Started GET "/hosts/foreman.example.com/edit" for 10.50.1.102 at 2024-07-15 12:17:00 +0100
2024-07-15T12:17:00 [I|app|122f7b85] Processing by HostsController#edit as HTML
2024-07-15T12:17:00 [I|app|122f7b85]   Parameters: {"id"=>"foreman.example.com"}
2024-07-15T12:17:00 [I|app|122f7b85] Deface: [WARNING] No :original defined for 'add_execution_interface_js', you should change its definition to include:
 122f7b85 |  :original => '9a7f73e0d2fd3f998c3a832df9e7aadcab86d4ad'
2024-07-15T12:17:00 [I|app|122f7b85] Deface: [WARNING] No :original defined for 'ansible_roles_tab', you should change its definition to include:
 122f7b85 |  :original => '8c63c5282ee199068bfd65475e13066ee981089a'
2024-07-15T12:17:00 [I|app|122f7b85] Deface: [WARNING] No :original defined for 'ansible_roles_tab_content', you should change its definition to include:
 122f7b85 |  :original => '9a7f73e0d2fd3f998c3a832df9e7aadcab86d4ad'
2024-07-15T12:17:00 [I|app|122f7b85] Deface: [WARNING] No :original defined for 'add_execution_interface', you should change its definition to include:
 122f7b85 |  :original => 'dbe1da973bfb251a74b994e7ae11bc8d11502c97'
2024-07-15T12:17:00 [I|app|122f7b85] Deface: 'foreman_fog_proxmox/engine_add_vm_type_to_nic_provider_specific_form' matched starting with 'erb[loud]:contai
ns('f.fields_for')' and ending with 'erb[silent]:contains('end')'
2024-07-15T12:17:00 [I|app|122f7b85]   Rendered hosts/edit.html.erb within layouts/application (Duration: 624.5ms | Allocations: 117952)
2024-07-15T12:17:00 [I|app|122f7b85]   Rendered layout layouts/application.html.erb (Duration: 624.8ms | Allocations: 118034)
2024-07-15T12:17:00 [W|app|122f7b85] SSL_read: unexpected eof while reading (OpenSSL::SSL::SSLError)
2024-07-15T12:17:00 [I|app|122f7b85] Backtrace for 'SSL_read: unexpected eof while reading (OpenSSL::SSL::SSLError)' error (ActionView::Template::Error): SSL_read:
unexpected eof while reading (OpenSSL::SSL::SSLError)
 122f7b85 | /usr/share/ruby/openssl/buffering.rb:205:in `sysread_nonblock'
 122f7b85 | /usr/share/ruby/openssl/buffering.rb:205:in `read_nonblock'
 122f7b85 | /usr/share/gems/gems/excon-0.110.0/lib/excon/socket.rb:242:in `read_nonblock'
 122f7b85 | /usr/share/gems/gems/excon-0.110.0/lib/excon/socket.rb:89:in `block in readline'
 122f7b85 | /usr/share/gems/gems/excon-0.110.0/lib/excon/socket.rb:78:in `loop'
 122f7b85 | /usr/share/gems/gems/excon-0.110.0/lib/excon/socket.rb:78:in `readline'
 122f7b85 | /usr/share/gems/gems/excon-0.110.0/lib/excon/response.rb:73:in `block in parse'
 122f7b85 | /usr/share/gems/gems/excon-0.110.0/lib/excon/response.rb:72:in `loop'
 122f7b85 | /usr/share/gems/gems/excon-0.110.0/lib/excon/response.rb:72:in `parse'
 122f7b85 | /usr/share/gems/gems/excon-0.110.0/lib/excon/middlewares/response_parser.rb:7:in `response_call'
 122f7b85 | /usr/share/gems/gems/excon-0.110.0/lib/excon/connection.rb:467:in `response'
 122f7b85 | /usr/share/gems/gems/excon-0.110.0/lib/excon/connection.rb:298:in `request'
 122f7b85 | /usr/share/foreman/lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
 122f7b85 | /usr/share/gems/gems/fog-core-2.4.0/lib/fog/core/connection.rb:79:in `request'
 122f7b85 | /usr/share/gems/gems/fog-proxmox-0.15.0/lib/fog/proxmox/core.rb:98:in `request'
 122f7b85 | /usr/share/gems/gems/fog-proxmox-0.15.0/lib/fog/proxmox/compute/requests/next_vmid.rb:27:in `next_vmid'
 122f7b85 | /usr/share/gems/gems/fog-proxmox-0.15.0/lib/fog/proxmox/compute/models/server.rb:80:in `persisted?'
 122f7b85 | /usr/share/foreman/app/helpers/compute_resources_vms_helper.rb:223:in `new_vm?'
 122f7b85 | /usr/share/foreman/app/views/nic/_provider_specific_form.html.erb:11:in `_app_views_nic__provider_specific_form_html_erb__1265621196920111632_114440'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `public_send'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `_run'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:154:in `block in render'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:205:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:345:in `instrument_render_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:152:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:285:in `block in render_partial_template'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:280:in `render_partial_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:271:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:53:in `render_partial'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:45:in `render'
 122f7b85 | /usr/share/foreman/app/views/nic/manageds/_managed.html.erb:16:in `_app_views_nic_manageds__managed_html_erb__990179006574822970_114380'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `public_send'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `_run'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:154:in `block in render'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:205:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:345:in `instrument_render_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:152:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:285:in `block in render_partial_template'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:280:in `render_partial_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/object_renderer.rb:31:in `render_partial_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:271:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/object_renderer.rb:16:in `render_object_with_partial'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/object_renderer.rb:21:in `render_object_derive_partial'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:94:in `render_partial_to_object'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:27:in `render_to_object'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:22:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:38:in `block in render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:273:in `in_rendering_context'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:34:in `render'
 122f7b85 | /usr/share/foreman/app/views/hosts/_interfaces.html.erb:50:in `block in _app_views_hosts__interfaces_html_erb___3564978746222589306_114340'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/form_helper.rb:2583:in `block in fields_for_nested_model'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/form_helper.rb:1004:in `fields_for'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/form_helper.rb:2582:in `fields_for_nested_model'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/form_helper.rb:2568:in `block in fields_for_with_nested_attributes'
 122f7b85 | /usr/share/gems/gems/activerecord-6.1.7.8/lib/active_record/relation/delegation.rb:88:in `each'
 122f7b85 | /usr/share/gems/gems/activerecord-6.1.7.8/lib/active_record/relation/delegation.rb:88:in `each'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/form_helper.rb:2562:in `fields_for_with_nested_attributes'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/form_helper.rb:2171:in `fields_for'
 122f7b85 | /usr/share/foreman/app/views/hosts/_interfaces.html.erb:49:in `_app_views_hosts__interfaces_html_erb___3564978746222589306_114340'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `public_send'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `_run'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:154:in `block in render'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:205:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:345:in `instrument_render_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:152:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:285:in `block in render_partial_template'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:280:in `render_partial_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:271:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:53:in `render_partial'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:45:in `render'
 122f7b85 | /usr/share/foreman/app/views/hosts/_form.html.erb:120:in `block (2 levels) in _app_views_hosts__form_html_erb__4224133058200878254_114240'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/form_helper.rb:450:in `form_for'
 122f7b85 | /usr/share/foreman/app/helpers/form_helper.rb:286:in `form_for'
 122f7b85 | /usr/share/foreman/app/views/hosts/_form.html.erb:7:in `block in _app_views_hosts__form_html_erb__4224133058200878254_114240'
 122f7b85 | /usr/share/foreman/app/models/taxonomy.rb:80:in `block (2 levels) in as_taxonomy'
 122f7b85 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:195:in `as_location'
 122f7b85 | /usr/share/foreman/app/models/taxonomy.rb:79:in `block in as_taxonomy'
 122f7b85 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:154:in `as_org'
 122f7b85 | /usr/share/foreman/app/models/taxonomy.rb:78:in `as_taxonomy'
 122f7b85 | /usr/share/foreman/app/views/hosts/_form.html.erb:6:in `_app_views_hosts__form_html_erb__4224133058200878254_114240'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `public_send'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `_run'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:154:in `block in render'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:205:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:345:in `instrument_render_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:152:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:285:in `block in render_partial_template'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:280:in `render_partial_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:271:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:27:in `render_to_object'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:22:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:38:in `block in render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:273:in `in_rendering_context'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:34:in `render'
 122f7b85 | /usr/share/foreman/app/views/hosts/edit.html.erb:13:in `_app_views_hosts_edit_html_erb___3788162921853989842_114220'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `public_send'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `_run'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:154:in `block in render'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:205:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:345:in `instrument_render_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:152:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:61:in `block (2 levels) in render_template'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:56:in `block in render_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:71:in `block in render_with_layout'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:70:in `render_with_layout'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:55:in `render_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:11:in `render'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/rendering.rb:117:in `block in _render_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:273:in `in_rendering_context'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/rendering.rb:116:in `_render_template'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/streaming.rb:218:in `_render_template'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/rendering.rb:103:in `render_to_body'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/renderers.rb:142:in `render_to_body'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/abstract_controller/rendering.rb:25:in `render'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/rendering.rb:36:in `render'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'
 122f7b85 | /usr/share/ruby/benchmark.rb:308:in `realtime'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/core_ext/benchmark.rb:14:in `ms'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:46:in `block in render'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'
 122f7b85 | /usr/share/gems/gems/activerecord-6.1.7.8/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:45:in `render'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/implicit_render.rb:35:in `default_render'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
 122f7b85 | <internal:kernel>:90:in `tap'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/abstract_controller/base.rb:228:in `process_action'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/rendering.rb:30:in `process_action'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 122f7b85 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 122f7b85 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 122f7b85 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 122f7b85 | /usr/share/gems/gems/audited-5.6.0/lib/audited/sweeper.rb:16:in `around'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 122f7b85 | /usr/share/gems/gems/audited-5.6.0/lib/audited/sweeper.rb:16:in `around'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:137:in `run_callbacks'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/abstract_controller/callbacks.rb:41:in `process_action'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/rescue.rb:22:in `process_action'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:33:in `process_action'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
 122f7b85 | /usr/share/gems/gems/activerecord-6.1.7.8/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/abstract_controller/base.rb:165:in `process'
 122f7b85 | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/rendering.rb:39:in `process'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal.rb:190:in `dispatch'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal.rb:254:in `dispatch'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/journey/router.rb:32:in `each'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/journey/router.rb:32:in `serve'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/routing/route_set.rb:842:in `call'
 122f7b85 | /usr/share/gems/gems/katello-4.13.0/lib/katello/middleware/organization_created_enforcer.rb:18:in `call'
 122f7b85 | /usr/share/gems/gems/katello-4.13.0/lib/katello/middleware/event_daemon.rb:10:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
 122f7b85 | /usr/share/gems/gems/apipie-dsl-2.6.2/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 122f7b85 | /usr/share/gems/gems/apipie-rails-1.3.0/lib/apipie/static_dispatcher.rb:74:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
 122f7b85 | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
 122f7b85 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 122f7b85 | /usr/share/gems/gems/apipie-rails-1.3.0/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/tempfile_reaper.rb:15:in `call'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/etag.rb:27:in `call'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/conditional_get.rb:27:in `call'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/head.rb:12:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/http/permissions_policy.rb:22:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/http/content_security_policy.rb:19:in `call'
 122f7b85 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/session/abstract/id.rb:266:in `context'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/session/abstract/id.rb:260:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/cookies.rb:697:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:98:in `run_callbacks'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 122f7b85 | /usr/share/gems/gems/railties-6.1.7.8/lib/rails/rack/logger.rb:37:in `call_app'
 122f7b85 | /usr/share/gems/gems/railties-6.1.7.8/lib/rails/rack/logger.rb:28:in `call'
 122f7b85 | /usr/share/gems/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 122f7b85 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/request_id.rb:26:in `call'
 122f7b85 | /usr/share/gems/gems/katello-4.13.0/lib/katello/prevent_json_parsing.rb:12:in `call'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/method_override.rb:24:in `call'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/runtime.rb:22:in `call'
 122f7b85 | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/executor.rb:14:in `call'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/sendfile.rb:110:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/ssl.rb:77:in `call'
 122f7b85 | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/host_authorization.rb:142:in `call'
 122f7b85 | /usr/share/gems/gems/secure_headers-6.5.0/lib/secure_headers/middleware.rb:11:in `call'
 122f7b85 | /usr/share/gems/gems/railties-6.1.7.8/lib/rails/engine.rb:539:in `call'
 122f7b85 | /usr/share/gems/gems/railties-6.1.7.8/lib/rails/railtie.rb:207:in `public_send'
 122f7b85 | /usr/share/gems/gems/railties-6.1.7.8/lib/rails/railtie.rb:207:in `method_missing'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/urlmap.rb:74:in `block in call'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/urlmap.rb:58:in `each'
 122f7b85 | /usr/share/gems/gems/rack-2.2.9/lib/rack/urlmap.rb:58:in `call'
 122f7b85 | /usr/share/gems/gems/puma-6.4.2/lib/puma/configuration.rb:272:in `call'
 122f7b85 | /usr/share/gems/gems/puma-6.4.2/lib/puma/request.rb:100:in `block in handle_request'
 122f7b85 | /usr/share/gems/gems/puma-6.4.2/lib/puma/thread_pool.rb:378:in `with_force_shutdown'
 122f7b85 | /usr/share/gems/gems/puma-6.4.2/lib/puma/request.rb:99:in `handle_request'
 122f7b85 | /usr/share/gems/gems/puma-6.4.2/lib/puma/server.rb:464:in `process_client'
 122f7b85 | /usr/share/gems/gems/puma-6.4.2/lib/puma/server.rb:245:in `block in run'
 122f7b85 | /usr/share/gems/gems/puma-6.4.2/lib/puma/thread_pool.rb:155:in `block in spawn_thread'
 122f7b85 | /usr/share/gems/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2024-07-15T12:17:00 [I|app|122f7b85]   Rendered common/500.html.erb within layouts/application (Duration: 2.6ms | Allocations: 1109)
2024-07-15T12:17:01 [I|app|122f7b85]   Rendered layouts/base.html.erb (Duration: 6.6ms | Allocations: 3184)
2024-07-15T12:17:01 [I|app|122f7b85]   Rendered layout layouts/application.html.erb (Duration: 13.6ms | Allocations: 5370)
2024-07-15T12:17:01 [I|app|122f7b85] Completed 500 Internal Server Error in 697ms (Views: 14.9ms | ActiveRecord: 23.1ms | Allocations: 137171)

A work around for this issue is to “Disassociate Hosts”, carry out any modifications and then re-associate the VM in the compute resource.

If I create a new host from foreman using a proxmox compute resource the subsciption-manager registation fails with the following error:

200 OK
##############################################################
################# SUBSCRIPTION MANAGER #######################
##############################################################

Starting the subscription-manager registration process
subscription-manager is already installed!
SSL_read: unexpected eof while reading (OpenSSL::SSL::SSLError) (HTTP error code 500: Internal Server Error)
Updating Subscription Management repositories.
Unable to read consumer identity

Current work around:

  • Create host
  • Disassociate host from compute resource
  • Wait for build to complete
  • Associate host again with compute resource