Description of problem: When running system_runscript and providing start_time option, get translation exception. "ERROR: com.redhat.rhn.common.translation.TranslationException: Could not find translator for class java.lang.String to class java.util.Date" Version-Release number of selected component (if applicable): spacecmd-1.2.2-1.el5 How reproducible: spacecmd {SSM:1}> system_runscript ssm -u root -g root -s 201206271240 -f /root/scripts/test.sh Steps to Reproduce: 1. Login to spacecmd and connect to satellite server 2. Add system(s) to ssm 3. Run system_runscript command Actual results: Shows summary, then returns error. Event is not scheduled. Expected results: Should schedule event and run when client checks in Additional info:
Forwarded to upstream.
Fixed in spacewalk.git master: ad5f2714428c7f6011a9ce60b90af0e767fed866 Thank you for the bug report & sorry for the big delay.
Hi Milan, I have now an error with this fix. # cat testfile1.sh ls -la # spacecmd "system_runscript group:WEB -t 600 -f testfile1.sh" INFO: Connected to https://localhost/rpc/api as admin ERROR: expected string or buffer Without this commit it looks fine: spacecmd "system_runscript group:WEB -t 600 -f testfile1.sh" INFO: Connected to https://localhost/rpc/api as admin User: root Group: root Timeout: 600 seconds Start Time: 20131118T14:45:37 Script Contents --------------- ls -lh Systems ------- lnx3053.eng.zkb.ch Is this ok [y/N]: y INFO: Action ID: 4432 INFO: Scheduled: 1 system(s) Best Regards, Gregor
Problem described in comment #3 fixed in: spacewalk.git master: ddcaf0a5df86f3377f2698ce4641d8df5c4b702c Thank you Gregor!
Switching MODIFIED Spacewalk bugs to ON_QA before 2.1 release.
Spacewalk 2.1 has been released. https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21