Bug 1989503

Summary: pulp3: On_demand capsule sync (pulp3 to pulp2) for repos with empty groups fails
Product: Red Hat Satellite Reporter: Tanya Tereshchenko <ttereshc>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lai <ltran>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: bbuckingham, ggainey, jjeffers, ltran, osousa, pcreech, rchan, satellite6-bugs, ttereshc
Target Milestone: 6.9.6Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pulp-rpm-3.11.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1959393 Environment:
Last Closed: 2021-09-21 14:37:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2002506    
Bug Blocks:    

Comment 2 pulp-infra@redhat.com 2021-08-03 13:17:01 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 3 pulp-infra@redhat.com 2021-08-03 13:17:02 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2021-08-22 22:07:51 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2021-08-24 15:08:30 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 7 pulp-infra@redhat.com 2021-08-24 16:11:24 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.

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

Comment 9 Lai 2021-09-13 19:40:47 UTC
Step to test

1. Get a 6.9 satellite
2. Get a capsule and register it to the satellite
3. Sync the https://cdn.redhat.com/content/dist/rhel8/8.3/x86_64/appstream/kickstart/ repo but do not publish in a cv
4. Add the library environment to the capsule
5. upgrade satellite to 6.10
6. Publish a cv with the repo from step 3
7. Check the task page for the triggering of the capsule sync

Expected:
Capsule sync should be successful

Actual
Capsule sync is successfull

Additional note:
You can check that capsule is still on pulp2 by going to Infrastructure -> capsule -> <capsule name> and there will be an indicator saying that the capsule versions do not match with satellite.
For the verification of the capsule sync, you can check dynflow:  Actions::Pulp::Consumer::SyncCapsule.  It does show success.  Another way to check is the folder for packages /var/lib/pulp/published/yum/https/repos/Default_Organization/Library/<name>/content/dist/rhel8/8.3/x86_64/baseos/kickstart/Packages that was synced on capsule.

Verified on 6.9.6_02 with python3-pulp-rpm-3.11.2-1.el7pc.noarch

Comment 14 errata-xmlrpc 2021-09-21 14:37:27 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 (Satellite 6.9.6 Async Bug Fix Update), 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/RHBA-2021:3628