Project

Profile

Help

Issue #5419

closed

Regression - rpm_basefilename tests failures

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

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

Description

Reporting test failures caught on nightly CI run. A few tests failed with the same traceback.

Recreate:

pytest -sv pulp_2_tests/tests/rpm/api_v2/test_signatures_checked_for_copies.py::RequireValidKeyTestCase

Traceback:

('Task report /pulp/api/v2/tasks/fd90e6b8-c483-4cf5-bbe2-efe15abbcd42/ '
 "contains a error: {'code': 'PLP0047', 'data': {'unit_type': 'drpm', "
 "'importer_id': 'yum_importer', 'repo_id': "
 "'39805234-c691-4319-982a-9335b5ca07c7', 'details': {'errors': "
 '["unexpected error occurred importing uploaded file: local variable '
 '\'rpm_basefilename\' referenced before assignment"]}, \'summary\': \'\'}, '
 "'description': 'The importer yum_importer indicated a failed response when "
 'uploading drpm unit to repository 39805234-c691-4319-982a-9335b5ca07c7. '
 'Summary: \\\'\\\'. Details: \\\'{\\\'errors\\\': ["unexpected error occurred '
 "importing uploaded file: local variable \\'rpm_basefilename\\' referenced "
 'before assignment"]}\\\' \', \'sub_errors\': []}\n'
 "Full task report: {'exception': None, 'task_type': "
 "'pulp.server.managers.content.upload.import_uploaded_unit', '_href': "
 "'/pulp/api/v2/tasks/fd90e6b8-c483-4cf5-bbe2-efe15abbcd42/', 'task_id': "
 "'fd90e6b8-c483-4cf5-bbe2-efe15abbcd42', 'tags': "
 "['pulp:repository:39805234-c691-4319-982a-9335b5ca07c7', "
 "'pulp:action:import_upload'], 'finish_time': '2019-09-06T14:09:03Z', '_ns': "
 "'task_status', 'start_time': '2019-09-06T14:09:03Z', 'traceback': 'Traceback "
 '(most recent call last):\\n  File '
 '"/usr/lib/python2.7/site-packages/celery/app/trace.py", line 367, in '
 'trace_task\\n    R = retval = fun(*args, **kwargs)\\n  File '
 '"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 686, in '
 '__call__\\n    return super(Task, self).__call__(*args, **kwargs)\\n  File '
 '"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 108, in '
 '__call__\\n    return super(PulpTask, self).__call__(*args, **kwargs)\\n  '
 'File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 622, in '
 '__protected_call__\\n    return self.run(*args, **kwargs)\\n  File '
 '"/usr/lib/python2.7/site-packages/pulp/server/managers/content/upload.py", '
 'line 223, in import_uploaded_unit\\n    unit_type=unit_type_id, '
 "summary=result[\\'summary\\'], "
 "details=result[\\'details\\']\\nPulpCodedException: The importer "
 'yum_importer indicated a failed response when uploading drpm unit to '
 "repository 39805234-c691-4319-982a-9335b5ca07c7. Summary: \\'\\'. Details: "
 '\\\'{\\\'errors\\\': ["unexpected error occurred importing uploaded file: '
 'local variable \\\'rpm_basefilename\\\' referenced before assignment"]}\\\' '
 "\\n', 'spawned_tasks': [], 'progress_report': {}, 'queue': "
 "'reserved_resource_worker-0@rhel7-os-754.dq2', 'state': 'error', "
 "'worker_name': 'reserved_resource_worker-0@rhel7-os-754', 'result': None, "
 "'error': {'code': 'PLP0047', 'data': {'unit_type': 'drpm', 'importer_id': "
 "'yum_importer', 'repo_id': '39805234-c691-4319-982a-9335b5ca07c7', "
 '\'details\': {\'errors\': ["unexpected error occurred importing uploaded '
 'file: local variable \'rpm_basefilename\' referenced before assignment"]}, '
 "'summary': ''}, 'description': 'The importer yum_importer indicated a failed "
 'response when uploading drpm unit to repository '
 "39805234-c691-4319-982a-9335b5ca07c7. Summary: \\'\\'. Details: "
 '\\\'{\\\'errors\\\': ["unexpected error occurred importing uploaded file: '
 'local variable \\\'rpm_basefilename\\\' referenced before assignment"]}\\\' '
 "', 'sub_errors': []}, '_id': {'$oid': '5d72687f4c0dd698b1b1f0df'}, 'id': "
 "'5d72687f4c0dd698b1b1f0df'}",
 {'_href': '/pulp/api/v2/tasks/fd90e6b8-c483-4cf5-bbe2-efe15abbcd42/',
  '_id': {'$oid': '5d72687f4c0dd698b1b1f0df'},
  '_ns': 'task_status',
  'error': {'code': 'PLP0047',
            'data': {'details': {'errors': ['unexpected error occurred '
                                            'importing uploaded file: local '
                                            "variable 'rpm_basefilename' "
                                            'referenced before assignment']},
                     'importer_id': 'yum_importer',
                     'repo_id': '39805234-c691-4319-982a-9335b5ca07c7',
                     'summary': '',
                     'unit_type': 'drpm'},
            'description': 'The importer yum_importer indicated a failed '
                           'response when uploading drpm unit to repository '
                           "39805234-c691-4319-982a-9335b5ca07c7. Summary: ''. "
                           'Details: \'{\'errors\': ["unexpected error '
                           'occurred importing uploaded file: local variable '
                           "'rpm_basefilename' referenced before "
                           'assignment"]}\' ',
            'sub_errors': []},
  'exception': None,
  'finish_time': '2019-09-06T14:09:03Z',
  'id': '5d72687f4c0dd698b1b1f0df',
  'progress_report': {},
  'queue': 'reserved_resource_worker-0@rhel7-os-754.dq2',
  'result': None,
  'spawned_tasks': [],
  'start_time': '2019-09-06T14:09:03Z',
  'state': 'error',
  'tags': ['pulp:repository:39805234-c691-4319-982a-9335b5ca07c7',
           'pulp:action:import_upload'],
  'task_id': 'fd90e6b8-c483-4cf5-bbe2-efe15abbcd42',
  'task_type': 'pulp.server.managers.content.upload.import_uploaded_unit',
  'traceback': 'Traceback (most recent call last):\n'
               '  File "/usr/lib/python2.7/site-packages/celery/app/trace.py", '
               'line 367, in trace_task\n'
               '    R = retval = fun(*args, **kwargs)\n'
               '  File '
               '"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", '
               'line 686, in __call__\n'
               '    return super(Task, self).__call__(*args, **kwargs)\n'
               '  File '
               '"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", '
               'line 108, in __call__\n'
               '    return super(PulpTask, self).__call__(*args, **kwargs)\n'
               '  File "/usr/lib/python2.7/site-packages/celery/app/trace.py", '
               'line 622, in __protected_call__\n'
               '    return self.run(*args, **kwargs)\n'
               '  File '
               '"/usr/lib/python2.7/site-packages/pulp/server/managers/content/upload.py", '
               'line 223, in import_uploaded_unit\n'
               "    unit_type=unit_type_id, summary=result['summary'], "
               "details=result['details']\n"
               'PulpCodedException: The importer yum_importer indicated a '
               'failed response when uploading drpm unit to repository '
               "39805234-c691-4319-982a-9335b5ca07c7. Summary: ''. Details: "
               '\'{\'errors\': ["unexpected error occurred importing uploaded '
               "file: local variable 'rpm_basefilename' referenced before "
               'assignment"]}\' \n',
  'worker_name': 'reserved_resource_worker-0@rhel7-os-754'})

Pulp Version:

 
pulp-admin-client-2.21.0-0.1.alpha.201909060522git0740c20.el7.noarch
pulp-deb-admin-extensions-1.11.0-0.1.alpha.201909060531git86a8a50.el7.noarch
pulp-deb-plugins-1.11.0-0.1.alpha.201909060531git86a8a50.el7.noarch
pulp-docker-admin-extensions-3.4.0-0.1.alpha.201909060509git5f120a3.el7.noarch
pulp-docker-plugins-3.4.0-0.1.alpha.201909060509git5f120a3.el7.noarch
pulp-ostree-admin-extensions-1.4.0-0.1.alpha.201909060511gitcc1c559.el7.noarch
pulp-ostree-plugins-1.4.0-0.1.alpha.201909060511gitcc1c559.el7.noarch
pulp-puppet-admin-extensions-2.21.0-0.1.alpha.201909060514gite3a1f28.el7.noarch
pulp-puppet-plugins-2.21.0-0.1.alpha.201909060514gite3a1f28.el7.noarch
pulp-puppet-tools-2.21.0-0.1.alpha.201909060514gite3a1f28.el7.noarch
pulp-python-admin-extensions-2.1.0-0.1.alpha.201909060507git5e2aa35.el7.noarch
pulp-python-plugins-2.1.0-0.1.alpha.201909060507git5e2aa35.el7.noarch
pulp-rpm-admin-extensions-2.21.0-0.1.alpha.201909060517gitd477421.el7.noarch
pulp-rpm-plugins-2.21.0-0.1.alpha.201909060517gitd477421.el7.noarch
pulp-selinux-2.21.0-0.1.alpha.201909060522git0740c20.el7.noarch
pulp-server-2.21.0-0.1.alpha.201909060522git0740c20.el7.noarch
python-isodate-0.5.0-4.pulp.el7.noarch
python-pulp-bindings-2.21.0-0.1.alpha.201909060522git0740c20.el7.noarch
python-pulp-client-lib-2.21.0-0.1.alpha.201909060522git0740c20.el7.noarch
python-pulp-common-2.21.0-0.1.alpha.201909060522git0740c20.el7.noarch
python-pulp-deb-common-1.11.0-0.1.alpha.201909060531git86a8a50.el7.noarch
python-pulp-docker-common-3.4.0-0.1.alpha.201909060509git5f120a3.el7.noarch
python-pulp-oid_validation-2.21.0-0.1.alpha.201909060522git0740c20.el7.noarch
python-pulp-ostree-common-1.4.0-0.1.alpha.201909060511gitcc1c559.el7.noarch
python-pulp-puppet-common-2.21.0-0.1.alpha.201909060514gite3a1f28.el7.noarch
python-pulp-python-common-2.1.0-0.1.alpha.201909060507git5e2aa35.el7.noarch
python-pulp-repoauth-2.21.0-0.1.alpha.201909060522git0740c20.el7.noarch
python-pulp-rpm-common-2.21.0-0.1.alpha.201909060517gitd477421.el7.noarch
python-pulp-streamer-2.21.0-0.1.alpha.201909060522git0740c20.el7.noarch

System Version:

Red Hat Enterprise Linux Server release 7.7 (Maipo)

Related issues

Related to RPM Support - Issue #4059: During rpm upload filename should be preserved in the storage path CLOSED - CURRENTRELEASEggaineyActions
Actions #1

Updated by kersom over 2 years ago

  • Tags Pulp 2 added
Actions #2

Updated by ggainey over 2 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ggainey
  • Sprint set to Sprint 58
Actions #3

Updated by ggainey over 2 years ago

Fixed the drpm issue, which fixes 24 out of 25 failing tests. Discussion w/kersom on the last test suggests the test needs to be fixed.

https://github.com/pulp/pulp_rpm/pull/1436

Actions #4

Updated by ggainey over 2 years ago

  • Status changed from ASSIGNED to POST
Actions #5

Updated by kersom over 2 years ago

  • Related to Issue #4059: During rpm upload filename should be preserved in the storage path added

Added by ggainey over 2 years ago

Revision 4a04f588

Fix issue with uploading DRPMs

PR#1421 introduced a problem when uploading DRPMs - this fixes it. closes #5419 https://pulp.plan.io/issues/5419

Actions #6

Updated by ggainey over 2 years ago

  • Status changed from POST to MODIFIED
Actions #7

Updated by dalley over 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
  • Platform Release set to 2.21.0

Also available in: Atom PDF