Bug 1072872

Summary: spacewalk-repo-sync is failing when setting exclude option in /etc/rhn/spacewalk-repo-sync/yum.conf
Product: [Community] Spacewalk Reporter: Neha <nerawat>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: sashinde, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-backend-2.2.4-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-17 08:41:00 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: 1119298    

Description Neha 2014-03-05 10:24:04 UTC
spacewalk-repo-sync exclude option does not work when setting exclude directive in /etc/rhn/spacewalk-repo-sync/yum.conf

Its failing with error "ERROR: global name 'filter_conf' is not defined"

Version-Release number of selected component (if applicable):

spacewalk-backend-tools-2.1.55-1.el6.noarch

How reproducible:
Always


Steps to Reproduce:
1. create a channel and repo from spacewalk webUi
2. add below in /etc/rhn/spacewalk-repo-sync/yum.conf

[channel-name]
exclude=<package>*

3. spacewalk-repo-sync -c <channel-name>


Actual results:
ERROR: global name 'filter_conf' is not defined

Expected results:
It should exclude package listed in yum.conf and sync repo.

Additional info:

Comment 3 Michael Mráka 2014-03-05 11:01:01 UTC
Oh, that's silly typo ;).

Applied to spacewalk master as
commit 2b925d6b329be2dc5280485070617bcc7c17d076
    1072872 - fixed loop variable name

Comment 4 Milan Zázrivec 2014-07-17 08:41:00 UTC
Spacewalk 2.2 has been released:

    https://fedorahosted.org/spacewalk/wiki/ReleaseNotes22