Hello.

I am trying to use passive monitoring with some binaries that cannot be 
modified to integrate active monitoring. The thing is, for some binaries it 
works, for some others the call to saAmfPmStart_3 is failing with 
SA_AIS_ERR_NOT_EXIST.
With the same imm.xml, I just change the saAmfCtRelPathInstantiateCmd to point 
to a different binary and it fails.

The binaries do get executed. In some other occasions, the error was caused by 
the binary not being run. But the binaries do get launched by the 
InstantiateCmd. When the saAmfPmStart_3 fails, the CleanupCmd is called and the 
binaries get killed, therefore, the PID points to the correct place.

The opensafd log does not show any info other than the SU failover message. 
I've enabled the logging in the amfpm binary and this is the output:

<143>1 2020-05-06T19:20:48.92391Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="55"] 26711:amf/agent/amf_agent.cc:2338 >> PmStart_3: SaAmfHandleT 
passed is ffb00001
<143>1 2020-05-06T19:20:48.923922Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="56"] 26711:amf/agent/amf_agent.cc:1060 >> PmStart: SaAmfHandleT 
passed is ffb00001
<143>1 2020-05-06T19:20:48.923938Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="57"] 26711:amf/agent/ava_mds.cc:361 >> ava_mds_send
<143>1 2020-05-06T19:20:48.923946Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="58"] 26711:amf/agent/ava_mds.cc:1059 >> ava_mds_msg_syn_send
<143>1 2020-05-06T19:20:48.923981Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="59"] 26711:amf/agent/ava_mds.cc:211 >> ava_mds_cbk
<143>1 2020-05-06T19:20:48.923991Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="60"] 26711:amf/agent/ava_mds.cc:514 >> ava_mds_flat_enc
<143>1 2020-05-06T19:20:48.924004Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="61"] 26711:amf/agent/ava_mds.cc:709 << ava_mds_flat_enc: retval = 1
<143>1 2020-05-06T19:20:48.924013Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="62"] 26711:amf/agent/ava_mds.cc:269 TR MDS flat encode callback 
success
<143>1 2020-05-06T19:20:48.92402Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="63"] 26711:amf/agent/ava_mds.cc:338 << ava_mds_cbk
<143>1 2020-05-06T19:20:48.924233Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="64"] 26713:mds/mds_dt_trans.c:755 >> mdtm_process_poll_recv_data_tcp
<143>1 2020-05-06T19:20:48.924271Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="65"] 26713:amf/agent/ava_mds.cc:211 >> ava_mds_cbk
<143>1 2020-05-06T19:20:48.924281Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="66"] 26713:amf/agent/ava_mds.cc:728 >> ava_mds_flat_dec
<143>1 2020-05-06T19:20:48.924293Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="67"] 26713:amf/agent/ava_mds.cc:980 << ava_mds_flat_dec: retval = 1
<143>1 2020-05-06T19:20:48.924301Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="68"] 26713:amf/agent/ava_mds.cc:287 TR MDS flat decode callback 
success
<143>1 2020-05-06T19:20:48.924308Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="69"] 26713:amf/agent/ava_mds.cc:338 << ava_mds_cbk
<143>1 2020-05-06T19:20:48.924371Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="70"] 26711:amf/agent/ava_mds.cc:1088 << ava_mds_msg_syn_send: 
retval = 1
<143>1 2020-05-06T19:20:48.924394Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="71"] 26711:amf/agent/ava_mds.cc:393 TR AVA MDS send success
<143>1 2020-05-06T19:20:48.9244Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="72"] 26711:amf/agent/ava_mds.cc:395 << ava_mds_send
<143>1 2020-05-06T19:20:48.924409Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="73"] 26711:amf/agent/amf_agent.cc:1129 T2 AMFAGENT ava_mds_send 
success
<143>1 2020-05-06T19:20:48.924426Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="74"] 26711:amf/agent/amf_agent.cc:1154 << PmStart: rc:12
<143>1 2020-05-06T19:20:48.924434Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="75"] 26711:amf/agent/amf_agent.cc:2383 << PmStart_3: rc:12
<143>1 2020-05-06T19:20:48.924442Z proc0104 amfpm 26711 amfpm [meta 
sequenceId="76"] 26711:amf/tools/amf_pm.c:319 TR AMFPM saAmfPmStart FAILED

As you can see, everthing is seemingly correct up till the last moment, where 
the error code 12 (== SA_AIS_ERR_NOT_EXIST) causes it to fail. In amf_agent.cc 
there's this  code:

  rc = static_cast<SaAisErrorT>(ava_mds_send(cb, &msg, &msg_rsp));
  if (NCSCC_RC_SUCCESS == rc) {
   TRACE_2("AMFAGENT ava_mds_send success");
    osafassert(AVSV_AVND_AMF_API_RESP_MSG == msg_rsp->type);
    osafassert(AVSV_AMF_PM_START == msg_rsp->info.api_resp_info.type);
    rc = msg_rsp->info.api_resp_info.rc;

That's where the rc gets set to SA_AIS_ERR_NOT_EXIST. I've found five places 
where msg_rsp->info.api_resp_info.rc gets assigned SA_AIS_ERR_NOT_EXIST, all of 
them in clms_evt.cc but I'm afraid I cannot pinpoint the exact place where it 
happens in this occasion because the log messages there do not appear anywhere.

Do you know what could be causing this issue?

Thanks.


[Navantia]
________________________________

NAVANTIA S.A. S.M.E. Este mensaje y cualquier fichero anexo al mismo contiene 
información de carácter confidencial dirigida exclusivamente a su(s) 
destinatario(s) y, en su caso, sometida a secreto profesional. Queda prohibida 
su difusión, copia o distribución a terceros sin la previa autorización 
escrita. Si Vd. ha recibido este mensaje por error, se ruega lo comunique 
inmediatamente por esta misma vía y proceda a su completa eliminación. Puede 
revisar nuestra política de privacidad en http://www.navantia.es/es/legal/.

The information in this e-mail and in any attachments is confidential and, if 
any, protected by a professional privilege and intended solely for the 
attention and use of the named address(es). You are hereby notified that any 
dissemination, copy or distribution of this information is prohibited without 
the prior written consent. If you have received this communication in error, 
please notify the sender by reply e-mail and delete it. You can review our 
privacy policy at http://www.navantia.es/en/legal/.

________________________________

[Navantia] Piense en el medio ambiente. ¿Necesita realmente imprimir este 
correo? Please care for the environment. Do you really need to print this 
e-mail?

_______________________________________________
Opensaf-users mailing list
Opensaf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-users

Reply via email to