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 1989378 - Pulp migration failed with " Katello::Errors::Pulp3Error: out of memory"
Summary: Pulp migration failed with " Katello::Errors::Pulp3Error: out of memory"
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Documentation
Version: 6.9.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: Unspecified
Assignee: Marie Hornickova
QA Contact: satellite-doc-list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-03 05:25 UTC by Devendra Singh
Modified: 2022-01-05 09:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-05 09:28:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Devendra Singh 2021-08-03 05:25:35 UTC
Description of problem: Pulp migration failed with " Katello::Errors::Pulp3Error: out of memory"


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

How reproducible:
1/1

Steps to Reproduce:
1. Prepare the 6.9.z setup using the upgrade template.
2. Run the pulp migration.
3. Pulp migration fails with error "Katello::Errors::Pulp3Error: out of memory"

# satellite-maintain content prepare
Running Prepare content for Pulp 3
================================================================================
Start applicable services:
.............
.............
 2021-08-02 17:10:18 -0400: Pre-migrating Pulp 2 rpm content (detail info) 40000/104731Migration failed, You will want to investigate: https://xyz.com/foreman_tasks/tasks/ef60cce8-7d2e-4e52-b9ea-71dab48aa533
 rake aborted!
 ForemanTasks::TaskError: Task ef60cce8-7d2e-4e52-b9ea-71dab48aa533: Katello::Errors::Pulp3Error: out of memory
 DETAIL:  Failed on request of size 325522239 in memory context "ErrorContext".
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.33/lib/katello/tasks/pulp3_migration.rake:35:in `block (2 levels) in <top (required)>'
 /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
 Tasks: TOP => katello:pulp3_migration
 (See full trace by running task with --trace)
                                                                       [31m[1m[FAIL][0m                                   
 Failed executing foreman-rake katello:pulp3_migration, exit status 1
 --------------------------------------------------------------------------------
 Scenario [Prepare content for Pulp 3] failed.
 
 The following steps ended up in failing state:
 
   [content-prepare]
 
 Resolve the failed steps and rerun
 the command. In case the failures are false positives, 
 use --whitelist="content-prepare"
 

Actual results:
Pulp migration failed with the error " Katello::Errors::Pulp3Error: out of memory"

Expected results:
Pulp migration should be completed successfully.

Additional info: The setup has 20 GB RAM and 6 CPUs.

Comment 16 Marie Hornickova 2022-01-05 09:28:55 UTC
The instructions on how to configure "PULP_CONTENT_PREMIGRATION_BATCH_SIZE" already exist in the Upgrading and updating guide for Satellite 6.10:

https://access.redhat.com/documentation/en-us/red_hat_satellite/6.10/html-single/upgrading_and_updating_red_hat_satellite/index#Upgrading_Server_upgrade-guide


Note You need to log in before you can comment on or make changes to this bug.