Project

Profile

Help

Issue #4522

Lazy sync fails with "Attempting to save a ContentArtifact for an unsaved Artifact"

Added by daviddavis 7 months ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

When lazy syncing a repository, the task fails with the following traceback:

        "traceback": "  File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.7/site-packages/rq/worker.py\", line 799, in perform_job\n    rv = job.perform()\n  File \"/home/vagrant/.virtualenvs/pulp/lib64/pyt
hon3.7/site-packages/rq/job.py\", line 600, in perform\n    self._result = self._execute()\n  File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.7/site-packages/rq/job.py\", line 606, in _execute\n    return
 self.func(*self.args, **self.kwargs)\n  File \"/home/vagrant/devel/pulp_file/pulp_file/app/tasks/synchronizing.py\", line 42, in synchronize\n    dv.create()\n  File \"/home/vagrant/devel/pulpcore-plugin/pulp
core/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 futu
re.result()\n  File \"/home/vagrant/devel/pulpcore-plugin/pulpcore/plugin/stages/api.py\", line 209, in create_pipeline\n    await asyncio.gather(*futures)\n  File \"/home/vagrant/devel/pulpcore-plugin/pulpcor
e/plugin/stages/api.py\", line 43, in __call__\n    await self.run()\n  File \"/home/vagrant/devel/pulpcore-plugin/pulpcore/plugin/stages/content_stages.py\", line 117, in run\n    \"Attempting to save a ContentArtifact for an unsaved Artifact\"\n" 

Associated revisions

Revision a420f2bf View on GitHub
Added by daviddavis 7 months ago

Fix issue with lazy sync where artifacts are None

fixes #4522
https://pulp.plan.io/issues/4522

History

#1 Updated by daviddavis 7 months ago

  • Status changed from NEW to POST
  • Assignee set to daviddavis

#2 Updated by daviddavis 7 months ago

  • Status changed from POST to MODIFIED

#3 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#4 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3, Pulp 3 RC Blocker)

Please register to edit this issue

Also available in: Atom PDF