Description of problem: API method system.upgradeEntitlement does not work. Version-Release number of selected component (if applicable): spacewalk-java-2.5.93-1.el6 spacewalk-java-2.6.31-1.el6 How reproducible: 100% Steps to Reproduce: 1. We have got a satellite with registered systems 2. We choose one with base channel (no virtual guest) and try to setup "virtualization" entitlement by WebUI. It should pass it. 3. Remove "virtualization" entitlement from this profile. 3. Now we can try it again for the same profile by API > spacewalk-api --server=localhost --user=admin --password=xxx system.upgradeEntitlement "%session%" 1000010059 'virtualization_host' Actual results: Fault returned from XML RPC Server, fault code -1: redstone.xmlrpc.XmlRpcFault: unhandled internal exception: com.redhat.rhn.domain.entitlement.VirtualizationEntitlement cannot be cast to java.lang.String Expected results: $result = '1'; Additional info: Maybe there are some relation with bz1378873.
spacewalk.git d4680f87655e139fe4d3cecb5319a8ed3ed65dbd
Verified with SW nightly from 2016-11-10. Used reporoducer from OP: # spacewalk-api --server=localhost --user=admin --password=nimda system.upgradeEntitlement "%session%" 1000010000 'virtualization_host' $result = '1';
This looks like it was fixed in previous release, but I'm closing it in this one. Spacewalk 2.7 has been released. https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27