Issue #9551
Updated by ttereshc about 3 years ago
After uploading an RPM (rpm -qp --all <origin>.rpm works fine on the source RPM), I'm greeted with the following error. ``` {'child_tasks': [], 'created_resources': [], 'error': {'description': 'RPM file cannot be parsed for metadata.', 'traceback': ' File ' '"/opt/bats/lib/python3.8/site-packages/pulpcore/tasking/pulpcore_worker.py", ' 'line 272, in _perform_task\n' ' result = func(*args, **kwargs)\n' ' File ' '"/opt/bats/lib/python3.8/site-packages/pulpcore/app/tasks/base.py", ' 'line 34, in general_create\n' ' serializer.is_valid(raise_exception=True)\n' ' File ' '"/opt/bats/lib/python3.8/site-packages/rest_framework/serializers.py", ' 'line 220, in is_valid\n' ' self._validated_data = ' 'self.run_validation(self.initial_data)\n' ' File ' '"/opt/bats/lib/python3.8/site-packages/rest_framework/serializers.py", ' 'line 422, in run_validation\n' ' value = self.validate(value)\n' ' File ' '"/opt/bats/lib/python3.8/site-packages/pulpcore/plugin/serializers/content.py", ' 'line 104, in validate\n' ' data = self.deferred_validate(data)\n' ' File ' '"/opt/bats/lib/python3.8/site-packages/pulp_rpm/app/serializers/package.py", ' 'line 240, in deferred_validate\n' ' raise NotAcceptable(detail="RPM file cannot be ' 'parsed for metadata.")\n'}, 'finished_at': datetime.datetime(2021, 11, 2, 19, 12, 12, 382621, tzinfo=tzutc()), 'logging_cid': '3c5f6c83815947bfae0e71cb661ec91f', 'name': 'pulpcore.app.tasks.base.general_create', 'parent_task': None, 'progress_reports': [], 'pulp_created': datetime.datetime(2021, 11, 2, 19, 12, 10, 711408, tzinfo=tzutc()), 'pulp_href': '/pulp/api/v3/tasks/452c9c7e-1715-4751-9462-0f68a649feb3/', 'reserved_resources_record': ['/pulp/api/v3/artifacts/58eb9338-26f8-4f55-a0dc-ddca290fa1fb/'], 'started_at': datetime.datetime(2021, 11, 2, 19, 12, 10, 792329, tzinfo=tzutc()), 'state': 'failed', 'task_group': None, 'worker': None} ```