Hi- I'm trying to build a new app, starting from the AVSV demo. The code is exactly the same as avsv_demo, except I renamed the binary to vlc_demo and moved things around to different places. This cluster has 2 controllers and no payloads. However, when my cluster starts up it never starts up the application. I know this because I put a "touch /chad" in the comp_inst.sh script and it doesn't happen.
I'm attaching the XML file here. Is there something wrong with it? I have grepped in /var/log/messages and all the files in /var/opt/opensaf looking for anything related to vlc, and don't see anything. Also there are no XML parse errors in syslog. OpenSAF knows about the app because I see: saf2-bl465-3-0:/opt/opensaf/controller # snmpwalk -v2c -c public -m /usr/share/snmp/mibs/SAF-AMF-MIB localhost saAmfSGTable | grep -i demo SAF-AMF-MIB::saAmfSGRedModel."safSg=SG_VLCDemo" = INTEGER: twoN(1) SAF-AMF-MIB::saAmfSGFailbackOption."safSg=SG_VLCDemo" = INTEGER: false(2) SAF-AMF-MIB::saAmfSGNumPrefActiveSUs."safSg=SG_VLCDemo" = Gauge32: 0 SAF-AMF-MIB::saAmfSGNumPrefStandbySUs."safSg=SG_VLCDemo" = Gauge32: 0 SAF-AMF-MIB::saAmfSGNumPrefInserviceSUs."safSg=SG_VLCDemo" = Gauge32: 2 SAF-AMF-MIB::saAmfSGNumPrefAssignedSUs."safSg=SG_VLCDemo" = Gauge32: 0 SAF-AMF-MIB::saAmfSGMaxActiveSIsperSU."safSg=SG_VLCDemo" = Gauge32: 0 SAF-AMF-MIB::saAmfSGMaxStandbySIsperSU."safSg=SG_VLCDemo" = Gauge32: 0 SAF-AMF-MIB::saAmfSGAdminState."safSg=SG_VLCDemo" = INTEGER: unlocked(2) SAF-AMF-MIB::saAmfSGCompRestartProb."safSg=SG_VLCDemo" = Hex-STRING: 00 00 03 A3 52 94 40 00 SAF-AMF-MIB::saAmfSGCompRestartMax."safSg=SG_VLCDemo" = Gauge32: 10 SAF-AMF-MIB::saAmfSGSuRestartProb."safSg=SG_VLCDemo" = Hex-STRING: 00 00 03 A3 52 94 40 00 SAF-AMF-MIB::saAmfSGSuRestartMax."safSg=SG_VLCDemo" = Gauge32: 10 SAF-AMF-MIB::saAmfSGNumCurrAssignedSU."safSg=SG_VLCDemo" = Counter32: 0 SAF-AMF-MIB::saAmfSGNumCurrNonInstantiatedSpareSU."safSg=SG_VLCDemo" = Counter32: 0 SAF-AMF-MIB::saAmfSGNumCurrSpareSU."safSg=SG_VLCDemo" = Counter32: 0 SAF-AMF-MIB::saAmfSGRowStatus."safSg=SG_VLCDemo" = INTEGER: active(1) But this other table is empty: saf2-bl465-3-0:/opt/opensaf/controller # snmpwalk -v2c -c public -m /usr/share/snmp/mibs/SAF-AMF-MIB localhost saAmfSUSITable | grep -i demo saf2-bl465-3-0:/opt/opensaf/controller # Any ideas on what I'm doing wrong or how to debug this? Thanks, Chad
<?xml version="1.0" encoding="UTF-8"?> <!-- * -*- OpenSAF -*- * * (C) Copyright MOTOROLA INC. 2007 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This * file and program are licensed under High-Availability Operating * Environment Software License. * Complete License can be accesseble from below location. * http://www.opensaf.org/license * See the Copying file included with the OpenSAF distribution for * full licensing terms. * * Author(s): * * --> <!--Sample XML file generated by XMLSPY v2004 rel. 3 U (http://www.xmlspy.com)--> <APPConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="AppConfig.xsd" name="VLCDEMO"> <AMFConfig cluster="myAmfConfig"> <componentPrototype name="safComp=CompT_VLCDemo" finalPrototype="1"> <clcCommands> <instantiateCommand> <command>/root/src/vlc_demo/comp_inst.sh</command> <timeout>60000</timeout> <numMaxInstantiate>2</numMaxInstantiate> </instantiateCommand> <terminateCommand> <command>/root/src/vlc_demo/comp_term.sh</command> <timeout>5000</timeout> </terminateCommand> <cleanupCommand> <command>/root/src/vlc_demo/comp_term.sh</command> <timeout>5000</timeout> </cleanupCommand> </clcCommands> <instantiationLevel>1</instantiationLevel> <csiPrototypeName>safCsi=Csi_VLCDemo</csiPrototypeName> <saAwareComponent> <capability>1_ACTIVE_OR_1_STANDBY</capability> <numMaxActiveCSIs>2</numMaxActiveCSIs> <numMaxStandbyCSIs>2</numMaxStandbyCSIs> <healthCheck key="A9FD64E12C"> <period>2000</period> <maxDuration>6000</maxDuration> </healthCheck> <disableRestart>true</disableRestart> <QuiescingDoneTimeout>5000</QuiescingDoneTimeout> <terminationTimeout>5000</terminationTimeout> <csiSetCallbackTimeout>5000</csiSetCallbackTimeout> <csiRmvCallbackTimeout>5000</csiRmvCallbackTimeout> </saAwareComponent> <enableAM>0</enableAM> </componentPrototype> <CSIPrototype name="safCsi=junk" > <ParamName name="Param1" /> <ParamName name="Param2" /> </CSIPrototype> <CSIPrototype name="safCsi=Csi_VLCDemo" > <ParamName name="CsiAttr" /> </CSIPrototype> <SUPrototype name="safSu=SuT_VLCDemo" finalPrototype="1"> <componentPrototypeList> <componentPrototype>safComp=CompT_VLCDemo</componentPrototype> </componentPrototypeList> </SUPrototype> <SIInstance name="safSi=Si_VLCDemo"> <CSIList> <CSIInstance name="safCsi=Csi_VLCDemo" rank="1"> <prototypeName>safCsi=Csi_VLCDemo</prototypeName> <CSIAttributes> <nameValueList> <nameValue name="CsiAttr" value="CsiAttrVal"/> </nameValueList> </CSIAttributes> </CSIInstance> </CSIList> </SIInstance> <SGInstance name="safSg=SG_VLCDemo"> <redundancyModel> <model_2N> <SURankList> <SU SUName="safSu=SuT_VLCDemo,safNode=SC_2_1" rank="1"/> <SU SUName="safSu=SuT_VLCDemo,safNode=SC_2_2" rank="2"/> </SURankList> <numPrefInserviceSUs>2</numPrefInserviceSUs> <failbackOption>0</failbackOption> </model_2N> </redundancyModel> <SGErrorEscalation> <componentRestartMax>10</componentRestartMax> <componentRestartProbation>4000000</componentRestartProbation> <SURestartMax>10</SURestartMax> <SURestartProbation>4000000</SURestartProbation> </SGErrorEscalation> <SIList> <SI rank="1">safSi=Si_VLCDemo</SI> </SIList> </SGInstance> <nodePrototype name="safNode=NodeT_Payload"> <nodeAttributes> <nodeErrorEscalation> <SUFailoverMax>2</SUFailoverMax> <SUFailoverProbation>100</SUFailoverProbation> </nodeErrorEscalation> </nodeAttributes> <SUFinalPrototypeList> <SUFinalPrototype>safSu=SuT_VLCDemo</SUFinalPrototype> </SUFinalPrototypeList> </nodePrototype> <nodeInstance name="safNode=SC_2_1"> </nodeInstance> <nodeInstance name="safNode=SC_2_2"> </nodeInstance> </AMFConfig> </APPConfig>
_______________________________________________ Users mailing list [email protected] http://list.opensaf.org/maillist/listinfo/users
