Bug 1461339 - spacewalk-repo-sync syncs errata even if filter excludes their packages
Summary: spacewalk-repo-sync syncs errata even if filter excludes their packages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat58-errata
TreeView+ depends on / blocked
 
Reported: 2017-06-14 09:04 UTC by Ales Dujicek
Modified: 2018-01-26 13:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-07 13:47:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1466229 0 high CLOSED when there is a problem with specific errata parsing, rest of errata should be imported 2021-02-22 00:41:40 UTC

Internal Links: 1466229

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


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