Bug 1371276

Summary: [RFE] Do not do a mirror on sync when using incremental content
Product: Red Hat Satellite Reporter: Ash Westbrook <awestbro>
Component: Content ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.2.0CC: adahms, bbuckingham, bkearney, jsherril
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: s390   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-11 18:38:22 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:

Description Ash Westbrook 2016-08-29 18:29:21 UTC
Document URL: 

https://access.redhat.com/documentation/en/red-hat-satellite/6.2/single/content-management-guide/


Section Number and Name: 

Section: C 6.3

Mirror on sync defined:
Repositories now have the option to be used in a “mirror on sync” state where the state of the repository mirrors that of the upstream repository at sync time. This results in packages no longer in the upstream repository being removed.  mirror-on-sync is set to true by default.  

Describe the issue: 

It assumes that you want it to remove old/broken packages when you update from the source.  The "fix" is to disable it when creating the repo:

hammer repository create \
  --name='testrepo1' \
  --organization-id=1 \
  --product='product1' \
  --content-type='yum' \
  --publish-via-http=false \
  --mirror-on-sync=false \
  --download-policy=immediate


Suggestions for improvement: 

It should not do a mirror on sync when using incremental.

Additional information:

Comment 2 Andrew Dahms 2016-11-14 00:09:24 UTC
Moving to engineering based on case comments.

Feel free to move this back to documentation if this is the intended behavior and guidance should be provided in the documentation instead.

Comment 5 Andrew Dahms 2017-12-05 13:17:03 UTC
Assigning to Clifton for review.

Comment 9 Justin Sherrill 2017-12-18 15:25:27 UTC
Created redmine issue http://projects.theforeman.org/issues/22012 from this bug

Comment 10 Justin Sherrill 2017-12-18 15:28:32 UTC
I've cloned this upstream to do the work to prevent it from happening.  Moving back to NEW

Comment 14 Bryan Kearney 2018-01-11 18:38:22 UTC

*** This bug has been marked as a duplicate of bug 1416888 ***