Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1072872 - spacewalk-repo-sync is failing when setting exclude option in /etc/rhn/spacewalk-repo-sync/yum.conf
Summary: spacewalk-repo-sync is failing when setting exclude option in /etc/rhn/spacew...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space22
TreeView+ depends on / blocked
 
Reported: 2014-03-05 10:24 UTC by Neha
Modified: 2016-08-15 02:08 UTC (History)
2 users (show)

Fixed In Version: spacewalk-backend-2.2.4-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-17 08:41:00 UTC
Embargoed:


Attachments (Terms of Use)

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


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