Version-Release number of selected component (if applicable): Spacewalk 12 spacewalk-java-1.2.112-1.el5 How reproducible: deterministic Steps to Reproduce: 1. I have channel with about 700 dummy packages nothing really special. 2. call channel.software.removePackages for all packages in channel 3. Actual results: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: Could not set null value for parameter: reason'> is thrown and packages are not removed from channel Expected results: Remove packages from channel. Additional info:
I use reproducer similar to this: packageids = [] packages = client.channel.software.listAllPackages(key, CHANNEL) for package in packages: packageids.append(package_get_id(package)) for erratum in client.channel.software.listErrata(key, CHANNEL): client.errata.delete(key, erratum['advisory_name']) if len(packageids) > 0: client.channel.software.removePackages(key, CHANNEL, packageids)
Created attachment 461268 [details] /var/log/tomcat5/catalina.out
Created attachment 461269 [details] /var/log/rhn/rhn_web_api.log
Forgot to add I use spacewalk 12 with oracle backend spacewalk-oracle-1.2.3-1.el5 spacewalk-backend-1.2.72-1.el5
Also note that right after the reproducer, when You are unable to delete this particular channel on webui and big red banner is shown: """ There are currently kickstart distributions associated to this channel. Please disassociate or delete the kickstart distributions before proceeding to delete the channel. """
I'd say, this was fixed by recent commits: spacewalk.git: 2513f6a393fff87c35d711fb294a4fc4b52ee36a 418912b07571555cb44329f84660607d6e8887bf
Moving ON_QA ...
This bug has been fixed in Spacewalk 1.3.