Bug 1088046
Summary: | JON storage node script displays error ./cassandra: numactl: not found | ||
---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> |
Component: | Launch Scripts, Storage Node | Assignee: | Simeon Pinder <spinder> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sunil Kondkar <skondkar> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | JON 3.2 | CC: | fbrychta, jshaughn, lzoubek, miburman, skondkar, snegrea |
Target Milestone: | CR03 | Keywords: | Triaged |
Target Release: | JON 3.3.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-02-27 19:58:33 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: | 1193447 | ||
Bug Blocks: | 1206641 |
Description
Larry O'Leary
2014-04-15 22:48:47 UTC
Moving into ER05 as didn't make the ER04 cut. branch: master link: https://github.com/rhq-project/rhq/commit/0651c1591 time: 2014-11-19 16:06:42 +0100 commit: 0651c15919b6d89fa81e1f2d1781eedd46277f50 author: Libor Zoubek - lzoubek message: Bug 1088046 - JON storage node script displays error ./cassandra: numactl: not found Changed cassandra start script to use type instead of which to detect numactl - 'type' behaves correctly on Linux,Mac and Solaris Cherry-picked to release/jon3.3.x: commit a028f1db3ce3f6f3ec1aec36c19a23e034ae610f Author: Libor Zoubek <lzoubek> Date: Wed Nov 19 16:03:41 2014 +0100 Bug 1088046 - JON storage node script displays error ./cassandra: numactl: not found Changed cassandra start script to use type instead of which to detect numactl - 'type' behaves correctly on Linux,Mac and Solaris (cherry picked from commit 0651c15919b6d89fa81e1f2d1781eedd46277f50) Moving to ON_QA as available for test with the latest 3.3.1.ER01 bits from here: http://download.devel.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/12/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip Tested on 3.3.1.ER01 (JON 3.3.0.GA Update 01) The error './cassandra: numactl: not found' is observed while starting storage node after applying JON 3.3.0.GA Update 01. Performed below steps: ------------------------------------------- - Installed JBoss ON 3.3 GA on solaris 10 - Inventoried resources - ./rhqctl stop - Applied JON 3.3.0.GA Update 01 - started storage node with ./rhqctl start --storage - Observed following in the console- # ./rhqctl start --storage WARNING: The readlink command is not available on this platform. If this script was launched from a symbolic link, errors may occur. Consider installing readlink on this platform. 16:04:48,589 INFO [org.jboss.modules] JBoss Modules version 1.3.3.Final-redhat-1 ./cassandra: numactl: not found ------------------------------------------ Additional Info: Storage node, server and agent started successfully after applying JON 3.3.0.GA Update 01, however observed that the file ../jon-server-3.3.0.GA/rhq-storage/bin/cassandra has below after applying JON 3.3.0.GA Update 01: NUMACTL_ARGS="--interleave=all" if which numactl >/dev/null 2>/dev/null && numactl $NUMACTL_ARGS ls / >/dev/null 2>/dev/null then NUMACTL="numactl $NUMACTL_ARGS" else NUMACTL="" fi Environment details: # uname -a SunOS solaris10 5.10 Generic_147148-26 i86pc i386 i86pc # isainfo -kv 64-bit amd64 kernel modules # which numactl; echo $? no numactl in /export/home/java/jdk1.7.0_60/bin /usr/sbin /usr/bin 0 After discussing with Libor, performed below steps on 3.3.0.GA Update 01 running instance on Solaris 10: 1) ./rhqctl stop 2) Deleted rhq-storage directory 3) ./rhqctl install The console displays: 21:17:14,480 INFO [org.rhq.server.control.command.Install] The storage node installer has finished with an exit value of 0 ./cassandra: numactl: not found 4) ./rhqctl start The console displays: 21:19:24,551 INFO [org.jboss.modules] JBoss Modules version 1.3.3.Final-redhat-1 ./cassandra: numactl: not found 5) The file rhq-storage/bin/cassandra has below on line#97: if which numactl >/dev/null 2>/dev/null && numactl $NUMACTL_ARGS ls / >/dev/null 2>/dev/null Moving to ON_QA as available to test with latest CP build: http://download.devel.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/16/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip *Note: jon-server-patch-3.3.0.GA.zip maps to CR01 build of jon-server-3.3.0.GA-update-01.zip. Tested on 3.3.1.CR01 When tried to apply the patch on JON 3.3.0.GA on Solaris 10, it displays a syntax error: # ./apply-updates.sh /export/home/JON3.3GA/jon-server-3.3.0.GA ./apply-updates.sh: syntax error at line 122: `LINES_TO_REMOVE=$' unexpected ------------------------------- The line#122 in ./apply-updates.sh script has below: LINES_TO_REMOVE=$(wc -l < "$FILES_TO_MOVE"); Steps: -Install JON 3.3.0.GA -Apply the CR01 patch with ./apply-updates.sh Moving this bug back to ON_QA after discussing with Libor and filing new bug#1193447 for the syntax error on applying JON 3.3.1.CR01 patch. Adding the latest build where the solaris issues should be fixed now: http://download.devel.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/21/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip Verified on JON 3.3.1.CR03 The error './cassandra: numactl: not found' is no more visible while starting/stopping storage node after applying JON 3.3.0.GA Update 01. Also verified that the file rhq-storage/bin/cassandra has below on line#97: if type numactl >/dev/null 2>/dev/null && numactl $NUMACTL_ARGS ls / >/dev/null 2>/dev/null |