Bug 835979
| Summary: | Spacecmd system_runscript Translation Exception Error | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Steve Alder <steve_alder> |
| Component: | Clients | Assignee: | Milan Zázrivec <mzazrivec> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.0 | CC: | 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 | ||
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 Spacewalk 2.1 has been released. https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21 |
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: