Bug 1404276 - spacecmd has hardcoded architectures - there is solaris
Summary: spacecmd has hardcoded architectures - there is solaris
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Other
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiří Dostál
QA Contact: Patrik Segedy
URL:
Whiteboard:
Depends On:
Blocks: 1340444
TreeView+ depends on / blocked
 
Reported: 2016-12-13 14:17 UTC by Ales Dujicek
Modified: 2017-06-21 12:15 UTC (History)
4 users (show)

Fixed In Version: spacecmd-2.5.0-7-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 12:15:12 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


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