Description of problem: After an on-demand sync, switching a repository from on-demand to immediate doesn't properly associate its content to the new artifacts in Pulp. This is perhaps most easily observed when exporting (see reproducer steps). Version-Release number of selected component (if applicable): Satellite 6.10 snap 13 How reproducible: 100% Steps to Reproduce: 1. Download some content on-demand 2. Switch the repo to immediate 3. Perform an export Actual results: The export is smaller than expected because it's missing artifacts. Expected results: The export contains the artifacts. Additional info:
Here are more detailed reproducer steps: 1. Create an on-demand repo and sync it 2. Switch the repo to immediate and sync again 3. Perform an export of the repo Actual results: The export is smaller than expected because it's missing artifacts. Expected results: The export contains the artifacts.
Adding a workaround for this issue. Don't sync on-demand first. Go straight to immediate for any export testing.
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.
Steps to test 1. Create an on-demand repo and sync it 2. Switch the repo to immediate and sync again 3. Perform an export of the repo: hammer content-export complete version --id <cvv-id> --organization-id <org_id> 4. Check the size of the dir and compare it with another sat with an export that does have immediate sync Expected: The dir size should be the same. Actual: The dir size of both exports are the same. This is resyncing immediate # du -sh /var/lib/pulp/exports/Default_Organization/test/1.0/2021-08-30T14-09-31-04-00/ 359M /var/lib/pulp/exports/Default_Organization/test/1.0/2021-08-30T14-09-31-04-00/ This is one already in immediate # du -sh /var/lib/pulp/exports/Default_Organization/Export-Library/1.0/2021-08-30T14-22-57-04-00 359M /var/lib/pulp/exports/Default_Organization/Export-Library/1.0/2021-08-30T14-22-57-04-00 I've also tested them on complete library and it works as expected.
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 (Moderate: Satellite 6.10 Release), 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/RHSA-2021:4702