-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
6.17.0
-
False
-
-
False
-
0
-
-
-
Moderate
-
Yes
Description of problem:
When I try to register a RHEL 10 host with Insights (through global registration, through cockpit, manually...), I get 500 ISE and it fails. It works with RHEL 9 client. I have RHEL10 beta, Satellite has RHEL 10 (Appstream and BaseOS) repos from download.devel server and these are enabled on the host.
On the host:
# insights-client --register
Unable to fetch egg url https://<FQDN>:443/redhat_access/r/insights/platform/module-update-router/v1/channel?module=insights-core: 500: Internal Server Error. Defaulting to /release Machine-id found, insights-client can not be registered. Please, unregister insights-client first: `insights-client --unregister`
On Satellite:
==> /var/log/foreman/production.log <== 2024-11-25T10:28:14 [I|app|1f511bad] Started GET "/redhat_access/r/insights/v1/branch_info" for 10.0.168.87 at 2024-11-25 10:28:14 -0500 2024-11-25T10:28:14 [I|app|1f511bad] Processing by InsightsCloud::Api::MachineTelemetriesController#branch_info as JSON 2024-11-25T10:28:14 [I|app|1f511bad] Completed 200 OK in 18ms (Views: 0.1ms | ActiveRecord: 3.4ms | Allocations: 6727) 2024-11-25T10:28:14 [I|app|1b0d60dc] Started GET "/redhat_access/r/insights/platform/module-update-router/v1/channel?module=insights-core" for 10.0.168.87 at 2024-11-25 10:28:14 -0500 2024-11-25T10:28:14 [I|app|1b0d60dc] Processing by InsightsCloud::Api::MachineTelemetriesController#forward_request as JSON 2024-11-25T10:28:14 [I|app|1b0d60dc] Parameters: {"module"=>"insights-core", "path"=>"platform/module-update-router/v1/channel"} 2024-11-25T10:28:14 [W|app|1b0d60dc] Action failed 2024-11-25T10:28:14 [I|app|1b0d60dc] Backtrace for 'Action failed' error (NameError): uninitialized constant ForemanRhCloud::VERSION 1b0d60dc | Did you mean? VersionGem 1b0d60dc | /usr/share/gems/gems/foreman_rh_cloud-11.0.1/app/services/foreman_rh_cloud/cloud_request_forwarder.rb:119:in `http_user_agent' 1b0d60dc | /usr/share/gems/gems/foreman_rh_cloud-11.0.1/app/services/foreman_rh_cloud/cloud_request_forwarder.rb:13:in `forward_request' 1b0d60dc | /usr/share/gems/gems/foreman_rh_cloud-11.0.1/app/controllers/insights_cloud/api/machine_telemetries_controller.rb:19:in `forward_request' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/abstract_controller/base.rb:228:in `process_action' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_controller/metal/rendering.rb:30:in `process_action' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/abstract_controller/callbacks.rb:42:in `block in process_action' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:117:in `block in run_callbacks' 1b0d60dc | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:126:in `block in run_callbacks' 1b0d60dc | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:126:in `block in run_callbacks' 1b0d60dc | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:126:in `block in run_callbacks' 1b0d60dc | /usr/share/gems/gems/audited-5.7.0/lib/audited/sweeper.rb:16:in `around' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:126:in `block in run_callbacks' 1b0d60dc | /usr/share/gems/gems/audited-5.7.0/lib/audited/sweeper.rb:16:in `around' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:126:in `block in run_callbacks' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:137:in `run_callbacks' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/abstract_controller/callbacks.rb:41:in `process_action' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_controller/metal/rescue.rb:22:in `process_action' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/notifications.rb:203:in `block in instrument' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/notifications/instrumenter.rb:24:in `instrument' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/notifications.rb:203:in `instrument' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_controller/metal/instrumentation.rb:33:in `process_action' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_controller/metal/params_wrapper.rb:249:in `process_action' 1b0d60dc | /usr/share/gems/gems/activerecord-6.1.7.9/lib/active_record/railties/controller_runtime.rb:27:in `process_action' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/abstract_controller/base.rb:165:in `process' 1b0d60dc | /usr/share/gems/gems/actionview-6.1.7.9/lib/action_view/rendering.rb:39:in `process' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_controller/metal.rb:190:in `dispatch' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_controller/metal.rb:254:in `dispatch' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/routing/route_set.rb:50:in `dispatch' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/routing/route_set.rb:33:in `serve' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/routing/mapper.rb:49:in `serve' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/journey/router.rb:50:in `block in serve' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/journey/router.rb:32:in `each' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/journey/router.rb:32:in `serve' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/routing/route_set.rb:842:in `call' 1b0d60dc | /usr/share/gems/gems/katello-4.15.0.pre.master/lib/katello/middleware/organization_created_enforcer.rb:18:in `call' 1b0d60dc | /usr/share/gems/gems/katello-4.15.0.pre.master/lib/katello/middleware/event_daemon.rb:10:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/apipie-dsl-2.6.2/lib/apipie_dsl/static_dispatcher.rb:67:in `call' 1b0d60dc | /usr/share/gems/gems/apipie-rails-1.4.2/lib/apipie/static_dispatcher.rb:74:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/static.rb:24:in `call' 1b0d60dc | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call' 1b0d60dc | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call' 1b0d60dc | /usr/share/gems/gems/apipie-rails-1.4.2/lib/apipie/middleware/checksum_in_headers.rb:27:in `call' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/tempfile_reaper.rb:15:in `call' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/etag.rb:27:in `call' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/conditional_get.rb:27:in `call' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/head.rb:12:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/http/permissions_policy.rb:22:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/http/content_security_policy.rb:19:in `call' 1b0d60dc | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb:266:in `context' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb:260:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/cookies.rb:697:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:98:in `run_callbacks' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/callbacks.rb:26:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' 1b0d60dc | /usr/share/gems/gems/railties-6.1.7.9/lib/rails/rack/logger.rb:37:in `call_app' 1b0d60dc | /usr/share/gems/gems/railties-6.1.7.9/lib/rails/rack/logger.rb:28:in `call' 1b0d60dc | /usr/share/gems/gems/sprockets-rails-3.5.2/lib/sprockets/rails/quiet_assets.rb:17:in `call' 1b0d60dc | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/remote_ip.rb:81:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/request_id.rb:26:in `call' 1b0d60dc | /usr/share/gems/gems/katello-4.15.0.pre.master/lib/katello/prevent_json_parsing.rb:12:in `call' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/method_override.rb:24:in `call' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/runtime.rb:22:in `call' 1b0d60dc | /usr/share/gems/gems/activesupport-6.1.7.9/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/executor.rb:14:in `call' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/sendfile.rb:110:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/ssl.rb:77:in `call' 1b0d60dc | /usr/share/gems/gems/actionpack-6.1.7.9/lib/action_dispatch/middleware/host_authorization.rb:142:in `call' 1b0d60dc | /usr/share/gems/gems/secure_headers-6.7.0/lib/secure_headers/middleware.rb:11:in `call' 1b0d60dc | /usr/share/gems/gems/railties-6.1.7.9/lib/rails/engine.rb:539:in `call' 1b0d60dc | /usr/share/gems/gems/railties-6.1.7.9/lib/rails/railtie.rb:207:in `public_send' 1b0d60dc | /usr/share/gems/gems/railties-6.1.7.9/lib/rails/railtie.rb:207:in `method_missing' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/urlmap.rb:74:in `block in call' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/urlmap.rb:58:in `each' 1b0d60dc | /usr/share/gems/gems/rack-2.2.8.1/lib/rack/urlmap.rb:58:in `call' 1b0d60dc | /usr/share/gems/gems/puma-6.4.3/lib/puma/configuration.rb:272:in `call' 1b0d60dc | /usr/share/gems/gems/puma-6.4.3/lib/puma/request.rb:100:in `block in handle_request' 1b0d60dc | /usr/share/gems/gems/puma-6.4.3/lib/puma/thread_pool.rb:378:in `with_force_shutdown' 1b0d60dc | /usr/share/gems/gems/puma-6.4.3/lib/puma/request.rb:99:in `handle_request' 1b0d60dc | /usr/share/gems/gems/puma-6.4.3/lib/puma/server.rb:464:in `process_client' 1b0d60dc | /usr/share/gems/gems/puma-6.4.3/lib/puma/server.rb:245:in `block in run' 1b0d60dc | /usr/share/gems/gems/puma-6.4.3/lib/puma/thread_pool.rb:155:in `block in spawn_thread' 1b0d60dc | /usr/share/gems/gems/logging-2.4.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context' 2024-11-25T10:28:14 [I|app|1b0d60dc] Rendered api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout (Duration: 0.3ms | Allocations: 191) 2024-11-25T10:28:14 [I|app|1b0d60dc] Rendered layout api/v2/layouts/error_layout.json.erb (Duration: 0.5ms | Allocations: 286) 2024-11-25T10:28:14 [I|app|1b0d60dc] Completed 500 Internal Server Error in 38ms (Views: 0.9ms | ActiveRecord: 6.1ms | Allocations: 18290)
How reproducible:
Deterministic
Is this issue a regression from an earlier version:
Yes, in RHEL
Steps to Reproduce:
1. Have a Satellite and RHEL 10 client
2. Add custom repos from download.devel
3. In the activation key, override these repos to enabled
4. Run a global registration script
5. (After it fails, attempt to register insights-client manually)
Actual behavior
ISE 500, seemingly Satellite expects some variable that the insights-client's API call doesn't define
Expected behavior:Insights registered, working
Business Impact / Additional info:
Not yet released