Dashboard UI Error: uninitialized constant SUBSCRIPTION_TEMPLATES

Problem:
When I try to access the Dashboard via the web interface, at the top I choose my organization, I only have one, and in locations I leave any place selected.
Monitor > Dashboard
I get the error:

Oops, we're sorry but something went wrong uninitialized constant #<Class:0x000055f043269920>::SUBSCRIPTION_TEMPLATES
If you feel this is an error with Foreman itself, please open a new issue with Foreman ticketing system, Please include in your report the full error log that can be acquired by running: Foreman-rake errors:fetch_log request_id=24221146 and it is highly Recommended to also attach the foreman-debug output.

When I run the command in the shell:
Foreman-rake errors:fetch_log request_id=24221146

Foreman version: 3.10.0-rc2
Plugins:
  -forman-tasks 9.1.0
  -forman_ansible 13.0.3
  -foreman_bootdisk 21.2.1
  -forman_discovery 24.0.1
  -forman_hooks 0.3.17
  -forman_openscap 7.1.1
  -foreman_puppet 6.2.0
  -forman_remote_execution 12.0.5
  - katello 4.12.0.rc1

2024-03-12T14:18:15 [I|app|2b75764c] Started GET "/" for 172.28.2.178 at 2024-03-12 14:18:15 -0300
2024-03-12T14:18:15 [I|app|2b75764c] Processing by DashboardController#index as HTML
2024-03-12T14:18:15 [I|app|2b75764c] Rendered dashboard/index.html.erb within layouts/application (Duration: 3.0ms | Allocations: 1300)
2024-03-12T14:18:15 [I|app|2b75764c] Rendered layout layouts/application.html.erb (Duration: 3.1ms | Allocations: 1355)
2024-03-12T14:18:15 [W|app|2b75764c] uninitialized constant #<Class:0x000055f043269920>::SUBSCRIPTION_TEMPLATES
2024-03-12T14:18:15 [I|app|2b75764c] Backtrace for 'uninitialized constant #<Class:0x000055f043269920>::SUBSCRIPTION_TEMPLATES' error (ActionView::Template::Error): uninitialized constant #<Class:0x000055f043269920> ::SUBSCRIPTION$
  2b75764c | /usr/share/gems/gems/katello-4.12.0.rc1/app/helpers/katello/concerns/dashboard_helper_extensions.rb:16:in `block in removed_widgets'
  2b75764c | /usr/share/gems/gems/katello-4.12.0.rc1/app/helpers/katello/concerns/dashboard_helper_extensions.rb:16:in `reject!'
  2b75764c | /usr/share/gems/gems/katello-4.12.0.rc1/app/helpers/katello/concerns/dashboard_helper_extensions.rb:16:in `removed_widgets'
  2b75764c | /usr/share/foreman/app/helpers/dashboard_helper.rb:32:in `widgets_to_add'
  2b75764c | /usr/share/foreman/app/helpers/dashboard_helper.rb:16:in `block in dashboard_actions'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/helpers/capture_helper.rb:45:in `capture'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/helpers/tag_helper.rb:342:in `content_tag'
  2b75764c | /usr/share/foreman/app/helpers/dashboard_helper.rb:15:in `dashboard_actions'

  2b75764c | /usr/share/foreman/app/views/dashboard/index.html.erb:2:in `_app_views_dashboard_index_html_erb___343703000943874155_188380'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/base.rb:247:in `public_send'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/base.rb:247:in `_run'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:154:in `block in render'
  2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:205:in `instrument'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:345:in `instrument_render_template'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/template.rb:152:in `render'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:61:in `block (2 levels) in render_template'
  2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `block in instrument'
  2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
  2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `instrument'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:56:in `block in render_template'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:71:in `block in render_with_layout'
  2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `block in instrument'
  2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
  2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `instrument'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:70:in `render_with_layout'
  2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_rendere
 2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:55:in `render_template'
 2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/template_renderer.rb:11:in `render'
 2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
 2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
 2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/rendering.rb:117:in `block in _render_template'
 2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/base.rb:273:in `in_rendering_context'
 2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/rendering.rb:116:in `_render_template'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/streaming.rb:218:in `_render_template'
 2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/rendering.rb:103:in `render_to_body'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/renderers.rb:142:in `render_to_body
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/abstract_controller/rendering.rb:25:in `render'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/rendering.rb:36:in `render'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'
 2b75764c | /usr/share/ruby/benchmark.rb:308:in `realtime'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/core_ext/benchmark.rb:14:in `ms'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:46:in `block in render'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'
 2b75764c | /usr/share/gems/gems/activerecord-6.1.7.7/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:45:in `render'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/implicit_render.rb:35:in `default_render'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `tap'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/abstract_controller/base.rb:228:in `process_action'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/rendering.rb:30:in `process_action'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 2b75764c | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 2b75764c | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 2b75764c | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 2b75764c | /usr/share/gems/gems/audited-5.4.3/lib/audited/sweeper.rb:16:in `around'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 2b75764c | /usr/share/gems/gems/audited-5.4.3/lib/audited/sweeper.rb:16:in `around'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:137:in `run_callbacks'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/abstract_controller/callbacks.rb:41:in `process_action'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/rescue.rb:22:in `process_action'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `block in instrument'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `instrument'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:33:in `process_action'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
 2b75764c | /usr/share/gems/gems/activerecord-6.1.7.7/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/abstract_controller/base.rb:165:in `process'
 2b75764c | /usr/share/gems/gems/actionview-6.1.7.7/lib/action_view/rendering.rb:39:in `process'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal.rb:190:in `dispatch'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_controller/metal.rb:254:in `dispatch'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/journey/router.rb:32:in `each'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/journey/router.rb:32:in `serve'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/routing/route_set.rb:842:in `call'
 2b75764c | /usr/share/gems/gems/katello-4.12.0.rc1/lib/katello/middleware/organization_created_enforcer.rb:18:in `call'
 2b75764c | /usr/share/gems/gems/katello-4.12.0.rc1/lib/katello/middleware/event_daemon.rb:10:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 2b75764c | /usr/share/gems/gems/apipie-dsl-2.6.1/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 2b75764c | /usr/share/gems/gems/apipie-rails-1.3.0/lib/apipie/static_dispatcher.rb:74:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
 2b75764c | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
 2b75764c | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 2b75764c | /usr/share/gems/gems/apipie-rails-1.3.0/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/tempfile_reaper.rb:15:in `call'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/etag.rb:27:in `call'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/conditional_get.rb:27:in `call'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/head.rb:12:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/http/permissions_policy.rb:22:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/http/content_security_policy.rb:19:in `call'
 2b75764c | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/session/abstract/id.rb:266:in `context'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/session/abstract/id.rb:260:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/cookies.rb:697:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:98:in `run_callbacks'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 2b75764c | /usr/share/gems/gems/railties-6.1.7.7/lib/rails/rack/logger.rb:37:in `call_app'
 2b75764c | /usr/share/gems/gems/railties-6.1.7.7/lib/rails/rack/logger.rb:28:in `call'
 2b75764c | /usr/share/gems/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 2b75764c | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'

 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 2b75764c | /usr/share/gems/gems/request_store-1.6.0/lib/request_store/middleware.rb:19:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/request_id.rb:26:in `call'
 2b75764c | /usr/share/gems/gems/katello-4.12.0.rc1/lib/katello/prevent_json_parsing.rb:12:in `call'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/method_override.rb:24:in `call'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/runtime.rb:22:in `call'
 2b75764c | /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/executor.rb:14:in `call'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/sendfile.rb:110:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/ssl.rb:77:in `call'
 2b75764c | /usr/share/gems/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/host_authorization.rb:142:in `call'
 2b75764c | /usr/share/gems/gems/secure_headers-6.5.0/lib/secure_headers/middleware.rb:11:in `call'
 2b75764c | /usr/share/gems/gems/railties-6.1.7.7/lib/rails/engine.rb:539:in `call'
 2b75764c | /usr/share/gems/gems/railties-6.1.7.7/lib/rails/railtie.rb:207:in `public_send'
 2b75764c | /usr/share/gems/gems/railties-6.1.7.7/lib/rails/railtie.rb:207:in `method_missing'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:74:in `block in call'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `each'
 2b75764c | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `call'
 2b75764c | /usr/share/gems/gems/puma-6.4.2/lib/puma/configuration.rb:272:in `call'
 2b75764c | /usr/share/gems/gems/puma-6.4.2/lib/puma/request.rb:100:in `block in handle_request'
 2b75764c | /usr/share/gems/gems/puma-6.4.2/lib/puma/thread_pool.rb:378:in `with_force_shutdown'
 2b75764c | /usr/share/gems/gems/puma-6.4.2/lib/puma/request.rb:99:in `handle_request'
 2b75764c | /usr/share/gems/gems/puma-6.4.2/lib/puma/server.rb:464:in `process_client'
 2b75764c | /usr/share/gems/gems/puma-6.4.2/lib/puma/server.rb:245:in `block in run'
 2b75764c | /usr/share/gems/gems/puma-6.4.2/lib/puma/thread_pool.rb:155:in `block in spawn_thread'
 2b75764c | /usr/share/gems/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2024-03-12T14:18:15 [I|app|2b75764c]   Rendered common/500.html.erb within layouts/application (Duration: 0.9ms | Allocations: 541)
2024-03-12T14:18:15 [I|app|2b75764c]   Rendered layouts/base.html.erb (Duration: 2.6ms | Allocations: 2241)
2024-03-12T14:18:15 [I|app|2b75764c]   Rendered layout layouts/application.html.erb (Duration: 4.0ms | Allocations: 3037)
2024-03-12T14:18:15 [I|app|2b75764c] Completed 500 Internal Server Error in 19ms (Views: 4.4ms | ActiveRecord: 4.2ms | Allocations: 7230)

Expected outcome:
Open my organization’s default dashboard.

Foreman and Proxy versions:

Foreman version: 3.10.0-rc2
Plugins:
  -forman-tasks 9.1.0
  -forman_ansible 13.0.3
  -foreman_bootdisk 21.2.1
  -forman_discovery 24.0.1
  -forman_hooks 0.3.17
  -forman_openscap 7.1.1
  -foreman_puppet 6.2.0
  -forman_remote_execution 12.0.5
  - katello 4.12.0.rc1

Foreman and Proxy plugin versions:

Foreman version: 3.10.0-rc2
Plugins:
  -forman-tasks 9.1.0
  -forman_ansible 13.0.3
  -foreman_bootdisk 21.2.1
  -forman_discovery 24.0.1
  -forman_hooks 0.3.17
  -forman_openscap 7.1.1
  -foreman_puppet 6.2.0
  -forman_remote_execution 12.0.5
  - katello 4.12.0.rc1

Distribution and version:

NAME="Rocky Linux"
VERSION="8.9 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.9 (Green Obsidian)"

Other relevant data:

We are using a postgres database external to Foreman.
We perform the installation on a clean and supported VM in a VMWare environment.
We installed Foreman with Katello following the official tutorial.

sudo dnf clean all
sudo dnf update -y
sudo dnf install -y https://yum.theforeman.org/releases/3.10/el8/x86_64/foreman-release.rpm
sudo dnf install -y https://yum.theforeman.org/katello/4.12/katello/el8/x86_64/katello-repos-latest.rpm
sudo dnf install -y https://yum.puppet.com/puppet7-release-el-8.noarch.rpm
sudo dnf module enable katello:el8
sudo dnf install -y foreman-installer-katello
sudo dnf install -y sos
sudo foreman-installer --scenario katello --verbose --log-level=debug \
--foreman-initial-location "xxx" \
--foreman-initial-organization "xxx" \
--foreman-initial-admin-username xxx \
--foreman-initial-admin-password '#xxx' \
--foreman-db-database xxx \
--foreman-db-host sv-bd-xxx.xxx.xxx \
--foreman-db-manage false \
--foreman-db-password 'xxxxxxxxx' \
--foreman-db-port xxx \
--katello-candlepin-db-host sv-bd-xxx.xxx.xxx \
--katello-candlepin-db-port xxx \
--katello-candlepin-db-name xxx \
--katello-candlepin-db-password 'xxx@xxxxxxxxx' \
--katello-candlepin-manage-db false \
--foreman-proxy-content-pulpcore-manage-postgresql false \
--foreman-proxy-content-pulpcore-postgresql-db-name xxx \
--foreman-proxy-content-pulpcore-postgresql-host sv-bd-xxx.xxx.xxx \
--foreman-proxy-content-pulpcore-postgresql-port xxx \
--foreman-proxy-content-pulpcore-postgresql-password 'xxxxx@xxx!xxx&xxx' \
--foreman-proxy-content-pulpcore-postgresql-user xxx
sudo foreman-installer --scenario katello --verbose --log-level=debug \
--enable-foreman-cli-puppet \
--enable-foreman-cli-tasks \
--enable-foreman-compute-vmware \
--foreman-proxy-puppet true \
--foreman-proxy-puppetca true \
--enable-foreman-proxy-plugin-openscap \
--enable-foreman-proxy-plugin-ansible \
--enable-foreman-plugin-puppet \
--enable-foreman-plugin-discovery \
--enable-foreman-plugin-remote-execution \
--enable-foreman-plugin-ansible \
--enable-foreman-plugin-openscap \
--enable-foreman-plugin-hooks \
--enable-foreman-plugin-bootdisk
1 Like

There is a PR out for the fix: Refs #37148 - Remove removed_widgets override by jeremylenz · Pull Request #10927 · Katello/katello · GitHub

It won’t be in 4.12 RC3 but we are planning to have it in for 4.12 GA.

cc @qcjames53

2 Likes

I have applied the changes made in this PR to my environment as follows.

Changing the dashboard_helper_extensions.rb file

cd /usr/share/gems/gems/katello-4.12.0.rc1/app/helpers/katello/concerns/
cp dashboard_helper_extensions.rb dashboard_helper_extensions.rb.old
sudo nano dashboard_helper_extensions.rb

module Katello
   module concerns
     module DashboardHelperExtensions
       def host_query
         ::Host::Managed.authorized('view_hosts', ::Host::Managed).where(:organization => Organization.current)
       end

       def total_host_count
         host_query.size
       end

     end
   end
end

I restarted the Foreman services

sudo foreman-maintain service stop
sudo foreman-maintain service status -b
sudo foreman-maintain service start
sudo foreman-maintain service status -b