Hide Forgot
Description of problem: While attempting to verify https://bugzilla.redhat.com/show_bug.cgi?id=1312640 I tried to export "Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server" which failed with the generic error: uninitialized constant Actions::Pulp::AbstractAsyncTask::PulpError Version-Release number of selected component (if applicable): * Satellite 6.2.0 SNAP 6.1 How reproducible: Steps to Reproduce: 1. Synchronize "Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server" 2. Try to export it with hammer repository export command 3. Actual results: Expected results: Additional info: Apr 4 10:16:38 ibm-x3250m4-01 pulp: celery.worker.job:INFO: Task pulp.server.async.tasks._queue_reserved_task[24873ade-93e8-433c-875a-79da03a44031] succeeded in 0.0370843109849s: None Apr 4 10:18:44 ibm-x3250m4-01 systemd-logind: New session 255 of user root. Apr 4 10:18:44 ibm-x3250m4-01 systemd: Started Session 255 of user root. Apr 4 10:18:44 ibm-x3250m4-01 systemd: Starting Session 255 of user root. Apr 4 10:19:08 ibm-x3250m4-01 pulp: py.warnings:WARNING: (11630-68832) /usr/lib/python2.7/site-packages/pulp/server/managers/repo/group/publish.py:79: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead Apr 4 10:19:08 ibm-x3250m4-01 pulp: py.warnings:WARNING: (11630-68832) distributor_coll.save(distributor) Apr 4 10:19:08 ibm-x3250m4-01 pulp: py.warnings:WARNING: (11630-68832) Apr 4 10:19:08 ibm-x3250m4-01 pulp: py.warnings:WARNING: (11630-68832) /usr/lib/python2.7/site-packages/pulp/server/managers/repo/group/publish.py:85: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead Apr 4 10:19:08 ibm-x3250m4-01 pulp: py.warnings:WARNING: (11630-68832) publish_result_coll.save(result) Apr 4 10:19:08 ibm-x3250m4-01 pulp: py.warnings:WARNING: (11630-68832) Apr 4 10:19:08 ibm-x3250m4-01 pulp: pulp.server.async.tasks:INFO: Task failed : [1a09ba40-1278-45a0-8098-645faaaab693] Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) Task pulp.server.managers.repo.group.publish.publish[1a09ba40-1278-45a0-8098-645faaaab693] raised unexpected: DocumentTooLarge('BSON document too large (18598541 bytes) - the connected serversupports BSON document sizes up to 16777216 bytes.',) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) Traceback (most recent call last): Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) R = retval = fun(*args, **kwargs) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 473, in __call__ Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) return super(Task, self).__call__(*args, **kwargs) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 103, in __call__ Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) return super(PulpTask, self).__call__(*args, **kwargs) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__ Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) return self.run(*args, **kwargs) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/group/publish.py", line 59, in publish Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) conduit, call_config) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/group/publish.py", line 85, in _do_publish Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) publish_result_coll.save(result) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) File "/usr/lib64/python2.7/site-packages/pymongo/collection.py", line 2180, in save Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) check_keys, False, manipulate, write_concern) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) File "/usr/lib64/python2.7/site-packages/pymongo/collection.py", line 728, in _update Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) self.codec_options) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) File "/usr/lib64/python2.7/site-packages/pymongo/collection.py", line 458, in _legacy_write Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) rqst_id, msg, max_size, acknowledged) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) File "/usr/lib64/python2.7/site-packages/pymongo/pool.py", line 261, in legacy_write Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) self.send_message(msg, max_doc_size) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) File "/usr/lib64/python2.7/site-packages/pymongo/pool.py", line 228, in send_message Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) (max_doc_size, self.max_bson_size)) Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:ERROR: (11392-68832) DocumentTooLarge: BSON document too large (18598541 bytes) - the connected serversupports BSON document sizes up to 16777216 bytes. Apr 4 10:19:09 ibm-x3250m4-01 pulp: celery.worker.job:INFO: Task pulp.server.async.tasks._release_resource[43032b08-2775-404f-b9e6-a4e2056f5f44] succeeded in 0.00403834600002s: None Apr 4 10:19:19 ibm-x3250m4-01 pulp: py.warnings:WARNING: (17854-22400) /usr/lib/python2.7/site-packages/pulp/server/managers/repo/group/distributor.py:230: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead. Apr 4 10:19:19 ibm-x3250m4-01 pulp: py.warnings:WARNING: (17854-22400) distributor_coll.remove(distributor) Apr 4 10:19:19 ibm-x3250m4-01 pulp: py.warnings:WARNING: (17854-22400) Apr 4 10:19:19 ibm-x3250m4-01 pulp: py.warnings:WARNING: (17854-22400) /usr/lib/python2.7/site-packages/pulp/server/managers/repo/group/cud.py:168: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead. Apr 4 10:19:19 ibm-x3250m4-01 pulp: py.warnings:WARNING: (17854-22400) collection.remove({'id': group_id}) Apr 4 10:19:19 ibm-x3250m4-01 pulp: py.warnings:WARNING: (17854-22400)
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.
WORKAROUND: Configure the repositories being exported with a download policy of 'immediate'. Note: This is the policy used in the Satellite 6.2 Beta.
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.
The Pulp upstream bug status is at VERIFIED. Updating the external tracker on this bug.
This is a lazy-sync related bug, moving to 6.2.z
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.
Moving to POST as upstream fix is available.
Build: Satellite 6.2.3 snap 2.0 Verification Steps: 1. Created a custom product and set the download policy to on-demand 2. Tried to export the product hammer> repository info --id 5 --organization-id 1 ID: 5 Name: The_product_repo Label: The_product_repo Organization: Default Organization Red Hat Repository: no Content Type: yum Checksum Type: sha256 URL: http://abc.redhat.com/pulp/repos/Sat6-CI/QA/Satellite_ RHEL7/custom/Red_Hat_Satellite_6_2_Composes/RHEL7_Satellite_x86_64_os/ Publish Via HTTP: yes Published At: http://xyz.redhat.com/pulp/repos/Default_Organization/ Library/custom/The_product/The_product_repo/ Relative Path: Default_Organization/Library/custom/The_product/The_ product_repo *Download Policy: on_demand* Product: ID: 7 Name: The_product GPG Key: Sync: Status: Success Last Sync Date: 1 minute Created: 2016/10/12 06:27:48 Updated: 2016/10/12 06:28:48 Content Counts: Packages: 302 Package Groups: 1 Errata: 0 hammer> repository export --id 5 [.......................... ] [37%] Error: PLP0046: The repository group cannot be exported because these repos have units that are not downloaded: Default_Organization-The_ product-The_product_repo The task has been started and then failed at 37% , as expected with proper error. Marking this to verified.
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, 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-2016:2108