Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1985122 - pulp3: sync of a file repo to an external capsule fails
Summary: pulp3: sync of a file repo to an external capsule fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.10.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: sganar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-22 23:03 UTC by Vladimír Sedmík
Modified: 2021-11-16 14:13 UTC (History)
7 users (show)

Fixed In Version: pulp_file-1.8.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:12:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 8999 0 Normal CLOSED - CURRENTRELEASE A no-op re-sync of a file repository will (if mirroring is enabled) result in a failed task 2021-08-26 17:16:18 UTC
Pulp Redmine 9060 0 Normal CLOSED - CURRENTRELEASE Backport 8999 2021-08-09 18:08:13 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:13:03 UTC

Description Vladimír Sedmík 2021-07-22 23:03:42 UTC
Description of problem:
Sync of a file repository to a pulp3 capsule fails with this error:
null value in column "repository_version_id" violates not-null constraint
DETAIL:  Failing row contains (537b49d4-37ee-44bc-b442-5ab587999800, 2021-07-22 22:40:36.019239+00, 2021-07-22 22:40:36.01926+00, file.file, f, t, null).


Version-Release number of selected component (if applicable):
6.10.0 snap 10


How reproducible:
always


Steps to Reproduce:
1. Have a SAT and pulp3 CAPS (with Immediate download policy)
2. Sync a file repo to the SAT (I used https://fixtures.pulpproject.org/file-large/)
3. Publish a CV with that repo and promote it to the Capsule LCE
4. Trigger at least one Optimized sync and then Complete sync


Actual results:
The Complete (and any consecutive) sync fails


Expected results:
Successful sync

Comment 5 Daniel Alley 2021-08-09 17:46:17 UTC
This is fixed in pulp_file 1.8.2

Comment 6 pulp-infra@redhat.com 2021-08-09 18:08:14 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 7 pulp-infra@redhat.com 2021-08-09 18:08:15 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 8 pulp-infra@redhat.com 2021-08-09 18:08:19 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 9 pulp-infra@redhat.com 2021-08-09 18:08:20 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 10 sganar 2021-08-24 13:23:00 UTC
Verified.

Tested on Satellite 6.10.0 Snap 14.0

Steps followed: 

1. Have a SAT and pulp3 CAPS (with Immediate download policy)
2. Sync a file repo to the SAT (I used https://fixtures.pulpproject.org/file-large/)
3. Publish a CV with that repo and promote it to the Capsule LCE
4. Trigger at least one Optimized sync and then Complete sync

Observation: 

Sync is successful without any errors

Comment 11 pulp-infra@redhat.com 2021-08-26 17:16:19 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 14 errata-xmlrpc 2021-11-16 14:12:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4702


Note You need to log in before you can comment on or make changes to this bug.