SSL Error on create image

Problem:
SSL Error on creating an image from a compute resource
Expected outcome:
Allow to create an image
Foreman and Proxy versions:
3.10.0-1
Foreman and Proxy plugin versions:

Distribution and version:
AlmaLinux 9.4
Kernel 5.14.0-427.13.1.el9_4.x86_64

More Info
Attemping to create an image on a Proxmox compute resource. The compute resource was added successfully. Proxmox version is 8.2.2. This is a fresh install using the self signed certs from Puppet CA.

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

[root@foreman ~]# foreman-rake errors:fetch_log request_id=0696bce5
Foreman version: 3.10.0
Plugins:
 - foreman_fog_proxmox 0.15.0
 - foreman_puppet 6.2.0

2024-05-13T09:41:34 [I|app|0696bce5] Started GET "/compute_resources/1/images/new" for 10.3.54.25 at 2024-05-13 09:41:34 -0500
2024-05-13T09:41:35 [I|app|0696bce5] Processing by ImagesController#new as HTML
2024-05-13T09:41:35 [I|app|0696bce5]   Parameters: {"compute_resource_id"=>"1"}
2024-05-13T09:41:55 [I|app|0696bce5]   Rendered images/new.html.erb within layouts/application (Duration: 20569.4ms | Allocations: 10483)
2024-05-13T09:41:55 [I|app|0696bce5]   Rendered layout layouts/application.html.erb (Duration: 20569.8ms | Allocations: 10544)
2024-05-13T09:41:55 [W|app|0696bce5] SSL_read: unexpected eof while reading (OpenSSL::SSL::SSLError)
2024-05-13T09:41:55 [I|app|0696bce5] Backtrace for 'SSL_read: unexpected eof while reading (OpenSSL::SSL::SSLError)' error (ActionView::Template::Error): SSL_read: unexpected eof while reading (OpenSSL::SSL::SSLError)
 0696bce5 | /usr/share/ruby/openssl/buffering.rb:205:in `sysread_nonblock'
 0696bce5 | /usr/share/ruby/openssl/buffering.rb:205:in `read_nonblock'
 0696bce5 | /usr/share/gems/gems/excon-0.109.0/lib/excon/socket.rb:242:in `read_nonblock'
 0696bce5 | /usr/share/gems/gems/excon-0.109.0/lib/excon/socket.rb:89:in `block in readline'
 0696bce5 | /usr/share/gems/gems/excon-0.109.0/lib/excon/socket.rb:78:in `loop'
 0696bce5 | /usr/share/gems/gems/excon-0.109.0/lib/excon/socket.rb:78:in `readline'
 0696bce5 | /usr/share/gems/gems/excon-0.109.0/lib/excon/response.rb:73:in `block in parse'
 0696bce5 | /usr/share/gems/gems/excon-0.109.0/lib/excon/response.rb:72:in `loop'
 0696bce5 | /usr/share/gems/gems/excon-0.109.0/lib/excon/response.rb:72:in `parse'
 0696bce5 | /usr/share/gems/gems/excon-0.109.0/lib/excon/middlewares/response_parser.rb:7:in `response_call'
 0696bce5 | /usr/share/gems/gems/excon-0.109.0/lib/excon/connection.rb:467:in `response'
 0696bce5 | /usr/share/gems/gems/excon-0.109.0/lib/excon/connection.rb:298:in `request'
 0696bce5 | /usr/share/foreman/lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
 0696bce5 | /usr/share/gems/gems/fog-core-2.4.0/lib/fog/core/connection.rb:79:in `request'
 0696bce5 | /usr/share/gems/gems/fog-proxmox-0.15.0/lib/fog/proxmox/core.rb:98:in `request'
 0696bce5 | /usr/share/gems/gems/fog-proxmox-0.15.0/lib/fog/proxmox/compute/requests/list_volumes.rb:27:in `list_volumes'
 0696bce5 | /usr/share/gems/gems/fog-proxmox-0.15.0/lib/fog/proxmox/compute/models/volumes.rb:36:in `all'
 0696bce5 | /usr/share/gems/gems/fog-proxmox-0.15.0/lib/fog/proxmox/compute/models/volumes.rb:40:in `list_by_content_type'
 0696bce5 | /usr/share/gems/gems/foreman_fog_proxmox-0.15.0/app/models/foreman_fog_proxmox/proxmox_images.rb:51:in `block (2 levels) in templates'
 0696bce5 | /usr/share/gems/gems/foreman_fog_proxmox-0.15.0/app/models/foreman_fog_proxmox/proxmox_images.rb:50:in `each'
 0696bce5 | /usr/share/gems/gems/foreman_fog_proxmox-0.15.0/app/models/foreman_fog_proxmox/proxmox_images.rb:50:in `block in templates'
 0696bce5 | /usr/share/gems/gems/foreman_fog_proxmox-0.15.0/app/models/foreman_fog_proxmox/proxmox_images.rb:49:in `each'
 0696bce5 | /usr/share/gems/gems/foreman_fog_proxmox-0.15.0/app/models/foreman_fog_proxmox/proxmox_images.rb:49:in `templates'
 0696bce5 | /usr/share/gems/gems/foreman_fog_proxmox-0.15.0/app/models/foreman_fog_proxmox/proxmox_images.rb:44:in `available_images'
 0696bce5 | /usr/share/foreman/app/helpers/images_helper.rb:4:in `image_field'
 0696bce5 | /usr/share/gems/gems/foreman_fog_proxmox-0.15.0/app/views/images/form/_proxmox.html.erb:21:in `__usr_share_gems_gems_foreman_fog_proxmox________app_views_images_form__proxmox_html_erb__219481089033867207_68860'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/base.rb:247:in `public_send'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/base.rb:247:in `_run'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:154:in `block in render'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:205:in `instrument'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:345:in `instrument_render_template'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:152:in `render'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/partial_renderer.rb:285:in `block in render_partial_template'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `block in instrument'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `instrument'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/partial_renderer.rb:280:in `render_partial_template'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/partial_renderer.rb:271:in `render'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/renderer.rb:53:in `render_partial'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/helpers/rendering_helper.rb:45:in `render'
 0696bce5 | /usr/share/foreman/app/views/images/_form.html.erb:7:in `block in _app_views_images__form_html_erb__1342304084910600700_68840'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/helpers/form_helper.rb:450:in `form_for'
 0696bce5 | /usr/share/foreman/app/helpers/form_helper.rb:286:in `form_for'
 0696bce5 | /usr/share/foreman/app/views/images/_form.html.erb:1:in `_app_views_images__form_html_erb__1342304084910600700_68840'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/base.rb:247:in `public_send'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/base.rb:247:in `_run'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:154:in `block in render'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:205:in `instrument'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:345:in `instrument_render_template'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:152:in `render'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/partial_renderer.rb:285:in `block in render_partial_template'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `block in instrument'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `instrument'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/partial_renderer.rb:280:in `render_partial_template'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/partial_renderer.rb:271:in `render'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/renderer.rb:27:in `render_to_object'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/renderer.rb:22:in `render'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/helpers/rendering_helper.rb:38:in `block in render'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/base.rb:273:in `in_rendering_context'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/helpers/rendering_helper.rb:34:in `render'
 0696bce5 | /usr/share/foreman/app/views/images/new.html.erb:3:in `_app_views_images_new_html_erb__2756499228232511891_68820'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/base.rb:247:in `public_send'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/base.rb:247:in `_run'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:154:in `block in render'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:205:in `instrument'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:345:in `instrument_render_template'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:152:in `render'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:61:in `block (2 levels) in render_template'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `block in instrument'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `instrument'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:56:in `block in render_template'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:71:in `block in render_with_layout'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `block in instrument'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `instrument'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:70:in `render_with_layout'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:55:in `render_template'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:11:in `render'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/rendering.rb:117:in `block in _render_template'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/base.rb:273:in `in_rendering_context'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/rendering.rb:116:in `_render_template'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/streaming.rb:218:in `_render_template'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/rendering.rb:103:in `render_to_body'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/renderers.rb:142:in `render_to_body'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/abstract_controller/rendering.rb:25:in `render'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/rendering.rb:36:in `render'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'
 0696bce5 | /usr/share/ruby/benchmark.rb:308:in `realtime'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/core_ext/benchmark.rb:14:in `ms'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:46:in `block in render'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'
 0696bce5 | /usr/share/gems/gems/activerecord-6.1.7.7/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:45:in `render'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/implicit_render.rb:35:in `default_render'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
 0696bce5 | <internal:kernel>:90:in `tap'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/abstract_controller/base.rb:228:in `process_action'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/rendering.rb:30:in `process_action'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 0696bce5 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 0696bce5 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 0696bce5 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 0696bce5 | /usr/share/gems/gems/audited-5.4.3/lib/audited/sweeper.rb:16:in `around'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 0696bce5 | /usr/share/gems/gems/audited-5.4.3/lib/audited/sweeper.rb:16:in `around'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:137:in `run_callbacks'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/abstract_controller/callbacks.rb:41:in `process_action'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/rescue.rb:22:in `process_action'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `block in instrument'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `instrument'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:33:in `process_action'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
 0696bce5 | /usr/share/gems/gems/activerecord-6.1.7.7/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/abstract_controller/base.rb:165:in `process'
 0696bce5 | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/rendering.rb:39:in `process'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal.rb:190:in `dispatch'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal.rb:254:in `dispatch'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/journey/router.rb:32:in `each'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/journey/router.rb:32:in `serve'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/routing/route_set.rb:842:in `call'
 0696bce5 | /usr/share/gems/gems/apipie-dsl-2.6.2/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 0696bce5 | /usr/share/gems/gems/apipie-rails-1.3.0/lib/apipie/static_dispatcher.rb:74:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 0696bce5 | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
 0696bce5 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 0696bce5 | /usr/share/gems/gems/apipie-rails-1.3.0/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/tempfile_reaper.rb:15:in `call'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/etag.rb:27:in `call'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/conditional_get.rb:27:in `call'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/head.rb:12:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/http/permissions_policy.rb:22:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/http/content_security_policy.rb:19:in `call'
 0696bce5 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/session/abstract/id.rb:266:in `context'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/session/abstract/id.rb:260:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/cookies.rb:697:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:98:in `run_callbacks'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 0696bce5 | /usr/share/gems/gems/railties-6.1.7.7/lib/rails/rack/logger.rb:37:in `call_app'
 0696bce5 | /usr/share/gems/gems/railties-6.1.7.7/lib/rails/rack/logger.rb:28:in `call'
 0696bce5 | /usr/share/gems/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 0696bce5 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 0696bce5 | /usr/share/gems/gems/request_store-1.6.0/lib/request_store/middleware.rb:19:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/request_id.rb:26:in `call'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/method_override.rb:24:in `call'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/runtime.rb:22:in `call'
 0696bce5 | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/executor.rb:14:in `call'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/sendfile.rb:110:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/ssl.rb:77:in `call'
 0696bce5 | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/host_authorization.rb:142:in `call'
 0696bce5 | /usr/share/gems/gems/secure_headers-6.5.0/lib/secure_headers/middleware.rb:11:in `call'
 0696bce5 | /usr/share/gems/gems/railties-6.1.7.7/lib/rails/engine.rb:539:in `call'
 0696bce5 | /usr/share/gems/gems/railties-6.1.7.7/lib/rails/railtie.rb:207:in `public_send'
 0696bce5 | /usr/share/gems/gems/railties-6.1.7.7/lib/rails/railtie.rb:207:in `method_missing'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:74:in `block in call'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `each'
 0696bce5 | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `call'
 0696bce5 | /usr/share/gems/gems/puma-6.4.2/lib/puma/configuration.rb:272:in `call'
 0696bce5 | /usr/share/gems/gems/puma-6.4.2/lib/puma/request.rb:100:in `block in handle_request'
 0696bce5 | /usr/share/gems/gems/puma-6.4.2/lib/puma/thread_pool.rb:378:in `with_force_shutdown'
 0696bce5 | /usr/share/gems/gems/puma-6.4.2/lib/puma/request.rb:99:in `handle_request'
 0696bce5 | /usr/share/gems/gems/puma-6.4.2/lib/puma/server.rb:464:in `process_client'
 0696bce5 | /usr/share/gems/gems/puma-6.4.2/lib/puma/server.rb:245:in `block in run'
 0696bce5 | /usr/share/gems/gems/puma-6.4.2/lib/puma/thread_pool.rb:155:in `block in spawn_thread'
 0696bce5 | /usr/share/gems/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2024-05-13T09:41:55 [I|app|0696bce5]   Rendered common/500.html.erb within layouts/application (Duration: 1.5ms | Allocations: 470)
2024-05-13T09:41:55 [I|app|0696bce5]   Rendered layouts/base.html.erb (Duration: 4.2ms | Allocations: 1211)
2024-05-13T09:41:55 [I|app|0696bce5]   Rendered layout layouts/application.html.erb (Duration: 6.5ms | Allocations: 1955)
2024-05-13T09:41:55 [I|app|0696bce5] Completed 500 Internal Server Error in 20594ms (Views: 7.4ms | ActiveRecord: 3.8ms | Allocations: 15423)
1 Like

Same here. Both on Foreman 3.10 and nightly on Ubuntu 24.04 LTS. Same on Foreman 3.10 on CentOS 9. ProxMox version 8.2.2 as on original poster.

Related distributions and versions

CentOS Stream release 9
Linux 5.14.0-447.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 7 10:46:15 UTC 2024 x86_64 x86_64 x86_6
Proxmox Virtual Environment 8.2.2
Foreman 3.10.0
rubygem-foreman_fog_proxmox-0.15.0-1.fm3_10.el9.noarch
Ruby gem openssl-2.1.4

Symptoms

Also - if I associate any ProxMox VM-s via “Infrastructure - Compute resources - ProxMox - Virtual Machines - Associate VMs” button all those virtual machines become uneditable. On pressing “Edit” they give same error.
Both foremans were fresh install as of 16.05.2024.

If I set hosts as “unmanaged” again - error disappears and I can edit hosts.

Digging into rabbithole

Seems like primary culprit is Ruby openssl gem. This version is actually EOL and even not meant to work with OpenSSL 3.x
It seems not to respect system default SSL options. Proof:

Query using openssl command line to proxmox instance:

openssl s_client -connect PROXMOX_HOST:PROXMOX_PORT

Result, last line of response after a bit of waiting:

00CEEDE1AE7F0000:error:0A000126:SSL routines::unexpected eof while reading:ssl/record/rec_layer_s3.c:645:

Added line “Options = IgnoreUnexpectedEOF” to system default openssl.cnf

[ crypto_policy ]

Options = IgnoreUnexpectedEOF
.include = /etc/crypto-policies/back-ends/opensslcnf.config

Ran same query from command line again - no error.

Restarted foreman service, still error while trying via foreman.
Restarted whole server - no help.
From command line using openssl s_client - no errors.

Dirty workaround:

Modified /usr/share/ruby/openssl/ssl.rb options block and added “opts |= OpenSSL::SSL::OP_IGNORE_UNEXPECTED_EOF”

       :options => -> {
          opts = OpenSSL::SSL::OP_ALL
          opts &= ~OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS
          opts |= OpenSSL::SSL::OP_NO_COMPRESSION
          opts |= OpenSSL::SSL::OP_IGNORE_UNEXPECTED_EOF
          opts
	}.call

Result

SSL Communication with ProxMox 8.2.2 works. Deployment of hosts does not as it seems Proxmox API has significant changes.

Dirty workaround again

Edited foreman_fog_proxmox-0.15.0/app/helpers/proxmox_compute_selectors_helper.rb
Modified “def proxmox_archs_map” first line to read:

OpenStruct.new(id: 'x86_64', name: '64 bits')

NB! i386 is not even supported by API any more. And “arch” can only be set by root@pve. So I changed user at compute resource proxmox connection

Modified all def proxmox_ostypes_map except “Unmanaged” to read:

OpenStruct.new(id: ‘l26’, name: ‘Debian’)

NB! name: ‘Debian’ is only example. The workaround is id: ‘l26’.

Result: Hosts “somewhat” deployable. Meaning - I would not use those dirty hacks in production. But currently it works for my testing environment well enough.

1 Like