Bug 1229427 - spacecmd run into an SpacewalkShell instance has no attribute 'CHECKSUM'
Summary: spacecmd run into an SpacewalkShell instance has no attribute 'CHECKSUM'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: API
Version: 2.3
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space24
TreeView+ depends on / blocked
 
Reported: 2015-06-08 17:26 UTC by Marcin
Modified: 2015-10-08 13:27 UTC (History)
0 users

Fixed In Version: spacewalk-java-2.4.57-1 spacecmd-2.4.9-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-08 13:27:20 UTC
Embargoed:


Attachments (Terms of Use)

Description Marcin 2015-06-08 17:26:30 UTC
Description of problem:
With the latest version of spacecmd ( spacecmd-2.3.20-1.el6.noarch ) if I run a command to create channel and specify CHECKSUM type, the following error occur:

Checksum type
------------
ERROR: SpacewalkShell instance has no attribute 'CHECKSUM'


Version-Release number of selected component (if applicable):
spacecmd-2.3.20-1.el6.noarch

How reproducible:

Install spacecmd from offical spacewalk server repo:
http://yum.spacewalkproject.org/latest-server/RHEL/6/x86_64/
and try to create software channel with spacecmd command specifying CHECKSUM 

spacecmd {SSM:0}> softwarechannel_create 
Channel Name: d
Channel Label: d
Base Channels
-------------
centos6-x86_64_base

Select Parent [blank to create a base channel]: 

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

Select: x86_64

Checksum type
------------
ERROR: SpacewalkShell instance has no attribute 'CHECKSUM'
spacecmd {SSM:0}> softwarechannel_create --help
softwarechannel_create: Create a software channel
usage: softwarechannel_create [options]

options:
  -n NAME
  -l LABEL
  -p PARENT_CHANNEL
  -a ARCHITECTURE ['ia32', 'ia64', 'x86_64', 'ppc',
                  'i386-sun-solaris', 'sparc-sun-solaris']
### HELP SHOWS BELOW OPTION AVAILABLE
  -c CHECKSUM ['sha1', 'sha256']


Steps to Reproduce:
1. Run spacewalk 2.3
2. Run spacecmd and execute call :softwarechannel_create
3. Upon selecting CHECKSUM type, call exits with error: ERROR: SpacewalkShell instance has no attribute 'CHECKSUM

Actual results:

ERROR: SpacewalkShell instance has no attribute 'CHECKSUM

Expected results:

Specify CHECKSUM type ['sha1', 'sha256']


Additional info:

When command spacecmd is executed from shell, its works but ignores error and does not set desired CHECKSUM type:

spacecmd -- softwarechannel_create -n centos6-x86_64 -l centos6-x86_64_base -a x86_64 -c sha256

GUI interface shows channel created with sha1

Yum Repository Checksum Type sha1

Comment 1 Jan Dobes 2015-08-19 15:28:30 UTC
cannot reproduce ERROR on spacewalk nightly, however selected checksum isn't set.

Comment 2 Jan Dobes 2015-08-20 14:55:43 UTC
fixed with some other fixes and improvements in spacewalk master commits:

cf7cc4526a3fbc4453c0d525dbd8e9c2a2724bab
4bce346aea12a88b5149dfdf1e870ecb12e469bd
702dbaf9ba3f4aadc03f96cf6d5fb8c8dc6bede7
5baeac95b16a7f9b641d85ec370e0a89eebdf3e3
45cf1fbed677db1abdfe82de65e57c0bd255265c

Comment 3 Jan Dobes 2015-10-08 13:27:20 UTC
Spacewalk 2.4 has been released.


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