Bug 1474382 - Capsule sync of Red Hat repository fails in errata due to "command document too large"
Summary: Capsule sync of Red Hat repository fails in errata due to "command document t...
Keywords:
Status: CLOSED DUPLICATE of bug 1437150
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Capsule - Content
Version: 6.2.10
Hardware: All
OS: Linux
unspecified
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-24 13:46 UTC by Julio Entrena Perez
Modified: 2020-12-14 09:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 17:45:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1410649 0 high CLOSED Sync fails due to error - PulpExecutionException: Importer indicated a failed response 2023-09-15 00:00:56 UTC
Red Hat Bugzilla 1437150 0 high CLOSED Errata package list has limited capacity and can cause a DocumentTooLarge error 2021-12-10 14:58:58 UTC
Red Hat Knowledge Base (Solution) 3071151 0 None None None 2017-07-24 13:48:19 UTC

Internal Links: 1410649 1437150

Description Julio Entrena Perez 2017-07-24 13:46:47 UTC
Description of problem:
A "Actions::Katello::ContentView::CapsuleGenerateAndSync" task fails in a "Actions::Pulp::Consumer::SyncCapsule" step on a Red Hat repository with error "PulpExecutionException: Importer indicated a failed response".

The details of the step show error "command document too large" reported for errata:

85: Actions::Pulp::Consumer::SyncCapsule (skipped) [ 2600.20s / 55.35s ]
Started at: 2017-07-20 12:09:03 UTC
Ended at: 2017-07-20 12:52:23 UTC
Real time: 2600.20s
Execution time (excluding suspended state): 55.35s

Input:

---
capsule_id: 8
repo_pulp_id: IAG-Library-HA_RHEL7_x86_64-Red_Hat_Software_Collections__for_RHEL_Server_-Red_Hat_Software_Collections_RPMs_for_Red_Hat_Enterprise_Linux_7_Server_x86_64_7Server
remote_user: admin
remote_cp_user: admin
locale: en

Output:

---
pulp_tasks:
- exception: 
  task_type: pulp.server.managers.repo.sync.sync
  _href: "/pulp/api/v2/tasks/caa86789-46a2-4c15-8755-1e3093fb6ac1/"
  task_id: caa86789-46a2-4c15-8755-1e3093fb6ac1
  tags:
  - pulp:repository:IAG-Library-HA_RHEL7_x86_64-Red_Hat_Software_Collections__for_RHEL_Server_-Red_Hat_Software_Collections_RPMs_for_Red_Hat_Enterprise_Linux_7_Server_x86_64_7Server
  - pulp:action:sync
  finish_time: '2017-07-20T12:21:27Z'
  _ns: task_status
  start_time: '2017-07-20T12:12:18Z'
  traceback: |
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
        R = retval = fun(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 473, in __call__
        return super(Task, self).__call__(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 103, in __call__
        return super(PulpTask, self).__call__(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
        return self.run(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 812, in sync
        raise pulp_exceptions.PulpExecutionException(_('Importer indicated a failed response'))
    PulpExecutionException: Importer indicated a failed response
    
  spawned_tasks: []
  progress_report:  
[...]
      errata:
        state: FAILED
        error: command document too large
[...]

This happens on all capsules.

Version-Release number of selected component (if applicable):
satellite-6.2.10-4.0.el7sat

How reproducible:
Always

Steps to Reproduce:
1. Unknown, couldn't reproduce this internally
2.
3.

Actual results:
Step "Actions::Pulp::Consumer::SyncCapsule" of the task is skipped.
The repository is missing in the Capsule.
Clients registered to the Capsule with the involved repository enabled can not yum install packages from the repository.

Expected results:
The step completes successfully and clients can install packages.

Additional info:
Error is similar to bug 1410649 (already fixed in 6.2.9), but here the problem happens on a Red Hat repository.

Comment 3 Pavel Moravec 2017-07-25 09:24:57 UTC
Just a guess:

Isnt the root cause the same like in https://bugzilla.redhat.com/show_bug.cgi?id=1425856 ?

Comment 7 Julio Entrena Perez 2017-08-01 08:52:41 UTC
Could this be a duplicate of bug 1437150 ?

Comment 8 Brad Buckingham 2017-08-03 20:21:16 UTC
Julio, I was wondering the same thing regarding comment 7.  That fix is coming with the next 6.2.z (6.2.11).

Dennis, do you know if this could be a duplicate of bug 1437150?

Comment 9 Dennis Kliban 2017-08-08 17:20:11 UTC
I agree that this is a duplicate of bug 1437150.

Comment 10 Brad Buckingham 2017-08-08 17:45:22 UTC
Thanks Dennis!  Based on the feedback, I am going to close this one as a duplicate.  If the issue persists after updating to 6.2.11, please feel free to re-open with additional details.

*** This bug has been marked as a duplicate of bug 1437150 ***


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