Bug 1989378

Summary: Pulp migration failed with " Katello::Errors::Pulp3Error: out of memory"
Product: Red Hat Satellite Reporter: Devendra Singh <desingh>
Component: DocumentationAssignee: Marie Hornickova <mdolezel>
Status: CLOSED NOTABUG QA Contact: satellite-doc-list
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: ttereshc
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-05 09:28:55 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 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