Actions
Bug #32210
closedPulp3 Migration after migration reset doesn't import errata info from pulp3
Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
Steps:
1) sync a repo with at least one errata
2) migrate the content (foreman-maintain content prepare)
3) reset the migration (foreman-maintain content migration-reset)
4) remigrate (foreman-maintain content prepare)
5) check un-migrated errata:
Katello::RepositoryErratum.where(erratum_pulp3_href: nil).count
This should be zero, but ends up being all RepositoryErratum entries.
The cause of this is this line:
last_migration_time = last_successful_migration_time offset = 0 limit = SETTINGS[:katello][:pulp][:bulk_load_size] response = pulp2_content_api.list(pulp2_content_type_id: 'erratum', offset: offset, limit: limit, pulp2_last_updated__gt: last_migration_time)
last_successful_migration_time doesn't seem to take into account a reset action (where everything needs to be re-imported)
Actions