Hello,
I've been trying to write the instantiate script that will start my application
on one of the nodes in my cluster. I'm not sure if what I did is correct but
I've been following the sample scripts that came with OpeSAF. Attached is a
copy of the Start Script which is the script that I'm currently using to
instantiate my application and the error log that I get when I start OpenSAF
and a run the "unlock-in" and "unlock" commands.
Any help would me appreciated.
Regards,
Rabih El-Zahr
----------------------------------------------------------------------------------------------------------------------------------------------
#Start Script
name=$(basename $0)
if [ -z $SA_AMF_COMPONENT_NAME ]; then
logger -st $name "not AMF component context"
exit 199
fi
prog="wormy"
binary=/opt/amf_demo/$prog
if ! [ -x $binary ]; then
logger -st $name "$binary not executable"
exit 198
fi
# Source LSB functions library
. /lib/lsb/init-functions
piddir="/tmp"
pidfile="$piddir/${SA_AMF_COMPONENT_NAME}.pid"
RETVAL=0
args="$*"
echo -n "Starting $prog: "
start_daemon -p $pidfile $binary $args
#start -p $pidfile $binary $args
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
logger -st $name "Starting $binary failed"
fi
exit $RETVAL
----------------------------------------------------------------------------------------------------------------------------------------------
OpenSAF Message Log
1 13:18:06 comp1 start: Starting /opt/amf_demo/wormy failed
Mar 1 13:18:06 comp1 osafamfnd[1734]: Instantiation of
'safComp=snmpd,safSu=1,safSg=2N,safApp=net-snmp' failed
Mar 1 13:18:06 comp1 osafamfnd[1734]: Reason:'Exec of script success, but
script exits with non-zero status'
Mar 1 13:18:06 comp1 osafamfnd[1734]: Exit code: 1
Mar 1 13:18:06 comp1 osafamfnd[1734]: 'safSu=1,safSg=2N,safApp=net-snmp'
Presence State INSTANTIATING => INSTANTIATION_FAILED
Mar 1 13:18:06 comp1 osafamfd[1726]: Failed to assign 'ACTIVE' HA state to
'safSu=1,safSg=2N,safApp=net-snmp'
Mar 1 13:18:06 comp1 osafamfnd[1734]: Assigning 'safSi=1,safApp=net-snmp'
QUIESCED to 'safSu=1,safSg=2N,safApp=net-snmp'
Mar 1 13:18:06 comp1 osafamfnd[1734]: Assigned 'safSi=1,safApp=net-snmp'
QUIESCED to 'safSu=1,safSg=2N,safApp=net-snmp'
Mar 1 13:18:06 comp1 osafamfnd[1734]: Removed 'safSi=1,safApp=net-snmp' from
'safSu=1,safSg=2N,safApp=net-snmp'
Mar 1 13:20:29 comp1 kernel: [ 1043.321636] sr0: CDROM not ready. Make sure
there is a disc in the drive.
Mar 1 13:20:29 comp1 kernel: [ 1043.355699] [drm] nouveau 0000:01:00.0:
Setting dpms mode 3 on vga encoder (output 0)
Mar 1 13:20:29 comp1 kernel: [ 1043.375988] [drm] nouveau 0000:01:00.0:
Setting dpms mode 0 on vga encoder (output 0)
Mar 1 13:20:29 comp1 kernel: [ 1043.375993] [drm] nouveau 0000:01:00.0: Output
DVI-I-1 is running on CRTC 0 using output A
Mar 1 13:20:30 comp1 kernel: [ 1043.900014] [drm] nouveau 0000:01:00.0:
Setting dpms mode 3 on vga encoder (output 0)
Mar 1 13:20:30 comp1 kernel: [ 1043.920262] [drm] nouveau 0000:01:00.0:
Setting dpms mode 0 on vga encoder (output 0)
Mar 1 13:20:30 comp1 kernel: [ 1043.920267] [drm] nouveau 0000:01:00.0: Output
DVI-I-1 is running on CRTC 0 using output A
Mar 1 13:22:24 comp1 osafamfnd[1734]: 'safSu=1,safSg=2N,safApp=net-snmp'
Presence State INSTANTIATION_FAILED => UNINSTANTIATED
Mar 1 13:54:35 comp1 osafamfnd[1734]: Assigning 'safSi=1,safApp=net-snmp'
ACTIVE to 'safSu=1,safSg=2N,safApp=net-snmp'
Mar 1 13:54:35 comp1 osafamfnd[1734]: 'safSu=1,safSg=2N,safApp=net-snmp'
Presence State UNINSTANTIATED => INSTANTIATING
Mar 1 13:54:35 comp1 start: Starting /opt/amf_demo/wormy failed
Mar 1 13:54:35 comp1 osafamfnd[1734]: Instantiation of
'safComp=snmpd,safSu=1,safSg=2N,safApp=net-snmp' failed
Mar 1 13:54:35 comp1 osafamfnd[1734]: Reason:'Exec of script success, but
script exits with non-zero status'
Mar 1 13:54:35 comp1 osafamfnd[1734]: Exit code: 1
Mar 1 13:54:35 comp1 osafamfnd[1734]: 'safSu=1,safSg=2N,safApp=net-snmp'
Presence State INSTANTIATING => INSTANTIATION_FAILED
Mar 1 13:54:35 comp1 osafamfd[1726]: Failed to assign 'ACTIVE' HA state to
'safSu=1,safSg=2N,safApp=net-snmp'
Mar 1 13:54:35 comp1 osafamfnd[1734]: Assigning 'safSi=1,safApp=net-snmp'
QUIESCED to 'safSu=1,safSg=2N,safApp=net-snmp'
Mar 1 13:54:35 comp1 osafamfnd[1734]: Assigned 'safSi=1,safApp=net-snmp'
QUIESCED to 'safSu=1,safSg=2N,safApp=net-snmp'
Mar 1 13:54:35 comp1 osafamfnd[1734]: Removed 'safSi=1,safApp=net-snmp' from
'safSu=1,safSg=2N,safApp=net-snmp'
Mar 1 13:55:48 comp1 osafamfnd[1734]: 'safSu=1,safSg=2N,safApp=net-snmp'
Presence State INSTANTIATION_FAILED => UNINSTANTIATED
----------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-users