Project

Profile

Help

Issue #8417

closed

Errata in Pulp2 does not updated _last_updated if copied, it causes problems with re-migration

Added by ttereshc over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 93
Quarter:
Q1-2021

Description

To reproduce:

  • create and sync rpm_unsigned repo in pulp2
  • migrate it
  • create a repo copy1 and copy all content from rpm_unsigned
  • run a migration with the following plan
  • in the new repo version errata will be removed because it is not found in Pulp2Content for a copy1 repo.
{
    "plan": {
        "plugins": [
            {
                "repositories": [
                    {
                        "name": "rpm_unsigned",
                        "pulp2_importer_repository_id": "rpm_unsigned",
                        "repository_versions": [
                            {
                                "pulp2_distributor_repository_ids": [
                                    "rpm_unsigned"
                                ],
                                "pulp2_repository_id": "rpm_unsigned"
                            },
                            {
                                "pulp2_distributor_repository_ids": [
                                    "copy1"
                                ],
                                "pulp2_repository_id": "copy1"
                            }
                        ]
                    }
                ],
                "type": "rpm"
            }
        ]
    },
}

Alternatively, if you run for the second migration the migrate-all plan, the new repository will lack errata as well.

We likely need to work around it in the migration plugin, since updating _last_updated date for a copy in pulp 2 will cause problems in pulp2 world - publish will be operational for all repositories which contains an erratum if that erratum has been copied (Katello uses copy heavily).

Actions #1

Updated by ttereshc over 3 years ago

  • Subject changed from Errata in Pulp2 does not updated _last_updated if copied, it can causes problems with re-migration to Errata in Pulp2 does not updated _last_updated if copied, it causes problems with re-migration
Actions #2

Updated by ttereshc over 3 years ago

  • Status changed from NEW to ASSIGNED
Actions #3

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 92 to Sprint 93
Actions #4

Updated by ttereshc over 3 years ago

  • Status changed from ASSIGNED to POST

Added by ttereshc over 3 years ago

Revision e21447b7 | View on GitHub

Fix errata re-migration when it's been copied to a new repo in Pulp2

closes #8417 https://pulp.plan.io/issues/8417

Required PR:https://github.com/pulp/pulp-2to3-migration-test-fixtures/pull/5

Added by ttereshc over 3 years ago

Revision 07d9a3a1 | View on GitHub

Adjust pulp2_last_updated date for the copied errata.

Needed in order to allow user (e.g. Katello) to identify content changed since the last run. Pulp 2 copy operation doesn't update timestamps.

re #8417

Added by ttereshc over 3 years ago

Revision e21447b7 | View on GitHub

Fix errata re-migration when it's been copied to a new repo in Pulp2

closes #8417 https://pulp.plan.io/issues/8417

Required PR:https://github.com/pulp/pulp-2to3-migration-test-fixtures/pull/5

Added by ttereshc over 3 years ago

Revision 07d9a3a1 | View on GitHub

Adjust pulp2_last_updated date for the copied errata.

Needed in order to allow user (e.g. Katello) to identify content changed since the last run. Pulp 2 copy operation doesn't update timestamps.

re #8417

Added by ttereshc over 3 years ago

Revision e21447b7 | View on GitHub

Fix errata re-migration when it's been copied to a new repo in Pulp2

closes #8417 https://pulp.plan.io/issues/8417

Required PR:https://github.com/pulp/pulp-2to3-migration-test-fixtures/pull/5

Added by ttereshc over 3 years ago

Revision 07d9a3a1 | View on GitHub

Adjust pulp2_last_updated date for the copied errata.

Needed in order to allow user (e.g. Katello) to identify content changed since the last run. Pulp 2 copy operation doesn't update timestamps.

re #8417

Actions #5

Updated by ttereshc over 3 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by ttereshc over 3 years ago

  • Tags Katello added
Actions #7

Updated by ttereshc over 3 years ago

  • Sprint/Milestone set to 0.10.0
Actions #8

Updated by pulpbot over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF