Description of problem: Through Satellite UI make a system unentitled (remove the Management system entitlement from it). Then call: server.system.addEntitlements(session,systemid, ['enterprise_entitled']) Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. described in problem description above 2. 3. Actual results: throws an exception: <Fault -212: 'redstone.xmlrpc.XmlRpcFault: Invalid entitlement'> Expected results: Should pass ok, system should get entitled Additional info:
system.removeEntitlements and system.addEntitlements API calls are not meant for removing and adding Management entitlement ('enterprise_entitled'). For setting/removing this entitlement you can use system.setDetails API call (check base_entitlement). However, it would be possible to extent the usage of the system.add/removeEntitlements so they would handle also the Management entitlement. Cliff, what do you think?
go ahead and do this :) I feel allowing these two API calls to also set Management makes sense. So folks do not have to go digging for it. Cliff
I enabled handling of base entitlements using system.add/removeEntitlements API calls spacewalk.git: 5e5888b9c1d321354a30cbd5ed320044c29b1ffb
satellite.git: d02c959c3f12adfdf3dcd74a96bf4ecf4d0e3e06
# VERIFIED Thanks to Tomas we have now add/removeEntitlements for 'enterprise_entitled' working as well as for other system entitlements. Checked against Satellite installed on RHEL 4 AS and RHEL 5 Server. Package(s( fixing the issue are: spacewalk-java-0.5.44-66.5.el[4,5]sat
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0128.html