Project

General

Profile

Actions

Bug #33216

open

Still hit by the Artifact() got an unexpected keyword argument 'sha' bug with foreman 2.5.2 and katello 4.1 for rhel 6.2 x86_64 repos

Added by Pierre-Jean CROUZET over 2 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Hello,

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'"},

Do you have some infos about this bug?

Thank you in advance for your help and your time

Actions #1

Updated by Piotr Pietruszka over 2 years ago

Pierre-Jean CROUZET wrote:

Hello,

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:

[...]

Do you have some infos about this bug?

Thank you in advance for your help and your time

Hi,

This bug is also still present in foreman 3.0.1-1/katello 4.2.1-1/python3-pulpcore-3.14.8-2

Regards

Actions #2

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Project changed from Foreman to Katello
  • Fixed in Releases deleted (2.4.2)

Is this still present in current versions of Pulp? I'm at least moving this to Katello since Pulp is only present when Katello is. It may need to be reported to Pulp upstream.

Actions #3

Updated by Jeremy Lenz over 1 year ago

  • Target version set to Katello Backlog
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF