Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1952960

Summary: [pulp3] Total counter for content migration is updated only after the migration of the whole content type is done
Product: Red Hat Satellite Reporter: Tanya Tereshchenko <ttereshc>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lai <ltran>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: ggainey, jjeffers, osousa, rchan, ttereshc
Target Milestone: 6.9.4Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pulp_2to3_migration-0.11.2-1.el7pc Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1973353 (view as bug list) Environment:
Last Closed: 2021-07-29 12:58:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tanya Tereshchenko 2021-04-23 16:16:54 UTC
Description of problem:

Overall counter

       {
            "code": "migrating.content",
            "done": 18343,
            "message": "Migrating content to Pulp 3",
            "state": "running",
            "suffix": null,
            "total": 18343
        },

even though errata migration is running already, the counter above is not updated.

        {
            "code": "migrating.rpm.content",
            "done": 511512,
            "message": "Migrating rpm content to Pulp 3 erratum",
            "state": "running",
            "suffix": null,
            "total": 4092043
        },

The overall counter should be updated before another content type migration is started.

To check this see Pulp task progress report.

Comment 1 pulp-infra@redhat.com 2021-05-06 20:07:32 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 2 pulp-infra@redhat.com 2021-05-06 20:07:33 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 3 pulp-infra@redhat.com 2021-05-06 21:05:23 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.

Comment 6 Lai 2021-07-09 19:29:12 UTC
Steps to test:

1. Get a 6.9.4 machine
2. Import manifest
3. Enable rhel8 baseOS and appstream
4. perform sync
5. Once completed, run migration
6. Go to task -> content migration -> Running Steps
7. On cli where migration is occurring, wait until it reads "migrating rpm content to pulp3"
8. Check running steps on step 6 and search for "Migrating rpm content to Pulp 3"

Expected result:
Every few second, the number next to "done" under "Migrating rpm content to Pulp 3" should be progressively updated.

Actual result:
Every few seconds, the number next to "done" under "Migrating rpm content to Pulp 3" is progressively updated.

"message": "Migrating rpm content to Pulp 3",
      "code": "migrating.rpm.content",
      "state": "running",
      "total": 26458,
      "done": 3365,
      "suffix": null


    {
      "message": "Migrating rpm content to Pulp 3",
      "code": "migrating.rpm.content",
      "state": "running",
      "total": 26458,
      "done": 3929,
      "suffix": null
    }


      "message": "Migrating rpm content to Pulp 3",
      "code": "migrating.rpm.content",
      "state": "running",
      "total": 26458,
      "done": 4505,
      "suffix": null
    }

Verified on 6.9.4 snap 1 with python3-pulp-2to3-migration-0.11.2-1.el7pc.noarch

Comment 11 errata-xmlrpc 2021-07-29 12:58:50 UTC
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.4 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:2948

Comment 12 errata-xmlrpc 2021-07-29 13:02:56 UTC
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.4 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:2948