Project

Profile

Help

Issue #9431

closed

Sync tasks fail with the latest pulpcore version

Added by lmjachky about 3 years ago. Updated about 3 years 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.

Actions #1

Updated by rchan about 3 years ago

  • Sprint changed from Sprint 105 to Sprint 106
Actions #2

Updated by lmjachky about 3 years 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).

Actions #3

Updated by lmjachky about 3 years ago

  • Status changed from ASSIGNED to POST

Added by Lubos Mjachky about 3 years ago

Revision e7029229 | View on GitHub

Fix the problem with relative paths

closes #9431

Actions #4

Updated by Anonymous about 3 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by lmjachky about 3 years ago

  • Sprint/Milestone set to 2.0.0a2

Added by Lubos Mjachky about 3 years ago

Revision ba875a5a | View on GitHub

Fix the problem with relative paths

closes #9431

Also available in: Atom PDF