- **status**: assigned --> review
---
** [tickets:#2409] amf: Issues with the printing of CLC CLI command environment
variables in traces**
**Status:** review
**Milestone:** 5.17.06
**Created:** Mon Apr 03, 2017 07:07 AM UTC by Nguyen TK Luu
**Last Updated:** Thu Apr 13, 2017 02:27 AM UTC
**Owner:** Nguyen TK Luu
There are following 2 issues with the printing of CLC CLI command environment
variables of a component in amfnd traces:
- Environment variables set in both CompType and Comp got doubly printed.
- Environment variables with incorrect format (i.e not 'var=value') got printed
with weird output.
Reproduce using amf_demo testapp with the following set of environment
variables:
<object class="SaAmfCompType">
<dn>safVersion=1,safCompType=AmfDemo1</dn>
...
<attr>
<name>saAmfCtDefCmdEnv</name>
<value>AMF_DEMO_VAR1=CT_VALUE1</value>
<value>AMF_DEMO_VAR2=CT_VALUE2</value>
</attr>
</object>
<object class="SaAmfComp">
<dn>safComp=AmfDemo,safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1</dn>
...
<attr>
<name>saAmfCompCmdEnv</name>
<value>AMF_DEMO_VAR2=COMP1_OVERLOAD_VALUE2</value>
<value>AMF_DEMO_VAR3</value>
<value>AMF_DEMO_VAR4 = COMP1_VALUE4</value>
</attr>
</object>
Apr 3 13:21:15.680056 osafamfnd [290:290:src/amf/amfnd/clc.cc:2927] >>
avnd_comp_clc_cmd_execute:
'safComp=AmfDemo,safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1':CLC CLI command
type:'AVND_COMP_CLC_CMD_TYPE_INSTANTIATE(1)'
Apr 3 13:21:15.680147 osafamfnd [290:290:src/amf/amfnd/clc.cc:2984] ER Unknown
enviroment variable format 'AMF_DEMO_VAR3'. Should be 'var=value'
Apr 3 13:21:15.680168 osafamfnd [290:290:src/amf/amfnd/clc.cc:3091] T1 CLC CLI
script:'/opt/amf_demo/amf_demo_script'
Apr 3 13:21:15.680173 osafamfnd [290:290:src/amf/amfnd/clc.cc:3093] T1 CLC CLI
command arguments[1] ='instantiate'
Apr 3 13:21:15.680176 osafamfnd [290:290:src/amf/amfnd/clc.cc:3096] T1 CLC CLI
command timeout: In nano secs:10000000000 In milli secs: 10000
Apr 3 13:21:15.680180 osafamfnd [290:290:src/amf/amfnd/clc.cc:3100] T1 CLC CLI
command env variable name = 'AMF_DEMO_VAR2': value ='CT_VALUE2'
Apr 3 13:21:15.680183 osafamfnd [290:290:src/amf/amfnd/clc.cc:3100] T1 CLC CLI
command env variable name = 'AMF_DEMO_VAR1': value ='CT_VALUE1'
Apr 3 13:21:15.680187 osafamfnd [290:290:src/amf/amfnd/clc.cc:3100] T1 CLC CLI
command env variable name = 'AMF_DEMO_VAR4 ': value =' COMP1_VALUE4'
Apr 3 13:21:15.680191 osafamfnd [290:290:src/amf/amfnd/clc.cc:3100] T1 CLC CLI
command env variable name = '(null)': value ='(null)'
Apr 3 13:21:15.680194 osafamfnd [290:290:src/amf/amfnd/clc.cc:3100] T1 CLC CLI
command env variable name = 'AMF_DEMO_VAR2': value ='COMP1_OVERLOAD_VALUE2'
Apr 3 13:21:15.680197 osafamfnd [290:290:src/amf/amfnd/clc.cc:3100] T1 CLC CLI
command env variable name = 'SA_AMF_COMPONENT_NAME': value
='safComp=AmfDemo,safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1'
Apr 3 13:21:15.680455 osafamfnd [290:290:src/amf/amfnd/clc.cc:3132] T2 The CLC
CLI command execution success
Apr 3 13:21:15.680505 osafamfnd [290:290:src/amf/amfnd/clc.cc:3136] T2 success
Apr 3 13:21:15.680511 osafamfnd [290:290:src/amf/amfnd/clc.cc:3145] <<
avnd_comp_clc_cmd_execute: 1
---
Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets