- **status**: review --> fixed
- **Comment**:

default 5.0

changeset:   7328:e6e0dcf592a4 [e6e0dc]
tag:         tip
user:        Hung Nguyen <hung.d.ngu...@dektech.com.au>
date:        Wed Mar 16 17:30:35 2016 +0700
summary:     imm: Correct object name used to search in 
ImmModel::canonicalizeAttrModification() [#1680]




---

** [tickets:#1680] IMM: immnd crashes when configuring saAmfToleranceTime for 
safDepend object**

**Status:** fixed
**Milestone:** 5.0.FC
**Created:** Tue Feb 16, 2016 07:06 AM UTC by Quyen Dao
**Last Updated:** Tue Feb 16, 2016 09:12 AM UTC
**Owner:** Hung Nguyen


**cmd log**
root@SC-1:~# immcfg -a saAmfToleranceTime=1000000000000 
"safDepend=safSi=AmfDemo1_2\,safApp=AmfDemo1,safSi=AmfDemo1_1,safApp=AmfDemo1"
error - saImmOmCcbObjectModify_2 FAILED: SA_AIS_ERR_BAD_HANDLE (9)
error - saImmOmCcbApply FAILED: SA_AIS_ERR_FAILED_OPERATION (21)
root@SC-1:~#

**syslog**
2016-02-16 13:54:54 SC-1 osafimmnd[424]: ImmModel.cc:7093: 
canonicalizeAttrModification: Assertion 'omuti != ccb->mMutations.end()' failed.
2016-02-16 13:54:54 SC-1 osafimmpbed: WA PBE lost contact with parent IMMND - 
Exiting
2016-02-16 13:54:54 SC-1 osafamfnd[494]: NO 
'safSu=SC-1,safSg=NoRed,safApp=OpenSAF' component restart probation timer 
started (timeout: 60000000000 ns)
2016-02-16 13:54:54 SC-1 osafamfnd[494]: NO Restarting a component of 
'safSu=SC-1,safSg=NoRed,safApp=OpenSAF' (comp restart count: 1)
2016-02-16 13:54:54 SC-1 osafamfnd[494]: NO 
'safComp=IMMND,safSu=SC-1,safSg=NoRed,safApp=OpenSAF' faulted due to 'avaDown' 
: Recovery is 'componentRestart'
2016-02-16 13:54:54 SC-1 osafntfimcnd[455]: NO saImmOiDispatch() Fail 
SA_AIS_ERR_BAD_HANDLE (9)
2016-02-16 13:54:54 SC-1 osafimmd[414]: WA IMMND coordinator at 2010f 
apparently crashed => electing new coord
2016-02-16 13:54:54 SC-1 osafimmd[414]: NO New coord elected, resides at 2020f
2016-02-16 13:54:54 SC-1 osafimmnd[1144]: Started

**backtrace**
(gdb) bt
\#0  0x00007f1d76f69cc9 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
\#1  0x00007f1d76f6d0d8 in __GI_abort () at abort.c:89
\#2  0x00007f1d77c653ce in __osafassert_fail (__file=<optimized out>, 
__line=<optimized out>, __func=<optimized out>, __assertion=<optimized out>) at 
sysf_def.c:281
\#3  0x0000000000428afe in ImmModel::canonicalizeAttrModification 
(this=0x1e6b420, req=req@entry=0x7fff0cba1220) at ImmModel.cc:7093
\#4  0x0000000000428bfc in immModel_canonicalizeAttrModification 
(cb=cb@entry=0x698580 <_immnd_cb>, req=req@entry=0x7fff0cba1220) at 
ImmModel.cc:723
\#5  0x0000000000405248 in immnd_evt_proc_object_modify (cb=cb@entry=0x698580 
<_immnd_cb>, evt=evt@entry=0x7fff0cba1210, 
originatedAtThisNd=originatedAtThisNd@entry=SA_TRUE,
    clnt_hdl=clnt_hdl@entry=1172526203151, reply_dest=564113889558952) at 
immnd_evt.c:6277
\#6  0x0000000000416a74 in immnd_evt_proc_fevs_dispatch (cb=cb@entry=0x698580 
<_immnd_cb>, msg=msg@entry=0x7f1d70004608, 
originatedAtThisNd=originatedAtThisNd@entry=SA_TRUE,
    clnt_hdl=clnt_hdl@entry=1172526203151, 
reply_dest=reply_dest@entry=564113889558952, msgNo=msgNo@entry=1343) at 
immnd_evt.c:8107
\#7  0x000000000041895d in immnd_evt_proc_fevs_rcv (sinfo=0x7f1d70004720, 
evt=0x7f1d700045e0, cb=0x698580 <_immnd_cb>) at immnd_evt.c:8973
\#8  immnd_process_evt () at immnd_evt.c:681
\#9  0x000000000040b226 in main (argc=<optimized out>, argv=<optimized out>) at 
immnd_main.c:348
(gdb)


-----

The escaped comma **( \, )** is stored in ImmModel as **( \\# )**.
safDepend=safSi=AmfDemo1_2**\\#**safApp=AmfDemo1,safSi=AmfDemo1_1,safApp=AmfDemo1

In canonicalizeAttrModification(), it looked for the original name instead of 
the internal name, which is incorrect.

Attribute canonicalization is introduced in [#801]


---

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.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to