Red Hat Satellite 6.8 upgrade fails with error "ERF73-0602 [Foreman::PermissionMissingException]: some permissions were not found"

Solution Verified - Updated -

Issue

  • Upgrade to Red Hat Satellite 6.8 upgrade fails with error:
[DEBUG 2020-11-26T23:22:00 main]  Executing with uid=foreman: '/usr/sbin/foreman-rake db:abort_if_pending_migrations'
[DEBUG 2020-11-26T23:22:35 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/unless: rake aborted!
[DEBUG 2020-11-26T23:22:35 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/unless: Foreman::PermissionMissingException: ERF73-0602 [Foreman::PermissionMissingException]: some permissions were not found: [:view_foreman_rh_cloud, :generate_foreman_rh_cloud]
[DEBUG 2020-11-26T23:22:35 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/unless: /usr/share/foreman/app/models/role.rb:335:in `permission_records'
[DEBUG 2020-11-26T23:22:35 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/unless: /usr/share/foreman/app/models/role.rb:154:in `add_permissions'
[DEBUG 2020-11-26T23:22:35 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/unless: /usr/share/foreman/app/models/role.rb:207:in `add_permissions!'
[DEBUG 2020-11-26T23:22:35 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/unless: /usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:102:in `block (3 levels) in include_permissions_for_role'

Environment

  • Red Hat Satellite 6.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content