On 14-Feb-15 12:40 AM, Johnson, Charles wrote:
>
> Interesting. When I try to move the AmfDemo, and run it from PL-4 and PL-3, 
> instead of SC-1 and SC2, but it fails to load.
>
> What I did was to change the AppConfig-2N.xml file doing those substitutions, 
> the text is included below (it's not long.)
>
> The log states that it cannot find the script which is in the same place it 
> was on all the nodes (/opt/amf_demo/amf_demo_script), or that it is corrupt, 
> which it is not.
>
> Works fine in the controller nodes, not in the payload nodes: am I missing 
> some limitation regarding Amf?
Please configure below mentioned attribute in SU obejct to host it on a 
desired a node. In the sample configuration this attribute is not 
configured.
<attr>
        <name>saAmfSUHostNodeOrNodeGroup</name>
        <value>safAmfNode=SC-1,safAmfCluster=myAmfCluster</value>
</attr>

See below the configuration with changes.

Thanks
Praveen
>
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[9188]: IN 
> 'safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1' Presence State 
> UNINSTANTIATED => INSTANTIATING
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[9188]: NO 
> 'safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1' Presence State UNINSTANTIATED => 
> INSTANTIATING
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[26506]: 
> ncs_os_process_execute_timed: execvp 'amf_demo_script' failed - No such file 
> or directory
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[9188]: NO Instantiation 
> of 'safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1' failed
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[9188]: NO Reason:'Exec 
> of script failed (script not readable or path wrong)'
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[9188]: NO CLC CLI 
> script:'amf_demo_script instantiate'
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[26507]: 
> ncs_os_process_execute_timed: execvp 'amf_demo_script' failed - No such file 
> or directory
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[9188]: NO Cleanup of 
> 'safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1' failed
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[9188]: NO Reason:'Exec 
> of script failed (script not readable or path wrong)'
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[9188]: NO CLC CLI 
> script:'amf_demo_script cleanup'
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[9188]: WA 
> 'safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1' Presence State 
> INSTANTIATING => TERMINATION_FAILED
> Feb 13 08:32:41 metabox-fedora19-dl365g3-7 osafamfnd[9188]: NO 
> 'safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1' Presence State INSTANTIATING => 
> TERMINATION_FAILED
>
> ________________________________
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> *      -*- OpenSAF  -*-
> *
> * (C) Copyright 2009 The OpenSAF Foundation
> *
> * This program is distributed in the hope that it will be useful, but
> * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
>
> ......
>
>          <object class="SaSmfSwBundle">
>                          <dn>safSmfBundle=AmfDemo</dn>
>          </object>
>          <object class="SaAmfNodeSwBundle">
>                  
> <dn>safInstalledSwBundle=safSmfBundle=AmfDemo,safAmfNode=PL-4,safAmfCluster=myAmfCluster</dn>
>                  <attr>
>                          <name>saAmfNodeSwBundlePathPrefix</name>
>                          <value>/opt/amf_demo</value>
>                  </attr>
>          </object>
>          <object class="SaAmfSU">
>                  <dn>safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1</dn>
>                  <attr>
>                          <name>saAmfSUType</name>
>                          <value>safVersion=1,safSuType=AmfDemo1</value>
>                  </attr>
>                  <attr>
>                          <name>saAmfSURank</name>
>                          <value>1</value>
>                  </attr>
>                  <attr>
>                          <name>saAmfSUAdminState</name>
>                          <value>3</value>
>                  </attr>
<attr>
        <name>saAmfSUHostNodeOrNodeGroup</name>
        <value>safAmfNode=PL-4,safAmfCluster=myAmfCluster</value>
</attr>
>          </object>
>          <object class="SaAmfComp">
>                  
> <dn>safComp=AmfDemo,safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1</dn>
>                  <attr>
>                          <name>saAmfCompType</name>
>                          <value>safVersion=1,safCompType=AmfDemo1</value>
>                  </attr>
>                  <attr>
>                          <name>saAmfCompCmdEnv</name>
>                          <value>AMF_DEMO_VAR2=COMP1_OVERLOAD_VALUE2</value>
>                          <value>AMF_DEMO_VAR3=COMP1_VALUE3</value>
>                          <value>AMF_DEMO_VAR4=COMP1_VALUE4</value>
>                  </attr>
>          </object>
>          <object class="SaAmfCompCsType">
>              
> <dn>safSupportedCsType=safVersion=1\,safCSType=AmfDemo1,safComp=AmfDemo,safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1</dn>
>          </object>
>          <object class="SaAmfNodeSwBundle">
>                  
> <dn>safInstalledSwBundle=safSmfBundle=AmfDemo,safAmfNode=PL-3,safAmfCluster=myAmfCluster</dn>
>                  <attr>
>                          <name>saAmfNodeSwBundlePathPrefix</name>
>                          <value>/opt/amf_demo</value>
>                  </attr>
>          </object>
>          <object class="SaAmfSU">
>                  <dn>safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1</dn>
>                  <attr>
>
>                          <name>saAmfSUType</name>
>                          <value>safVersion=1,safSuType=AmfDemo1</value>
>                  </attr>
>                  <attr>
>                          <name>saAmfSURank</name>
>                          <value>2</value>
>                  </attr>
>                  <attr>
>                          <name>saAmfSUAdminState</name>
>                          <value>3</value>
<attr>
        <name>saAmfSUHostNodeOrNodeGroup</name>
        <value>safAmfNode=PL-3,safAmfCluster=myAmfCluster</value>
</attr>
>                  </attr>
>          </object>
>          <object class="SaAmfComp">
>                  
> <dn>safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1</dn>
>                  <attr>
>                          <name>saAmfCompType</name>
>                          <value>safVersion=1,safCompType=AmfDemo1</value>
>                  </attr>
>                  <attr>
>                          <name>saAmfCompCmdEnv</name>
>                          <value>AMF_DEMO_VAR2=COMP2_OVERLOAD_VALUE2</value>
>                          <value>AMF_DEMO_VAR3=COMP2_VALUE3</value>
>                          <value>AMF_DEMO_VAR4=COMP2_VALUE4</value>
>                  </attr>
>          </object>
>          <object class="SaAmfCompCsType">
>              
> <dn>safSupportedCsType=safVersion=1\,safCSType=AmfDemo1,safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1</dn>
>          </object>
> </imm:IMM-contents>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Opensaf-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensaf-users
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-users

Reply via email to