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: <pre> 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) </pre> last_successful_migration_time doesn't seem to take into account a reset action (where everything needs to be re-imported)
Created from redmine issue https://projects.theforeman.org/issues/32210
Upstream bug assigned to None
Upstream bug assigned to jsherril
Verified on 6.9.1 snap 1.0.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Satellite 6.9.1 Async Bug Fix Update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:1371