Project

General

Profile

Actions

Bug #32210

closed

Pulp3 Migration after migration reset doesn't import errata info from pulp3

Added by Justin Sherrill about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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 #1

Updated by Justin Sherrill about 3 years ago

  • Bugzilla link set to 1943317
Actions #2

Updated by The Foreman Bot about 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Justin Sherrill
  • Pull request https://github.com/Katello/katello/pull/9244 added
Actions #3

Updated by Justin Sherrill about 3 years ago

  • Target version set to Katello 3.18.3
  • Triaged changed from No to Yes
Actions #4

Updated by Justin Sherrill about 3 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF