Bug 1404276

Summary: spacecmd has hardcoded architectures - there is solaris
Product: Red Hat Satellite 5 Reporter: Ales Dujicek <adujicek>
Component: OtherAssignee: Jiří Dostál <jdostal>
Status: CLOSED CURRENTRELEASE QA Contact: Patrik Segedy <psegedy>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: jdostal, mkorbel, psegedy, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacecmd-2.5.0-7-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:15:12 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:
Bug Depends On:    
Bug Blocks: 1340444    

Description Ales Dujicek 2016-12-13 14:17:21 UTC
Description of problem:

spacecmd softwarechannel_create offers limited set of architectures which are hardcoded

# spacecmd softwarechannel_create 
INFO: Connected to https://smqa-r210-06-vm03.lab.eng.brq.redhat.com/rpc/api as admin
Channel Name: channel-name
Channel Label: channel-label
Base Channels
-------------
...

Select Parent [blank to create a base channel]: 

Architecture
------------
i386-sun-solaris
ia32
ia64
ppc
sparc-sun-solaris
x86_64

Select: 
User Interrupt



it is hardcoded in spacecmd/src/lib/softwarechannel.py
> ARCH_LABELS = ['ia32', 'ia64', 'x86_64', 'ppc',
>                'i386-sun-solaris', 'sparc-sun-solaris']


Version-Release number of selected component (if applicable):
spacecmd-2.5.0-6.el6sat.noarch

How reproducible:
always


Actual results:


Expected results:
all available architectures are offered - channel.software.listArches
(or at least remove solaris - it is not in 5.8)

Comment 1 Jiří Dostál 2016-12-15 12:38:13 UTC
spacewalk 71104a3049fed0085bd0656396de32f12d3d764f

Comment 3 Patrik Segedy 2017-01-24 13:08:51 UTC
Verified with latest Satellite 5.8 compose. Now it shows all architectures like in channel.software.listArches API call.

# spacecmd softwarechannel_create 
INFO: Connected to https://bkr-hv01-guest04.dsal.lab.eng.bos.redhat.com/rpc/api as admin
Channel Name: channel-name
Channel Label: channel-label
Base Channels
-------------
parent-stable-channel-x86_64
rhel-x86_64-server-6

Select Parent [blank to create a base channel]: 

Architecture
------------
aarch64
alpha
arm
armhfp
iSeries
ia32
ia64
pSeries
ppc
ppc64le
s390
s390x
sparc
x86_64

VERIFIED