Problem:
By upgrading to Foreman 3.11 nad Katello to 4.13 i am getting an error:
2024-08-29 09:15:51 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: '/usr/sbin/foreman-rake db:seed' returned 1 instead of one of [0]
2024-08-29 09:15:51 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: '/usr/sbin/foreman-rake db:seed' returned 1 instead of one of [0]
2024-08-29 09:15:59 [NOTICE] [configure] 5000 configuration steps out of 5107 steps complete.
2024-08-29 09:16:11 [NOTICE] [configure] System configuration has finished.
Error 1: Puppet Exec resource 'foreman-rake-db:seed' failed. Logs:
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]
Adding autorequire relationship with User[foreman]
Starting to evaluate the resource (4842 of 5107)
'/usr/sbin/foreman-rake db:seed' won't be executed because of failed check 'refreshonly'
Failed to call refresh: '/usr/sbin/foreman-rake db:seed' returned 1 instead of one of [0]
'/usr/sbin/foreman-rake db:seed' returned 1 instead of one of [0]
Evaluated in 10.58 seconds
Exec[foreman-rake-db:seed](provider=posix)
Executing '/usr/sbin/foreman-rake db:seed'
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns
rake aborted!
Foreman::PermissionMissingException: ERF73-0602 [Foreman::PermissionMissingException]: some permissions were not found: ["execute_jobs_on_infrastructure_hosts", "view_hosts", "view_remote_execution_features", "view_smart_proxies", "view_job_templates", "create_job_invocations", "view_job_invocations", "create_template_invocations", :view_job_templates, :view_job_invocations, :create_job_invocations, :create_template_invocations, :view_hosts, :view_smart_proxies, :view_remote_execution_features, :execute_jobs_on_infrastructure_hosts]
/usr/share/foreman/app/models/role.rb:346:in `permission_records'
/usr/share/foreman/app/models/role.rb:157:in `add_permissions'
/usr/share/foreman/app/models/role.rb:210:in `add_permissions!'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:103:in `block (3 levels) in include_permissions_for_role'
/usr/share/foreman/app/models/concerns/authorizable.rb:103:in `skip_permission_check'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:102:in `block (2 levels) in include_permissions_for_role'
/usr/share/gems/gems/audited-5.6.0/lib/audited/auditor.rb:451:in `without_auditing'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:99:in `block in include_permissions_for_role'
/usr/share/foreman/app/models/role.rb:239:in `ignore_locking'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:98:in `include_permissions_for_role'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:36:in `block in add_permissions_to_default_roles'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:32:in `each'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:32:in `add_permissions_to_default_roles'
/usr/share/foreman/app/registries/foreman/plugin/rbac_registry.rb:75:in `block (2 levels) in setup_roles!'
/usr/share/gems/gems/audited-5.6.0/lib/audited/auditor.rb:451:in `without_auditing'
/usr/share/foreman/app/registries/foreman/plugin/rbac_registry.rb:59:in `block in setup_roles!'
/usr/share/gems/gems/audited-5.6.0/lib/audited/auditor.rb:451:in `without_auditing'
/usr/share/foreman/app/registries/foreman/plugin/rbac_registry.rb:58:in `setup_roles!'
/usr/share/foreman/app/registries/foreman/plugin/rbac_registry.rb:46:in `setup!'
/usr/share/foreman/app/registries/foreman/plugin.rb:310:in `finalize_setup!'
/usr/share/foreman/config/initializers/foreman.rb:28:in `block (2 levels) in <top (required)>'
/usr/share/foreman/config/initializers/foreman.rb:27:in `each'
/usr/share/foreman/config/initializers/foreman.rb:27:in `block in <top (required)>'
/usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/lazy_load_hooks.rb:68:in `block in execute_hook'
/usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
/usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
/usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
/usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/lazy_load_hooks.rb:51:in `each'
/usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
/usr/share/gems/gems/railties-6.1.7.8/lib/rails/application/finisher.rb:140:in `block in <module:Finisher>'
/usr/share/gems/gems/railties-6.1.7.8/lib/rails/initializable.rb:32:in `instance_exec'
/usr/share/gems/gems/railties-6.1.7.8/lib/rails/initializable.rb:32:in `run'
/usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `block in run'
/usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark'
/usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `run'
/usr/share/gems/gems/railties-6.1.7.8/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/share/gems/gems/railties-6.1.7.8/lib/rails/initializable.rb:60:in `run_initializers'
/usr/share/gems/gems/railties-6.1.7.8/lib/rails/application.rb:391:in `initialize!'
/usr/share/gems/gems/railties-6.1.7.8/lib/rails/railtie.rb:207:in `public_send'
/usr/share/gems/gems/railties-6.1.7.8/lib/rails/railtie.rb:207:in `method_missing'
/usr/share/foreman/config/environment.rb:5:in `<top (required)>'
/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/usr/share/gems/gems/zeitwerk-2.6.14/lib/zeitwerk/kernel.rb:34:in `require'
/usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/dependencies.rb:332:in `block in require'
/usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/dependencies.rb:332:in `require'
/usr/share/gems/gems/railties-6.1.7.8/lib/rails/application.rb:367:in `require_environment!'
/usr/share/gems/gems/railties-6.1.7.8/lib/rails/application.rb:533:in `block in run_tasks_blocks'
/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:seed => db:load_config => environment
(See full trace by running task with --trace)
1 error was detected during installation.
Expected outcome:
Foreman and Proxy versions:
Foreman foreman-3.10.0
Katello-4.12.1
Foreman and Proxy plugin versions:
Distribution and version:
RHEL 8.10
Other relevant data: