Actions
Backport #9625
closedBackport #9580 "Artifact() got an unexpected keyword argument 'sha'" to 3.14.z
Start date:
Due date:
% Done:
100%
Estimated time:
Triaged:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
From https://projects.theforeman.org/issues/33216:
I recently ran into an issue while trying to sync a rhel 6.2 repo to my foreman server:
Artifact() got an unexpected keyword argument 'sha'
I saw a similar post here: https://projects.theforeman.org/issues/31559
The issue is marked as resolved for katello 3.18, yet I'm still having it with katello 4.1 and foreman 2.5.2
The error is as follow:
error"=>
{"traceback"=>
" File \"/usr/lib/python3.6/site-packages/pulpcore/tasking/pulpcore_worker.py\", line 266, in _perform_task\n" +
" result = func(*args, **kwargs)\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py\", line 422, in synchronize\n" +
" version = dv.create()\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py\", line 151, in create\n" +
" loop.run_until_complete(pipeline)\n" +
" File \"/usr/lib64/python3.6/asyncio/base_events.py\", line 484, in run_until_complete\n" +
" return future.result()\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py\", line 225, in create_pipeline\n" +
" await asyncio.gather(*futures)\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py\", line 43, in __call__\n" +
" await self.run()\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py\", line 705, in run\n" +
" await self.parse_repository_metadata(repomd, repomd_files, file_extension)\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py\", line 800, in parse_repository_metadata\n" +
" artifact=Artifact(**file_data),\n" +
" File \"/usr/lib/python3.6/site-packages/django_lifecycle/mixins.py\", line 25, in __init__\n" +
" super().__init__(*args, **kwargs)\n" +
" File \"/usr/lib/python3.6/site-packages/django/db/models/base.py\", line 501, in __init__\n" +
" raise TypeError(\"%s() got an unexpected keyword argument '%s'\" % (cls.__name__, kwarg))\n",
"description"=>"Artifact() got an unexpected keyword argument 'sha'"},
Related issues
Updated by dalley about 3 years ago
- Copied from Issue #9580: Artifact() got an unexpected keyword argument 'sha' added
Updated by pulpbot about 3 years ago
- Status changed from ASSIGNED to POST
Added by dalley about 3 years ago
Updated by dalley about 3 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset 9493d73c8f440a2c08b2ed54aae94de29880e113.
Updated by pulpbot about 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Fixed 'sha'-using repos by teaching one more place to normalize checksum-type.
Test coverage is:
backports #9580 [nocoverage]
fixes #9625
(cherry picked from commit 3df6a5e08ae85b7770656403081d617c49d4fbb4)