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 2019390

Summary: Pulp 3 migration output is duplicated
Product: Red Hat Satellite Reporter: Ian Ballou <iballou>
Component: Satellite MaintainAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.7CC: apatel, aupadhye, jjeffers, kgaikwad, zhunting
Target Milestone: 6.10.1Keywords: Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-foreman_maintain-0.8.21 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-18 14:26:51 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 Ian Ballou 2021-11-02 13:27:14 UTC
Description of problem:

During the Pulp 3 migration, the output is duplicated.

Version-Release number of selected component (if applicable):

tfm-rubygem-katello-3.18.1.45-1.el7sat.noarch

How reproducible:

Always

Steps to Reproduce:
1.  Run the content migration
2.
3.

Actual results:

Duplicated output

Expected results:

Normal, non-repeated output

Additional info:

Example:

```
--------------------------------------------------------------------------------
Prepare content for Pulp 3: 
Checking for valid Katello configuraton.
Starting task.

2021-10-14 19:21:16 +0000: Content migration starting. 
2021-10-14 19:21:26 +0000: Pre-migrating Pulp 2 rpm content (general info) 4000/10104
2021-10-14 19:21:36 +0000: Pre-migrating Pulp 2 rpm content (general info) 9000/10104
2021-10-14 19:21:46 +0000: Migrating rpm content to Pulp 3 1001/10104
2021-10-14 19:21:56 +0000: Migrating rpm content to Pulp 3 2001/10104
2021-10-14 19:22:06 +0000: Migrating rpm content to Pulp 3 3001/10104
2021-10-14 19:22:16 +0000: Migrating rpm content to Pulp 3 6001/10104
2021-10-14 19:22:26 +0000: Migrating rpm content to Pulp 3 7001/10104
2021-10-14 19:22:36 +0000: Migrating rpm content to Pulp 3 8001/10104
2021-10-14 19:22:46 +0000: Migrating distribution content to Pulp 3 0/1
2021-10-14 19:22:56 +0000: Distribution creation 1/2
2021-10-14 19:23:06 +0000: Distribution creation 1/2
2021-10-14 19:23:16 +0000: Importing migrated content type rpm: 360/10104
2021-10-14 19:23:26 +0000: Importing migrated content type rpm: 1170/10104
2021-10-14 19:23:36 +0000: Importing migrated content type rpm: 2070/10104
2021-10-14 19:23:46 +0000: Importing migrated content type rpm: 2790/10104
2021-10-14 19:23:56 +0000: Importing migrated content type rpm: 3600/10104
2021-10-14 19:24:06 +0000: Importing migrated content type rpm: 4410/10104
2021-10-14 19:24:16 +0000: Importing migrated content type rpm: 5220/10104
2021-10-14 19:24:26 +0000: Importing migrated content type rpm: 6030/10104
2021-10-14 19:24:36 +0000: Importing migrated content type rpm: 6840/10104
2021-10-14 19:24:46 +0000: Importing migrated content type rpm: 7650/10104
2021-10-14 19:24:56 +0000: Importing migrated content type rpm: 8550/10104
2021-10-14 19:25:06 +0000: Importing migrated content type rpm: 9360/10104
2021-10-14 19:25:16 +0000: Importing migrated content type rpm: 10104/10104
Content Migration completed successfully

Checking for valid Katello configuraton.
Starting task.

2021-10-14 19:21:16 +0000: Content migration starting. 
2021-10-14 19:21:26 +0000: Pre-migrating Pulp 2 rpm content (general info) 4000/10104
2021-10-14 19:21:36 +0000: Pre-migrating Pulp 2 rpm content (general info) 9000/10104
2021-10-14 19:21:46 +0000: Migrating rpm content to Pulp 3 1001/10104
2021-10-14 19:21:56 +0000: Migrating rpm content to Pulp 3 2001/10104
2021-10-14 19:22:06 +0000: Migrating rpm content to Pulp 3 3001/10104
2021-10-14 19:22:16 +0000: Migrating rpm content to Pulp 3 6001/10104
2021-10-14 19:22:26 +0000: Migrating rpm content to Pulp 3 7001/10104
2021-10-14 19:22:36 +0000: Migrating rpm content to Pulp 3 8001/10104
2021-10-14 19:22:46 +0000: Migrating distribution content to Pulp 3 0/1
2021-10-14 19:22:56 +0000: Distribution creation 1/2
2021-10-14 19:23:06 +0000: Distribution creation 1/2
2021-10-14 19:23:16 +0000: Importing migrated content type rpm: 360/10104
2021-10-14 19:23:26 +0000: Importing migrated content type rpm: 1170/10104
2021-10-14 19:23:36 +0000: Importing migrated content type rpm: 2070/10104
2021-10-14 19:23:46 +0000: Importing migrated content type rpm: 2790/10104
2021-10-14 19:23:56 +0000: Importing migrated content type rpm: 3600/10104
2021-10-14 19:24:06 +0000: Importing migrated content type rpm: 4410/10104
2021-10-14 19:24:16 +0000: Importing migrated content type rpm: 5220/10104
2021-10-14 19:24:26 +0000: Importing migrated content type rpm: 6030/10104
2021-10-14 19:24:36 +0000: Importing migrated content type rpm: 6840/10104
2021-10-14 19:24:46 +0000: Importing migrated content type rpm: 7650/10104
2021-10-14 19:24:56 +0000: Importing migrated content type rpm: 8550/10104
2021-10-14 19:25:06 +0000: Importing migrated content type rpm: 9360/10104
2021-10-14 19:25:16 +0000: Importing migrated content type rpm: 10104/10104
Content Migration completed successfully
                             [OK]
--------------------------------------------------------------------------------
```

Comment 1 Justin Sherrill 2021-11-02 13:31:33 UTC
Created redmine issue https://projects.theforeman.org/issues/33828 from this bug

Comment 2 Bryan Kearney 2021-11-04 13:51:57 UTC
Upstream bug assigned to jsherril

Comment 3 Bryan Kearney 2021-11-04 13:51:59 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/33828 has been resolved.

Comment 5 Gaurav Talreja 2021-11-11 08:02:34 UTC
Verified.

Tested on Satellite 6.9.7 Snap 4.0 
Version: rubygem-foreman_maintain-0.8.21-1.el7sat.noarch (From Satellite 6.10.1 Snap 1.0)

Steps:
1. satellite-maintain prep-6.10-upgrade
2. satellite-maintain content prepare

Observation:
No duplicated output was observed in content migration.

Comment 8 errata-xmlrpc 2021-11-18 14:26:51 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 Maintenance 6.10.1 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:4736