Bug 1089062

Summary: rhq-server.sh script fails to execute on Solaris due to dependency on GNU version of sleep utility
Product: [JBoss] JBoss Operations Network Reporter: Larry O'Leary <loleary>
Component: Launch ScriptsAssignee: John Mazzitelli <mazz>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: mazz, skondkar
Target Milestone: DR01   
Target Release: JON 3.2.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-29 00:17:11 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:

Description Larry O'Leary 2014-04-17 19:11:27 UTC
Description of problem:
The rhq-server.sh script fails to properly execute on Solaris due to the use of time unit being appended to value passed to sleep command:

    sleep 2s

Solaris 10 uses an older version of the utility which only supports seconds. Therefore, this must be:

    sleep 2

Version-Release number of selected component (if applicable):
3.2.0.GA

How reproducible:
Always

Steps to Reproduce:
1. On Solaris 10 machine, run rhqctl install

Actual results:
Install fails and outputs "sleep: bad character in argument" many times.

Expected results:
No mention of "sleep: bad character in argument" and installer completes without error.

Comment 1 John Mazzitelli 2014-04-22 18:48:59 UTC
git commit to master: a776bf0

Comment 2 John Mazzitelli 2014-04-22 18:54:55 UTC
git commit to release/jon3.2.x branch: a7aaa40

Comment 3 Simeon Pinder 2014-05-22 15:15:37 UTC
Via product triage, determined that this bug is to be included for DR01 target milestone.

Comment 4 Simeon Pinder 2014-05-30 02:43:36 UTC
Moving to ON_QA as available for test in latest cumulative patch build(DR01):
http://jon01.mw.lab.eng.bos.redhat.com:8042/dist/release/jon/3.2.2.GA/5-29-2014/

Comment 5 Sunil Kondkar 2014-06-04 15:12:31 UTC
Applied 3.2.0.GA-Update-02 to 3.2.0.GA  and tried 'rhqctl install' on solaris 10 box. The installer completed without error.
Marking this bug as verified.

Comment 6 Larry O'Leary 2014-07-29 00:17:11 UTC
This has been verified and released in Red Hat JBoss Operations Network 3.2 Update 02 (3.2.2) available from the Red Hat Customer Portal[1].



[1]: https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=31783