Bug #33278
closedPulp migration failed with "NoMethodError: undefined method 'pulp_id' for nil:NilClass"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1994651
Description of problem: Pulp migration failed with "NoMethodError: undefined method `pulp_id' for nil:NilClass"
Version-Release number of selected component (if applicable):
6.9.4
How reproducible:
always with
Steps to Reproduce:
1. Restore the 6.9.z satellite by using a specific customers database backup.
2. Satellite restored successfully.
3. Run the pulp migration and it gets failed with "NoMethodError: undefined method `pulp_id' for nil:NilClass" error.
Actual results:
pulp migration failed due to "NoMethodError: undefined method `pulp_id' for nil:NilClass" error.
Expected results:
pulp migration should be completed successfully.
Additional info: The error was happening due to corrupt data in the database, for the workaround, we can use "foreman-rake katello:correct_repositories COMMIT=true"