Project

Profile

Help

Issue #9431

Sync tasks fail with the latest pulpcore version

Added by lmjachky about 1 month ago. Updated 23 days ago.

Status:
MODIFIED
Priority:
High
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - OSTree:
Platform Release:
Target Release - OSTree:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 106
Quarter:

Description

'Pulp task failed (No declared artifact with relative path "8274d1cf-5109-438b-ac44-2c561c880c0c/objects/ad/a85ed21a9393257c364f1de573d6d3f1b32f9d2ae08956837ba834036d5019.dirmeta" for content "<OstreeObject: pk=3c868b45-5d8d-459b-80fa-5a947dfeba1f>")'

This might be related to sync_async changes. Updating ProgressReport to async does not help. There is probably a more serious issue underneath.

Associated revisions

Revision e7029229 View on GitHub
Added by Lubos Mjachky 23 days ago

Fix the problem with relative paths

closes #9431

Revision ba875a5a View on GitHub
Added by Lubos Mjachky about 5 hours ago

Fix the problem with relative paths

closes #9431

History

#1 Updated by rchan 29 days ago

  • Sprint changed from Sprint 105 to Sprint 106

#2 Updated by lmjachky 25 days ago

The problem is caused by the fact that the same content units need to be published at different relative paths. But, the relative path of an existing content unit fetched from the database does not have the same relative path as a content unit created in the sync pipeline and the following if-condition will never be met: https://github.com/pulp/pulpcore/blob/cb564bad6eab050dc4952d929cd41f2dc8189b29/pulpcore/plugin/stages/artifact_stages.py#L329

This issue was not disclosed during the development due to the orphan cleanup workflow which was run after every function test. Disabling redis triggered the erroneous behaviour as well.

A possible patch for the problem is to create a uniqueness constraint on relative_path in all OSTree content units which has an Artifact object associated with them (https://hackmd.io/@pulp/SJ9davNYL#pulp_deb--pulp_file-way).

#3 Updated by lmjachky 25 days ago

  • Status changed from ASSIGNED to POST

#4 Updated by Anonymous 23 days ago

  • Status changed from POST to MODIFIED

#5 Updated by lmjachky 23 days ago

  • Sprint/Milestone set to 2.0.0a2

Please register to edit this issue

Also available in: Atom PDF