Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1461339

Summary: spacewalk-repo-sync syncs errata even if filter excludes their packages
Product: Red Hat Satellite 5 Reporter: Ales Dujicek <adujicek>
Component: ServerAssignee: Jan Dobes <jdobes>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: dyordano, jdobes, psegedy, tlestach
Target Milestone: ---   
Target Release: ---   
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: 2017-09-07 13:47:16 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: 1450111    

Description Ales Dujicek 2017-06-14 09:04:30 UTC
Description of problem:

on Sat 5.7 spacewalk-repo-sync skips errata without packages

# spacewalk-repo-sync -c epel6-freealut
#### Channel label: epel6-freealut ####
Repo URL: http://dl.fedoraproject.org/pub/epel/6Server/x86_64/
Packages in repo:             12310
Packages passed filter rules:     6
Packages already synced:          0
Packages to sync:                 6
1/6 : freealut-devel-1.1.0-11.el6-0.x86_64
2/6 : openal-soft-devel-1.12.854-1.el6-0.x86_64
3/6 : freealut-devel-1.1.0-11.el6-0.i686
4/6 : freealut-1.1.0-11.el6-0.x86_64
5/6 : freealut-1.1.0-11.el6-0.i686
6/6 : openal-soft-devel-1.12.854-1.el6-0.i686
Linking packages to channel.
Repo http://dl.fedoraproject.org/pub/epel/6Server/x86_64/ has comps file de6a02cff57c89b6ccb3c8d3d8700f9616af988510c36d6c2f1d18ad36bbd04b-comps-el6.xml.bz2.
Repo http://dl.fedoraproject.org/pub/epel/6Server/x86_64/ has 4096 errata.
4095 errata skipped because of empty package list.
Sync completed.
Total time: 0:01:51

but
4a7ecb8db65828dead68fbf3f21f2f68b9de96dc
causes that spacewalk-repo-sync syncs all errata even if their packages were not synced because of repo filter (in this case "+freealut*")

Version-Release number of selected component (if applicable):
spacewalk-backend-tools-2.5.3-143.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. create repo with filter
2. create channel, add repo
3. # spacewalk-repo-sync -c channel

Comment 1 Jan Dobes 2017-07-25 12:35:35 UTC
fixed in spacewalk.git(master):

ea5583c6c3972759c68bd56a6bcc209446b6c084

only errata with empty package list in metadata are synced