Bug 815118

Summary: spacecmd activationkey_import fails on import
Product: [Community] Spacewalk Reporter: Trent Johnson <rhbugzilla>
Component: APIAssignee: Steven Hardy <shardy>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.7CC: mmraka
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-01 16:18:50 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: 871344    

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