Red Hat Bugzilla – Bug 477228
Unable to cancel actions using schedule.cancelActions
Last modified: 2009-01-22 11:31:26 EST
Created attachment 327482 [details]
Exception details from catalina.out
Description of problem:
Attempting to cancel an action using the schedule.cancelActions() api generates an exception that is thrown back to the user as well as logged in catalina.out. The exception generated is new since the integration with cobbler and is related to a kickstart query.
See attachment for the detailed error from catalina.out.
Version-Release number of selected component (if applicable):
Testing w/ latest git master as of Dec 19.
Steps to Reproduce:
1. schedule an action to
(e.g. client.system.scheduleHardwareRefresh(key,1000020124, <earliest>))
2. attempt to schedule the action using the api:
Exception generated (however, action is canceled)
Action cancelled without exception
git commit: 5273454049014a5be9ed73b689c4d53115295bec
The ActionManager.cancelAction was deleting the ServerAction before it was finished using it. Basically, it would delete the ServerActions then perform action.getServerActions resulting in an empty list. When this empty list was passed to KickstartFactory.failKickstartSessions, the hibernate query could generate an exception because it expected the servers collection (i.e. list passed) to have contents.