Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-26456

Upgrade from Satellite 6.14.z to 6.15.z fails with ERF73-0602 [Foreman::PermissionMissingException]

XMLWordPrintable

    • Important
    • No

      Description of problem:

      Upgrade from Satellite 6.14.z to 6.15.z fails with ERF73-0602 [Foreman::PermissionMissingException]: some permissions were not found: [:view_lookup_values, :create_lookup_values, :edit_lookup_values, :destroy_lookup_values] (Foreman::PermissionMissingException)

      Version-Release number of selected component (if applicable):

      6.14.z to 6.15.z upgrade

      How reproducible:

      In the customer's env

      Steps to Reproduce:

      1. Follow the steps from the doc to upgrade from 6.14.z to 6.15.z

      https://docs.redhat.com/en/documentation/red_hat_satellite/6.15/html/upgrading_connected_red_hat_satellite_to_6.15/index

      Actual results:
      ~~~~~~~~~~
      2024-05-13 17:43:41 [ERROR ] [configure] May 13 17:38:44 valsat02.valtion.fi foreman[3106]: Exiting
      2024-05-13 17:43:41 [ERROR ] [configure] May 13 17:38:44 valsat02.valtion.fi foreman[3106]: /usr/share/foreman/app/models/role.rb:346:in `permission_records': ERF73-0602 [Foreman::PermissionMissingException]: some permissions were not found: [:view_lookup_values, :create_lookup_values, :edit_lookup_values, :destroy_lookup_values] (Foreman::PermissionMissingException)
      ~~~~~~~~~~

      Expected results:

      The upgrade should be completed without any exceptions.

      Additional info:
      Executing the rake to recreate the permission fixed the issue.

      ~~~~~~~~~~~~~~~~
      cat <<FIX | foreman-rake console
      ["view_lookup_values", "create_lookup_values", "edit_lookup_values", "destroy_lookup_values"].each do |per|
      Permission.find_or_create_by(:name => per)
      end
      FIX
      ~~~~~~~~~~~~~~~~

              aruzicka@redhat.com Adam Ruzicka
              rhn-support-sadas Satyajit Das
              Peter Ondrejka Peter Ondrejka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: