Chad,

I think you have not specified in your BOM that your application SU
VLC_Demo needs to be instantiated on the System Controllers in the
node-instance config:

So this excerpt in your AppConfig.xml:

- <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 name="safNode=SC_2_2" />

Should be replaced with:

- <nodePrototype name="safNode=NodeT_Controller">
- <nodeAttributes>
- <nodeErrorEscalation>
  <SUFailoverMax>2</SUFailoverMax> 
  <SUFailoverProbation>100</SUFailoverProbation> 
  </nodeErrorEscalation>
  </nodeAttributes>
- <SUFinalPrototypeList>
  <SUFinalPrototype>safSu=SuT_VLCDemo</SUFinalPrototype> 
  </SUFinalPrototypeList>
  </nodePrototype>
- <nodeInstance name="safNode=SC_2_1">
  <prototypeName>safNode=NodeT_Controller</prototypeName>  #
============> diff
  </nodeInstance>
- <nodeInstance name="safNode=SC_2_2">
  <prototypeName>safNode=NodeT_Controller</prototypeName>  #
==============> diff
  </nodeInstance> 

Here we first define the NodeT_controller prototype to contain
SuT_VLCDemo and then we define two node instances of that prototype. Try
this out. If this doesn't work we can investigate further.

Sayan


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chad Tindel
Sent: Wednesday, November 07, 2007 8:02 PM
To: [email protected]
Subject: [Users] Help getting demo to work with no payloads

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
_______________________________________________
Users mailing list
[email protected]
http://list.opensaf.org/maillist/listinfo/users

Reply via email to