Bug 1414501

Summary: repositories with same url, but different filters can't be defined
Product: [Community] Spacewalk Reporter: Thomas Schweikle <tschweikle>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED EOL QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.6CC: jdobes
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: 2019-10-21 13:26:20 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:

Description Thomas Schweikle 2017-01-18 16:35:53 UTC
Description of problem:
assume defining some repositories, all with the same url:
http://download.bareos.org/bareos/release/15.2/RHEL_5/
http://download.bareos.org/bareos/release/15.2/RHEL_5/

but different filters:
-*x86_64
-*i386

Will lead to error "There is already defined a repository with this url! Please use this one!

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

How reproducible:
Always

Steps to Reproduce:
1. Install spacewalk
2. define repositories with same url, but different filters
3.

Actual results:
Impossible

Expected results:
shall be possible

Additional info:
If repositories hold x86_64, i386, i686 and other files the whole repository will be ignored if architectures do not match, if the given architecture ist "higher" than the one of the channel:

http://download.bareos.org/bareos/release/15.2/RHEL_5/ holds both: x86_64 and i386 rpm-packages. Adding to a channel with x86_64 will work, while adding to a channel with arch:i386 will lead to an error about package architectur missmatches. Setting a filter to exclude '-*x86_64'-packages all will be fine.
If I am now using this very same channel for x86_64-Systems spacewalk will install only i386 packages for this system! But I'd like to have it install x86_64-packages. But these are excluded because of the set filter to avoid the error message before.
Trying to define a second channel with a different filter (or even without one) leads to an error too.

Comment 1 Michael Mráka 2019-10-21 13:26:20 UTC
Spacewalk 2.8 (and older) has already reached it's End Of Life.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before end of life. If you would still like
to see this bug fixed and are able to reproduce it against current version
of Spacewalk 2.9, you are encouraged change the 'version' and re-open it.