HTTP 204 Error adding RHV compute resource to new Foreman 3.4.0 install

Problem: ‘HTTP response code is 204’ when adding RHV compute resource

Expected outcome: Compute resource added to Foreman

Foreman and Proxy versions: 3.4.0

Foreman and Proxy plugin versions: 3.4.0

Distribution and version: Red Hat Enterprise Linux 8.7

Other relevant data:

I have attempted adding using the GUI as well as using the hammer CLI. In both instances the Compute Resource is not added and the error message is ’ Oops, we’re sorry but something went wrong HTTP response code is 204. The response body is empty.’

Here is the full error log:

# foreman-rake errors:fetch_log request_id=4b052ea9
2022-11-23T12:19:07 [I|app|4b052ea9] Started POST "/compute_resources" for 10.33.5.11 at 2022-11-23 12:19:07 -0600
2022-11-23T12:19:07 [I|app|4b052ea9] Processing by ComputeResourcesController#create as HTML
2022-11-23T12:19:07 [I|app|4b052ea9]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"h/mFsoVrU/wfMD5M+M1ssUXR6Cr8sTtOVimfuREj/6/QdPcjXEa7j5cnS7F8HJYnKhCEa3ys+p8fbmxeiKIUJg==", "compute_resource"=>{"name"=>"UCSS RHV", "provider"=>"Ovirt", "description"=>"", "url"=>"https://rhevmgrtest.ucs.louisiana.edu/ovirt-engine/api", "user"=>"foreman@internal", "password"=>"[FILTERED]", "uuid"=>"5af157d6-03c7-0056-0147-00000000000b", "display_type"=>"spice", "keyboard_layout"=>"en-us", "public_key"=>"-----BEGIN CERTIFICATE-----\r\nMIIEfzCCA2egAwIBAgICED8wDQYJKoZIhvcNAQELBQAwVzELMAkGA1UEBhMCVVMx\r\nGjAYBgNVBAoMEXVjcy5sb3Vpc2lhbmEuZWR1MSwwKgYDVQQDDCNyaGV2bWdydGVz\r\ndC51Y3MubG91aXNpYW5hLmVkdS42Njg4ODAeFw0xOTExMTMyMDEzMDBaFw0yNDEw\r\nMTgyMDEzMDBaMFExCzAJBgNVBAYTAlVTMRowGAYDVQQKDBF1Y3MubG91aXNpYW5h\r\nLmVkdTEmMCQGA1UEAwwdcmhldm1ncnRlc3QudWNzLmxvdWlzaWFuYS5lZHUwggEi\r\nMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDRy1oXD4SjcPGYMdgD19GCYjDN\r\nimXmHLN0XsOf/42yLDo1szE4tsBaSL0WeKHIYMNc2YuNtMKkO7OkGKkFcmr4hoOL\r\n3Z+DJ7wLFT48i4keXt4YMQlOD0MRStVxEkScBNnmMXqNIi5GxxdQ2CbeU7+MOFJ6\r\nmMn2ixIjEcyl9b0PIyYjwneqXa5rFsgUeqxFsCagdehyV/4uNiuq0+Pk/vqYYAms\r\nJGNkeyVFN02hludWEwIrPf+bnRefJRmeDQnLbatdrYaDeXCcJUz691Rb4LB8V4h9\r\nE9Y4b08vapHY0Ncm1kh6Uy5TNfqhGFD9TpwrMhvMTZVjt7vSrNnRRYF/R8rhAgMB\r\nAAGjggFZMIIBVTAdBgNVHQ4EFgQUeEkBEAiZdPcJv57O6i/1KEId4N8wSgYIKwYB\r\nBQUHAQEEPjA8MDoGCCsGAQUFBzAChi5odHRwOi8vcmhldm1ncnRlc3QudWNzLmxv\r\ndWlzaWFuYS5lZHU6ODAvY2EuY3J0MIGABgNVHSMEeTB3gBQ9SdISdlEj4CId6WOk\r\nuwuhy8PsIaFbpFkwVzELMAkGA1UEBhMCVVMxGjAYBgNVBAoMEXVjcy5sb3Vpc2lh\r\nbmEuZWR1MSwwKgYDVQQDDCNyaGV2bWdydGVzdC51Y3MubG91aXNpYW5hLmVkdS42\r\nNjg4OIICEAAwCQYDVR0TBAIwADAOBgNVHQ8BAf8EBAMCBaAwIAYDVR0lAQH/BBYw\r\nFAYIKwYBBQUHAwEGCCsGAQUFBwMCMCgGA1UdEQQhMB+CHXJoZXZtZ3J0ZXN0LnVj\r\ncy5sb3Vpc2lhbmEuZWR1MA0GCSqGSIb3DQEBCwUAA4IBAQAejDUEVaSXPZ4qm19o\r\nHJVGExkn5zTsN5qXx7158POR/I6DslEQOMJpbGlIxEaindvbXcmgbyUyXeN8YVHi\r\nWF4O7G1j4WdQr+d67/+WRl7Uols+CN9vOqpsEqcYYU10Ep7C871MZ+P8l9IyLfjQ\r\ncKXn3LK3beBzUnIu7HryTbtm+58ZObKk9bpbePWzdijFle1MKtTDCQbHEVJBGdZ0\r\nb+SnrBf6j5odJIpZDfHEaZJoVclWel1Jml9/58qTvTZvSV65ImV8r2+FDDsSXQ8R\r\nctw3hcQWwtYVrMgDpPlqqlW4mupbp7d6/0f3XFAp6Cm7aE3ThQmsWGNddslLvKog\r\nv/6Z\r\n-----END CERTIFICATE-----", "location_ids"=>["", "2"], "organization_ids"=>["", "1"]}, "commit"=>"Submit"}
2022-11-23T12:19:08 [W|app|4b052ea9] HTTP response code is 204. The response body is empty.
2022-11-23T12:19:08 [I|app|4b052ea9] Backtrace for 'HTTP response code is 204. The response body is empty.' error (OvirtSDK4::Error): HTTP response code is 204. The response body is empty.
 4b052ea9 | /usr/share/gems/gems/ovirt-engine-sdk-4.4.1/lib/ovirtsdk4/connection.rb:387:in `raise_error'
 4b052ea9 | /usr/share/gems/gems/ovirt-engine-sdk-4.4.1/lib/ovirtsdk4/service.rb:418:in `internal_read_body'
 4b052ea9 | /usr/share/gems/gems/ovirt-engine-sdk-4.4.1/lib/ovirtsdk4/service.rb:100:in `check_fault'
 4b052ea9 | /usr/share/gems/gems/ovirt-engine-sdk-4.4.1/lib/ovirtsdk4/service.rb:202:in `block in internal_get'
 4b052ea9 | /usr/share/gems/gems/ovirt-engine-sdk-4.4.1/lib/ovirtsdk4/service.rb:47:in `wait'
 4b052ea9 | /usr/share/gems/gems/ovirt-engine-sdk-4.4.1/lib/ovirtsdk4/service.rb:205:in `internal_get'
 4b052ea9 | /usr/share/gems/gems/ovirt-engine-sdk-4.4.1/lib/ovirtsdk4/services.rb:19944:in `list'
 4b052ea9 | /usr/share/gems/gems/fog-ovirt-2.0.2/lib/fog/ovirt/requests/compute/v4/list_quotas.rb:8:in `list_quotas'
 4b052ea9 | /usr/share/gems/gems/fog-ovirt-2.0.2/lib/fog/ovirt/models/compute/quotas.rb:11:in `all'
 4b052ea9 | /usr/share/gems/gems/fog-core-2.2.4/lib/fog/core/collection.rb:112:in `lazy_load'
 4b052ea9 | /usr/share/gems/gems/fog-core-2.2.4/lib/fog/core/collection.rb:16:in `first'
 4b052ea9 | /usr/share/foreman/app/models/compute_resources/foreman/model/ovirt.rb:485:in `validate_quota'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in `block in make_lambda'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in `catch'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in `block in default_terminator'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:199:in `block in halting'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `block in invoke_before'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `each'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `invoke_before'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:115:in `block in run_callbacks'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/autosave_association.rb:385:in `around_save_collection_association'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:137:in `run_callbacks'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:824:in `_run_save_callbacks'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/callbacks.rb:457:in `create_or_update'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/timestamp.rb:126:in `create_or_update'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/persistence.rb:474:in `save'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/validations.rb:47:in `save'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/transactions.rb:298:in `block in save'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/transactions.rb:350:in `with_transaction_returning_status'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/transactions.rb:298:in `save'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/suppressor.rb:44:in `save'
 4b052ea9 | /usr/share/foreman/app/controllers/compute_resources_controller.rb:29:in `create'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/base.rb:228:in `process_action'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 4b052ea9 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 4b052ea9 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 4b052ea9 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 4b052ea9 | /usr/share/gems/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 4b052ea9 | /usr/share/gems/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:137:in `run_callbacks'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `block in instrument'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `instrument'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/instrumentation.rb:33:in `process_action'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
 4b052ea9 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/base.rb:165:in `process'
 4b052ea9 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/rendering.rb:39:in `process'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal.rb:190:in `dispatch'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal.rb:254:in `dispatch'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/journey/router.rb:32:in `each'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/journey/router.rb:32:in `serve'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/routing/route_set.rb:842:in `call'
 4b052ea9 | /usr/share/gems/gems/apipie-dsl-2.5.0/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 4b052ea9 | /usr/share/gems/gems/apipie-rails-0.5.20/lib/apipie/static_dispatcher.rb:66:in `call'
 4b052ea9 | /usr/share/gems/gems/apipie-rails-0.5.20/lib/apipie/extractor/recorder.rb:137:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 4b052ea9 | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
 4b052ea9 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 4b052ea9 | /usr/share/gems/gems/apipie-rails-0.5.20/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/tempfile_reaper.rb:15:in `call'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/etag.rb:27:in `call'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/conditional_get.rb:40:in `call'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/head.rb:12:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/http/permissions_policy.rb:22:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/http/content_security_policy.rb:19:in `call'
 4b052ea9 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/session/abstract/id.rb:266:in `context'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/session/abstract/id.rb:260:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/cookies.rb:689:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:98:in `run_callbacks'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 4b052ea9 | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/rack/logger.rb:37:in `call_app'
 4b052ea9 | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/rack/logger.rb:28:in `call'
 4b052ea9 | /usr/share/gems/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 4b052ea9 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/request_id.rb:26:in `call'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/method_override.rb:24:in `call'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/runtime.rb:22:in `call'
 4b052ea9 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/sendfile.rb:110:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/ssl.rb:77:in `call'
 4b052ea9 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/host_authorization.rb:142:in `call'
 4b052ea9 | /usr/share/gems/gems/secure_headers-6.3.4/lib/secure_headers/middleware.rb:11:in `call'
 4b052ea9 | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/engine.rb:539:in `call'
 4b052ea9 | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `public_send'
 4b052ea9 | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `method_missing'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/urlmap.rb:74:in `block in call'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/urlmap.rb:58:in `each'
 4b052ea9 | /usr/share/gems/gems/rack-2.2.4/lib/rack/urlmap.rb:58:in `call'
 4b052ea9 | /usr/share/gems/gems/puma-5.6.4/lib/puma/configuration.rb:252:in `call'
 4b052ea9 | /usr/share/gems/gems/puma-5.6.4/lib/puma/request.rb:77:in `block in handle_request'
 4b052ea9 | /usr/share/gems/gems/puma-5.6.4/lib/puma/thread_pool.rb:340:in `with_force_shutdown'
 4b052ea9 | /usr/share/gems/gems/puma-5.6.4/lib/puma/request.rb:76:in `handle_request'
 4b052ea9 | /usr/share/gems/gems/puma-5.6.4/lib/puma/server.rb:441:in `process_client'
 4b052ea9 | /usr/share/gems/gems/puma-5.6.4/lib/puma/thread_pool.rb:147:in `block in spawn_thread'
 4b052ea9 | /usr/share/gems/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2022-11-23T12:19:08 [I|app|4b052ea9]   Rendered common/500.html.erb within layouts/application (Duration: 1.2ms | Allocations: 432)
2022-11-23T12:19:08 [I|app|4b052ea9]   Rendered layouts/base.html.erb (Duration: 2.9ms | Allocations: 1333)
2022-11-23T12:19:08 [I|app|4b052ea9]   Rendered layout layouts/application.html.erb (Duration: 5.3ms | Allocations: 1974)
2022-11-23T12:19:08 [I|app|4b052ea9] Completed 500 Internal Server Error in 267ms (Views: 6.0ms | ActiveRecord: 5.6ms | Allocations: 17573)

Foreman version: 3.4.0
Plugins: 
 - foreman_puppet 4.0.1
 - ovirt_provision_plugin 2.0.3

I forgot to add, when setting up the compute resource using the GUI, the “Load Datacenters”, and later the “Test Connection” buttons work correctly. It is after I select the Submit button that the error is generated.

I am not a Ruby programmer but after staring at the error log it seemed that the error may have something to do with Quotas in my RHV instance. Currently I have no Quotas enabled in my RHV instance. This was not a problem on a previous (very old) version of foreman. Digging through the code it seems that the ovirt plugin may treat the absence of any Quotas as an error.

Can anyone verify?

For anyone else stumbling across this error, the role assigned to the RHV user which Foreman uses for RHV API access must have Account Type of “Admin” and not “User”.