Bug 1952947

Summary: [pulp3] 2to3 migration progress reporting will be stuck at "Migrating content to Pulp 3" for a long time
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: RepositoriesAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Cole Higgins <chiggins>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: jjeffers, ltran, osousa
Target Milestone: 6.9.7Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.18.1.41-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-10 16:23:39 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 Justin Sherrill 2021-04-23 15:46:38 UTC
Description of problem:

During migration multiple status reports are sent from pulp:

        {
            "code": "migrating.content",
            "done": 18343,
            "message": "Migrating content to Pulp 3",
            "state": "running",
            "suffix": null,
            "total": 18343
        },
        {
            "code": "migrating.docker.content",
            "done": 11372,
            "message": "Migrating docker content to Pulp 3 docker_blob",
            "state": "completed",
            "suffix": null,
            "total": 11374
        },
        {
            "code": "migrating.rpm.content",
            "done": 121,
            "message": "Migrating rpm content to Pulp 3 distribution",
            "state": "completed",
            "suffix": null,
            "total": 123
        },
        {
            "code": "premigrating.content.general",
            "done": 445,
            "message": "Pre-migrating Pulp 2 PACKAGE_ENVIRONMENT content (general info)",
            "state": "completed",
            "suffix": null,
            "total": 445
        },
        {
            "code": "premigrating.content.general",
            "done": 234003,
            "message": "Pre-migrating Pulp 2 PACKAGE_GROUP content (general info)",
            "state": "completed",
            "suffix": null,
            "total": 234003
        },
        {
            "code": "premigrating.content.detail",
            "done": 234003,
            "message": "Pre-migrating Pulp 2 PACKAGE_GROUP content (detail info)",
            "state": "completed",
            "suffix": null,
            "total": 234003
        },
        {
            "code": "premigrating.content.detail",
            "done": 445,
            "message": "Pre-migrating Pulp 2 PACKAGE_ENVIRONMENT content (detail info)",
            "state": "completed",
            "suffix": null,
            "total": 445
        },
        {
            "code": "migrating.docker.content",
            "done": 2148,
            "message": "Migrating docker content to Pulp 3 docker_manifest",
            "state": "completed",
            "suffix": null,
            "total": 2148
        },
        {
            "code": "creating.repositories",
            "done": 551,
            "message": "Creating repositories in Pulp 3",
            "state": "completed",
            "suffix": null,
            "total": 551
        },
        {
            "code": "premigrating.content.general",
            "done": 102,
            "message": "Pre-migrating Pulp 2 PACKAGE_CATEGORY content (general info)",
            "state": "completed",
            "suffix": null,
            "total": 102
        },
        {
            "code": "migrating.docker.content",
            "done": 37,
            "message": "Migrating docker content to Pulp 3 docker_manifest_list",
            "state": "completed",
            "suffix": null,
            "total": 37
        },
        {
            "code": "migrating.importers",
            "done": 244,
            "message": "Migrating importers to Pulp 3",
            "state": "completed",
            "suffix": null,
            "total": 244
        },
        {
            "code": "migrating.docker.content",
            "done": 1157,
            "message": "Migrating docker content to Pulp 3 docker_tag",
            "state": "completed",
            "suffix": null,
            "total": 1157
        },
        {
            "code": "migrating.rpm.content",
            "done": 195512,
            "message": "Migrating rpm content to Pulp 3 rpm",
            "state": "completed",
            "suffix": null,
            "total": 198822
        },

Katello is picking the first it finds that is 'running':  "Migrating content to Pulp 3". 

This means that the user sees this message for a long time where there are more specific statuses we could print, we should prefer those.

Comment 1 Justin Sherrill 2021-07-30 13:15:41 UTC
Created redmine issue https://projects.theforeman.org/issues/33192 from this bug

Comment 2 Bryan Kearney 2021-07-30 16:04:20 UTC
Upstream bug assigned to jsherril

Comment 3 Bryan Kearney 2021-07-30 16:04:22 UTC
Upstream bug assigned to jsherril

Comment 4 Bryan Kearney 2021-07-30 16:04:48 UTC
Upstream bug assigned to jsherril

Comment 5 Bryan Kearney 2021-07-30 16:04:50 UTC
Upstream bug assigned to jsherril

Comment 6 Bryan Kearney 2021-08-04 20:05:05 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/33192 has been resolved.

Comment 13 errata-xmlrpc 2021-11-10 16:23:39 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.7 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:4612