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"
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Justin Sherrill
- Pull request https://github.com/Katello/katello/pull/9560 added
Updated by Chris Roberts over 3 years ago
- Target version set to Katello 3.18.5
- Triaged changed from No to Yes
Updated by Justin Sherrill over 3 years ago
- Status changed from Ready For Testing to Closed
Updated by Jonathon Turel over 3 years ago
- Subject changed from Pulp migration failed with "NoMethodError: undefined method `pulp_id' for nil:NilClass" to Pulp migration failed with "NoMethodError: undefined method 'pulp_id' for nil:NilClass"