Bug 1403961

Summary: spacewalk-common-channels failed during creating all defaults channels
Product: Red Hat Satellite 5 Reporter: Pavel Studeník <pstudeni>
Component: ServerAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Studeník <pstudeni>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: pstudeni, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-utils-2.5.1-11 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:15:23 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: 1358815    

Description Pavel Studeník 2016-12-12 17:36:20 UTC
Description of problem:
I wanted create all default channels, but I received error from application spacewalk-common-channels:

>> spacewalk-common-channels -u <admin> -p <pass> '*'
Traceback (most recent call last):
  File "/usr/bin/spacewalk-common-channels", line 248, in <module>
    base_info['summary'], CHANNEL_ARCH[base_info['arch']],
KeyError: 'i586'

And missing last version of Fedora (25).

Version-Release number of selected component (if applicable):
spacewalk-utils-2.5.1-9.el6sat.noarch

How reproducible:
Always

Actual results:
Traceback.

Expected results:
All default channels are created including Fedora 25

Comment 1 Tomáš Kašpárek 2017-02-06 13:42:54 UTC
I've tested it with spacewalk-utils-2.5.1-10.el6sat.noarch and it seems that there's no issue present. Can you please re-check with latest spacewalk-utils package?
Although there are no Fedora 25 channels present.

Comment 2 Pavel Studeník 2017-02-06 13:50:07 UTC
Creating all channels works correct with this package:

spacewalk-utils-2.5.1-10.el6sat.noarch

but it is rather pity that latest Fedora is  missing. Is it possible to add it to this tool?

Comment 3 Tomáš Kašpárek 2017-02-06 14:45:41 UTC
spacewalk.git(master): a66960b1f1af0824a890e601fbe24a11c4cad935

Comment 6 Pavel Studeník 2017-05-10 11:36:42 UTC
Verified spacewalk-utils-2.5.1-22.el6sat.noarch

>> spacewalk-common-channels -u <user> -p <password> "*"

>> spacewalk-remove-channel -l | grep fedora25
fedora25-i386
	fedora25-i386-debug
	fedora25-i386-updates
	fedora25-i386-updates-debug
fedora25-x86_64
	fedora25-x86_64-debug
	fedora25-x86_64-updates
	fedora25-x86_64-updates-debu