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?

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>
        </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>
        </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

Reply via email to