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 1939558

Summary: pulp3: katello content switchover rake task uses a sync task instead of an async task
Product: Red Hat Satellite Reporter: Vladimír Sedmík <vsedmik>
Component: Content ViewsAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Vladimír Sedmík <vsedmik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: zhunting
Target Milestone: 6.9.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.18.1.21-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:26:20 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 Vladimír Sedmík 2021-03-16 15:58:22 UTC
Description of problem:
When trying to migrate a setup with 9 RH repos published into 90 CVs in total, I hit a task timeout during the switchover:

[root@satellite ~]# foreman-rake katello:pulp3_content_switchover
rake aborted!
Timeout::Error: The time waiting for task 0a74a331-ee37-483c-82d6-05615be7023e to finish exceeded the 'foreman_tasks_sync_task_timeout' (120s)


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


How reproducible:
1/1


Steps to Reproduce:
1. have a SAT with 9 RH repos published into 90 CVs
2. run the content migration to pulp3


Actual results:
timeout error


Expected results:
no errors


Additional info:
Workaround: To avoid the timeout error set higher value for 'Sync task timeout' (Administer > Settings > ForemanTasks)

Comment 1 Bryan Kearney 2021-03-16 16:04:42 UTC
Upstream bug assigned to jsherril

Comment 2 Bryan Kearney 2021-03-16 16:04:44 UTC
Upstream bug assigned to jsherril

Comment 5 Vladimír Sedmík 2021-03-29 10:53:25 UTC
Verified on snap 19.1 with tfm-rubygem-katello-3.18.1.22-1.el7sat.noarch

[root@satellite ~]# foreman-rake katello:pulp3_content_switchover
Content Switchover completed successfully

Comment 8 errata-xmlrpc 2021-04-21 13:26:20 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 (Moderate: Satellite 6.9 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:1313