Project

Profile

Help

Issue #5285

Test failures - Sync and Publish

Added by kersom over 2 years ago. Updated almost 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 57
Quarter:

Description

Reporting 2 test failures for Fedora 29 and Fedora 30. Pulp 3 RPM plugin.

pulp_rpm/tests/functional/api/test_sync.py::ChecksumConstraintTestCase
pulp_rpm/tests/functional/api/test_publish.py::SyncPublishReferencesUpdateTestCase 

To reproduce run the tests against a pulp 3 installation:

pytest -sv pulp_rpm/tests/functional/api/test_publish.py::SyncPublishReferencesUpdateTestCase
pytest -sv pulp_rpm/tests/functional/api/test_sync.py::ChecksumConstraintTestCase

ChecksumConstraintTestCase failure traceback:

('Task report /pulp/api/v3/tasks/1694b105-d344-4382-b582-156de3c85f50/ '
 "contains a error: {'code': None, 'description': "
 '"\'createrepo_c.UpdateReference\' object has no attribute \'ref_id\'", '
 "'traceback': '  File "
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py", line 822, '
 'in perform_job\\n    rv = job.perform()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 605, in '
 'perform\\n    self._result = self._execute()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 611, in '
 '_execute\\n    return self.func(*self.args, **self.kwargs)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
 'line 68, in synchronize\\n    dv.create()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/declarative_version.py", '
 'line 169, in create\\n    loop.run_until_complete(pipeline)\\n  File '
 '"/usr/lib64/python3.7/asyncio/base_events.py", line 584, in '
 'run_until_complete\\n    return future.result()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
 'line 209, in create_pipeline\\n    await asyncio.gather(*futures)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
 'line 43, in __call__\\n    await self.run()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
 'line 324, in run\\n    reference_dict = '
 'UpdateReference.createrepo_to_dict(reference)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/models.py", '
 'line 676, in createrepo_to_dict\\n    PULP_UPDATE_REFERENCE_ATTRS.ID: '
 "getattr(reference, CR_UPDATE_REFERENCE_ATTRS.ID),\\n'}\n"
 "Full task report: {'_href': "
 "'/pulp/api/v3/tasks/1694b105-d344-4382-b582-156de3c85f50/', '_created': "
 "'2019-08-15T14:05:43.025059Z', 'state': 'failed', 'name': "
 "'pulp_rpm.app.tasks.synchronizing.synchronize', 'started_at': "
 "'2019-08-15T14:05:43.129157Z', 'finished_at': '2019-08-15T14:05:43.672025Z', "
 "'non_fatal_errors': [], 'error': {'code': None, 'description': "
 '"\'createrepo_c.UpdateReference\' object has no attribute \'ref_id\'", '
 "'traceback': '  File "
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py", line 822, '
 'in perform_job\\n    rv = job.perform()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 605, in '
 'perform\\n    self._result = self._execute()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 611, in '
 '_execute\\n    return self.func(*self.args, **self.kwargs)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
 'line 68, in synchronize\\n    dv.create()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/declarative_version.py", '
 'line 169, in create\\n    loop.run_until_complete(pipeline)\\n  File '
 '"/usr/lib64/python3.7/asyncio/base_events.py", line 584, in '
 'run_until_complete\\n    return future.result()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
 'line 209, in create_pipeline\\n    await asyncio.gather(*futures)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
 'line 43, in __call__\\n    await self.run()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
 'line 324, in run\\n    reference_dict = '
 'UpdateReference.createrepo_to_dict(reference)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/models.py", '
 'line 676, in createrepo_to_dict\\n    PULP_UPDATE_REFERENCE_ATTRS.ID: '
 "getattr(reference, CR_UPDATE_REFERENCE_ATTRS.ID),\\n'}, 'worker': "
 "'/pulp/api/v3/workers/9dae6a11-65f7-4c0a-995b-9d1dada5bb1c/', 'parent': "
 "None, 'spawned_tasks': [], 'progress_reports': [{'message': 'Parsed "
 "Packages', 'state': 'running', 'total': 35, 'done': 35, 'suffix': None}, "
 "{'message': 'Parsed Erratum', 'state': 'running', 'total': 4, 'done': 0, "
 "'suffix': None}, {'message': 'Downloading Metadata Files', 'state': "
 "'failed', 'total': 5, 'done': 5, 'suffix': None}, {'message': 'Downloading "
 "Artifacts', 'state': 'canceled', 'total': None, 'done': 0, 'suffix': None}, "
 "{'message': 'Associating Content', 'state': 'canceled', 'total': None, "
 "'done': 0, 'suffix': None}], 'created_resources': [], "
 "'reserved_resources_record': "
 "['/pulp/api/v3/remotes/rpm/rpm/7ba24c5b-9c20-411b-9581-449c8e571129/', "
 "'/pulp/api/v3/repositories/12ff443f-bdd1-44b7-be09-b5e62141b9f9/']}",
 {'_created': '2019-08-15T14:05:43.025059Z',
  '_href': '/pulp/api/v3/tasks/1694b105-d344-4382-b582-156de3c85f50/',
  'created_resources': [],
  'error': {'code': None,
            'description': "'createrepo_c.UpdateReference' object has no "
                           "attribute 'ref_id'",
            'traceback': '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py", '
                         'line 822, in perform_job\n'
                         '    rv = job.perform()\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", '
                         'line 605, in perform\n'
                         '    self._result = self._execute()\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", '
                         'line 611, in _execute\n'
                         '    return self.func(*self.args, **self.kwargs)\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
                         'line 68, in synchronize\n'
                         '    dv.create()\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/declarative_version.py", '
                         'line 169, in create\n'
                         '    loop.run_until_complete(pipeline)\n'
                         '  File '
                         '"/usr/lib64/python3.7/asyncio/base_events.py", line '
                         '584, in run_until_complete\n'
                         '    return future.result()\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
                         'line 209, in create_pipeline\n'
                         '    await asyncio.gather(*futures)\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
                         'line 43, in __call__\n'
                         '    await self.run()\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
                         'line 324, in run\n'
                         '    reference_dict = '
                         'UpdateReference.createrepo_to_dict(reference)\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/models.py", '
                         'line 676, in createrepo_to_dict\n'
                         '    PULP_UPDATE_REFERENCE_ATTRS.ID: '
                         'getattr(reference, CR_UPDATE_REFERENCE_ATTRS.ID),\n'},
  'finished_at': '2019-08-15T14:05:43.672025Z',
  'name': 'pulp_rpm.app.tasks.synchronizing.synchronize',
  'non_fatal_errors': [],
  'parent': None,
  'progress_reports': [{'done': 35,
                        'message': 'Parsed Packages',
                        'state': 'running',
                        'suffix': None,
                        'total': 35},
                       {'done': 0,
                        'message': 'Parsed Erratum',
                        'state': 'running',
                        'suffix': None,
                        'total': 4},
                       {'done': 5,
                        'message': 'Downloading Metadata Files',
                        'state': 'failed',
                        'suffix': None,
                        'total': 5},
                       {'done': 0,
                        'message': 'Downloading Artifacts',
                        'state': 'canceled',
                        'suffix': None,
                        'total': None},
                       {'done': 0,
                        'message': 'Associating Content',
                        'state': 'canceled',
                        'suffix': None,
                        'total': None}],
  'reserved_resources_record': ['/pulp/api/v3/remotes/rpm/rpm/7ba24c5b-9c20-411b-9581-449c8e571129/',
                                '/pulp/api/v3/repositories/12ff443f-bdd1-44b7-be09-b5e62141b9f9/'],
  'spawned_tasks': [],
  'started_at': '2019-08-15T14:05:43.129157Z',
  'state': 'failed',
  'worker': '/pulp/api/v3/workers/9dae6a11-65f7-4c0a-995b-9d1dada5bb1c/'})

SyncPublishReferencesUpdateTestCase failure traceback:

('Task report /pulp/api/v3/tasks/4a0e6ca0-0e8f-4628-bd55-88ed9521d6b0/ '
 "contains a error: {'code': None, 'description': "
 '"\'createrepo_c.UpdateReference\' object has no attribute \'ref_id\'", '
 "'traceback': '  File "
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py", line 822, '
 'in perform_job\\n    rv = job.perform()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 605, in '
 'perform\\n    self._result = self._execute()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 611, in '
 '_execute\\n    return self.func(*self.args, **self.kwargs)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
 'line 68, in synchronize\\n    dv.create()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/declarative_version.py", '
 'line 169, in create\\n    loop.run_until_complete(pipeline)\\n  File '
 '"/usr/lib64/python3.7/asyncio/base_events.py", line 584, in '
 'run_until_complete\\n    return future.result()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
 'line 209, in create_pipeline\\n    await asyncio.gather(*futures)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
 'line 43, in __call__\\n    await self.run()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
 'line 324, in run\\n    reference_dict = '
 'UpdateReference.createrepo_to_dict(reference)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/models.py", '
 'line 676, in createrepo_to_dict\\n    PULP_UPDATE_REFERENCE_ATTRS.ID: '
 "getattr(reference, CR_UPDATE_REFERENCE_ATTRS.ID),\\n'}\n"
 "Full task report: {'_href': "
 "'/pulp/api/v3/tasks/4a0e6ca0-0e8f-4628-bd55-88ed9521d6b0/', '_created': "
 "'2019-08-15T14:07:15.612261Z', 'state': 'failed', 'name': "
 "'pulp_rpm.app.tasks.synchronizing.synchronize', 'started_at': "
 "'2019-08-15T14:07:15.688802Z', 'finished_at': '2019-08-15T14:07:16.124723Z', "
 "'non_fatal_errors': [], 'error': {'code': None, 'description': "
 '"\'createrepo_c.UpdateReference\' object has no attribute \'ref_id\'", '
 "'traceback': '  File "
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py", line 822, '
 'in perform_job\\n    rv = job.perform()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 605, in '
 'perform\\n    self._result = self._execute()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 611, in '
 '_execute\\n    return self.func(*self.args, **self.kwargs)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
 'line 68, in synchronize\\n    dv.create()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/declarative_version.py", '
 'line 169, in create\\n    loop.run_until_complete(pipeline)\\n  File '
 '"/usr/lib64/python3.7/asyncio/base_events.py", line 584, in '
 'run_until_complete\\n    return future.result()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
 'line 209, in create_pipeline\\n    await asyncio.gather(*futures)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
 'line 43, in __call__\\n    await self.run()\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
 'line 324, in run\\n    reference_dict = '
 'UpdateReference.createrepo_to_dict(reference)\\n  File '
 '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/models.py", '
 'line 676, in createrepo_to_dict\\n    PULP_UPDATE_REFERENCE_ATTRS.ID: '
 "getattr(reference, CR_UPDATE_REFERENCE_ATTRS.ID),\\n'}, 'worker': "
 "'/pulp/api/v3/workers/3f55ffff-207f-4371-ac7f-7d11f2c29b2c/', 'parent': "
 "None, 'spawned_tasks': [], 'progress_reports': [{'message': 'Parsed "
 "Packages', 'state': 'waiting', 'total': None, 'done': 0, 'suffix': None}, "
 "{'message': 'Parsed Erratum', 'state': 'running', 'total': 4, 'done': 0, "
 "'suffix': None}, {'message': 'Downloading Metadata Files', 'state': "
 "'failed', 'total': 2, 'done': 2, 'suffix': None}, {'message': 'Downloading "
 "Artifacts', 'state': 'canceled', 'total': None, 'done': 0, 'suffix': None}, "
 "{'message': 'Associating Content', 'state': 'canceled', 'total': None, "
 "'done': 0, 'suffix': None}], 'created_resources': [], "
 "'reserved_resources_record': "
 "['/pulp/api/v3/repositories/6655eade-86cf-44fa-9d93-5afe56bc57f8/', "
 "'/pulp/api/v3/remotes/rpm/rpm/98aaf215-47eb-4c1c-aed9-6f716d37e088/']}",
 {'_created': '2019-08-15T14:07:15.612261Z',
  '_href': '/pulp/api/v3/tasks/4a0e6ca0-0e8f-4628-bd55-88ed9521d6b0/',
  'created_resources': [],
  'error': {'code': None,
            'description': "'createrepo_c.UpdateReference' object has no "
                           "attribute 'ref_id'",
            'traceback': '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py", '
                         'line 822, in perform_job\n'
                         '    rv = job.perform()\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", '
                         'line 605, in perform\n'
                         '    self._result = self._execute()\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", '
                         'line 611, in _execute\n'
                         '    return self.func(*self.args, **self.kwargs)\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
                         'line 68, in synchronize\n'
                         '    dv.create()\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/declarative_version.py", '
                         'line 169, in create\n'
                         '    loop.run_until_complete(pipeline)\n'
                         '  File '
                         '"/usr/lib64/python3.7/asyncio/base_events.py", line '
                         '584, in run_until_complete\n'
                         '    return future.result()\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
                         'line 209, in create_pipeline\n'
                         '    await asyncio.gather(*futures)\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/stages/api.py", '
                         'line 43, in __call__\n'
                         '    await self.run()\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", '
                         'line 324, in run\n'
                         '    reference_dict = '
                         'UpdateReference.createrepo_to_dict(reference)\n'
                         '  File '
                         '"/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/models.py", '
                         'line 676, in createrepo_to_dict\n'
                         '    PULP_UPDATE_REFERENCE_ATTRS.ID: '
                         'getattr(reference, CR_UPDATE_REFERENCE_ATTRS.ID),\n'},
  'finished_at': '2019-08-15T14:07:16.124723Z',
  'name': 'pulp_rpm.app.tasks.synchronizing.synchronize',
  'non_fatal_errors': [],
  'parent': None,
  'progress_reports': [{'done': 0,
                        'message': 'Parsed Packages',
                        'state': 'waiting',
                        'suffix': None,
                        'total': None},
                       {'done': 0,
                        'message': 'Parsed Erratum',
                        'state': 'running',
                        'suffix': None,
                        'total': 4},
                       {'done': 2,
                        'message': 'Downloading Metadata Files',
                        'state': 'failed',
                        'suffix': None,
                        'total': 2},
                       {'done': 0,
                        'message': 'Downloading Artifacts',
                        'state': 'canceled',
                        'suffix': None,
                        'total': None},
                       {'done': 0,
                        'message': 'Associating Content',
                        'state': 'canceled',
                        'suffix': None,
                        'total': None}],
  'reserved_resources_record': ['/pulp/api/v3/repositories/6655eade-86cf-44fa-9d93-5afe56bc57f8/',
                                '/pulp/api/v3/remotes/rpm/rpm/98aaf215-47eb-4c1c-aed9-6f716d37e088/'],
  'spawned_tasks': [],
  'started_at': '2019-08-15T14:07:15.688802Z',
  'state': 'failed',
  'worker': '/pulp/api/v3/workers/3f55ffff-207f-4371-ac7f-7d11f2c29b2c/'})

Pulp 3 installation from source August/15.

(pulp) [root@localhost ~]# pip list | grep pulp
pulp-ansible                    0.2.0b3.dev0 
pulp-certguard                  0.1.0rc1     
pulp-docker                     4.0.0b6.dev0 
pulp-file                       0.1.0b2.dev0 
pulp-rpm                        3.0.0b5.dev0 
pulpcore                        3.0.0rc5.dev0
pulpcore-plugin                 0.1.0rc5.dev0

Associated revisions

Revision 9ab7d4bf View on GitHub
Added by Fabricio Aguiar over 2 years ago

Fixing sync task failure

closes #5285 https://pulp.plan.io/issues/5285

History

#1 Updated by kersom over 2 years ago

  • Description updated (diff)

#2 Updated by ggainey over 2 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 57

#3 Updated by Anonymous over 2 years ago

  • Status changed from NEW to MODIFIED

#4 Updated by ttereshc almost 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF