Bug 815118 - spacecmd activationkey_import fails on import
Summary: spacecmd activationkey_import fails on import
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: API
Version: 1.7
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Steven Hardy
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space18
TreeView+ depends on / blocked
 
Reported: 2012-04-22 16:36 UTC by Trent Johnson
Modified: 2012-11-01 16:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-01 16:18:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Trent Johnson 2012-04-22 16:36:48 UTC
Description of problem:

spacecmd activationkey_import will fail if the exported key did not have any channels set.

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

How reproducible:
spacecmd activationkey_export on a key with no base channel set.
try to import the same key on another server

Steps to Reproduce:
1. spacecmd activationkey_list -q | xargs -n 1 spacecmd  activationkey_export
2. change to another server
3. ls *.json | xargs -n 1 spacecmd activationkey_import
  
Actual results:
ERROR: redstone.xmlrpc.XmlRpcFault: Invalid channel


Expected results:
Successful import

Additional info:
There is also no way to remove base channels via the api (that I can find)

Thanks,
Trent

Comment 1 Steven Hardy 2012-05-24 16:06:01 UTC
Fixed by : dd78914c9ca44c2056d08f41bca07ed2ae890562

Fix will be available in the next nightly build (spacecmd-1.8.8-1)

Comment 2 Jan Pazdziora 2012-10-30 19:23:37 UTC
Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/

Comment 3 Jan Pazdziora 2012-11-01 16:18:50 UTC
Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18


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