Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1723590

Summary: Copy-filtering on module-stream, which contain artifacts referenced by other streams, can result in all streams ending up in destination
Product: Red Hat Satellite Reporter: Partha Aji <paji>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Brian Herring <bherring>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: bherring, bmbouter, dalley, daviddavis, dkliban, ggainey, ipanova, ppisar, rchan, ttereshc
Target Milestone: 6.7.0   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-24 21:19:33 UTC Type: Bug
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:    
Bug Blocks: 1668052    

Description Partha Aji 2019-06-24 21:25:51 UTC
Module Streams not copying correctly with recursive and recursive_conservative  options which affect our content view depsolving

1) Create and sync the following yum repo (Source) -> https://partha.fedorapeople.org/test-repos/pteradactyl/
2) Create another repo Dest which will serve as the destination repo
3) Go to mongo and pick up a uuid for the pteradactly:2 module stream. This stream will be copied from source to dest .

4) run the following command 
"""
https://<fqdn>/pulp/api/v2/repositories/Dest/actions/associate/: {"source_repo_id":"Source","criteria":{"type_ids":["modulemd"],"filters":{"association":{"unit_id":{"$in":[<$MODULE UUID>]}}}},"override_config":{"recursive":true}}: {"content_type"=>"application/json", "accept"=>"application/json"}
"""
5) pulp-admin rpm repo list. Check for the number of module mds copied over by the above call.

Expected:
With recursive set to true pteradactly:2 and packages belonging to that get copied over

Actual:

All the pteradactyl module streams gets copied over


Behavior is similar for recursive conservative

Comment 3 pulp-infra@redhat.com 2019-06-24 21:34:15 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 4 pulp-infra@redhat.com 2019-06-24 21:34:16 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2019-06-24 21:34:21 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2019-06-24 21:34:22 UTC
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.

Comment 9 pulp-infra@redhat.com 2019-07-17 20:01:54 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 10 pulp-infra@redhat.com 2019-07-17 21:32:03 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 11 pulp-infra@redhat.com 2019-09-04 14:02:22 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 12 pulp-infra@redhat.com 2019-09-04 14:02:23 UTC
The Pulp upstream bug priority is at Low. Updating the external tracker on this bug.

Comment 13 pulp-infra@redhat.com 2019-09-13 14:16:09 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 19 pulp-infra@redhat.com 2020-11-05 17:05:29 UTC
The Pulp upstream bug status is at CLOSED - WONTFIX. Updating the external tracker on this bug.