Bug 835979

Summary: Spacecmd system_runscript Translation Exception Error
Product: [Community] Spacewalk Reporter: Steve Alder <steve_alder>
Component: ClientsAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0CC: ggruner, msuchy
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: spacecmd-2.1.16-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-04 13:07:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1069560    

Description Steve Alder 2012-06-27 17:58:01 UTC
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:

Comment 1 Miroslav Suchý 2013-08-19 13:17:41 UTC
Forwarded to upstream.

Comment 2 Milan Zázrivec 2013-11-08 14:39:23 UTC
Fixed in spacewalk.git master: ad5f2714428c7f6011a9ce60b90af0e767fed866

Thank you for the bug report & sorry for the big delay.

Comment 3 Gregor Gruener 2013-11-18 13:50:17 UTC
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

Comment 4 Milan Zázrivec 2013-12-01 10:26:31 UTC
Problem described in comment #3 fixed in:

spacewalk.git master: ddcaf0a5df86f3377f2698ce4641d8df5c4b702c

Thank you Gregor!

Comment 5 Matej Kollar 2014-01-17 12:16:03 UTC
Switching MODIFIED Spacewalk bugs to ON_QA before 2.1 release.

Comment 6 Matej Kollar 2014-03-04 13:07:13 UTC
Spacewalk 2.1 has been released.
https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21

Comment 7 Matej Kollar 2014-03-04 13:08:44 UTC
Spacewalk 2.1 has been released.
https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21