[tickets] [opensaf:tickets] #2485 amfnd: missing susi response if component is restarted

2017-06-12 Thread Minh Hon Chau via Opensaf-tickets
- **status**: unassigned --> review
- **assigned_to**: Minh Hon Chau



---

** [tickets:#2485] amfnd: missing susi response if component is restarted**

**Status:** review
**Milestone:** 5.17.06
**Created:** Wed Jun 07, 2017 12:57 AM UTC by Gary Lee
**Last Updated:** Fri Jun 09, 2017 11:22 AM UTC
**Owner:** Minh Hon Chau


An SI contains multiple CSIs. If a restart component admin operation arrives at 
amfnd before all CSIs are assigned,
the SUSI response is not sent to AMFD.

This code in avnd_comp_csi_assign_done() appears to be the problem area.

  /* while restarting, we wont use assign all, so csi will not be null */
  if (csi && m_AVND_COMP_CSI_CURR_ASSIGN_STATE_IS_RESTARTING(csi)) {
m_AVND_COMP_CSI_CURR_ASSIGN_STATE_SET(csi,
  AVND_COMP_CSI_ASSIGN_STATE_ASSIGNED);
goto done;
  }

Perhaps we should not initiate a restart in avnd_evt_comp_admin_op_req(), if
a component is still in AVND_COMP_CSI_ASSIGN_STATE_ASSIGNING state.


---

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


[tickets] [opensaf:tickets] #2492 pyosaf: Ensure compatibility with Python 3

2017-06-12 Thread Anders Widell via Opensaf-tickets



---

** [tickets:#2492] pyosaf: Ensure compatibility with Python 3**

**Status:** accepted
**Milestone:** 5.17.08
**Created:** Mon Jun 12, 2017 06:02 PM UTC by Anders Widell
**Last Updated:** Mon Jun 12, 2017 06:02 PM UTC
**Owner:** Anders Widell


Use to [2to3](https://docs.python.org/3/library/2to3.html) tool to fix 
compatibility problems between Python 2 and Python 3.


---

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


[tickets] [opensaf:tickets] #2484 imm: Testsuit 7 of immoitest fails with ERR_TRY_AGAIN

2017-06-12 Thread Hung Nguyen via Opensaf-tickets
- **status**: review --> fixed
- **Comment**:

5.17.08 (develop) [code:db1965]
~~~
commit db1965d634eac2f375f455b7b7d3e9f70ff0c47c
Author: Hung Nguyen 
Date:   Tue Jun 6 14:27:48 2017 +0700

immtest: Explicitly clear implementer name in OI long DN testcases [#2484]

Explicitly clear implementer name in OI long DN testcases.
~~~
5.17.06 (release) [code:4acdec]
~~~
commit 4acdecc368b6326d5997eec406474bdf51452064
Author: Hung Nguyen 
Date:   Tue Jun 6 14:27:48 2017 +0700

immtest: Explicitly clear implementer name in OI long DN testcases [#2484]

Explicitly clear implementer name in OI long DN testcases.

~~~



---

** [tickets:#2484] imm: Testsuit 7 of immoitest fails with ERR_TRY_AGAIN**

**Status:** fixed
**Milestone:** 5.17.06
**Created:** Tue Jun 06, 2017 04:25 AM UTC by Hung Nguyen
**Last Updated:** Tue Jun 06, 2017 08:42 AM UTC
**Owner:** Hung Nguyen


~~~
# immoitest --longDn 7

Suite 7: Long DN
1  PASSED   SA_AIS_OK - Object create callback;
2  PASSED   SA_AIS_OK - Object modify callback;
3  PASSED   SA_AIS_OK - Object delete callback;
4  PASSED   SA_AIS_OK - Rt Object create and delete;
error: in src/imm/apitest/implementer/test_saImmOiLongDn.c at 500: 
SA_AIS_ERR_TRY_AGAIN (6), expected SA_AIS_OK (1) - exiting
~~~

The testcases of testsuite 7 use the same implementer name.
At the end of each testcase, the implementer name is not explicitly cleared 
with saImmOiImplementerClear().
Instead, saImmOiFinalize() is called.
The difference between OiImplementerClear() and OiFinalize() is:
\- OiImplementerClear() returns after the implementer is fully discarded on all 
nodes
\- saImmOiFinalize() returns after the implementer is locally discarded on the 
originating node (no guarantee of being fully discarded)

So if you set the same implementer name after saImmOiFinalize(), chances are 
you will get ERR_TRY_AGAIN.


---

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


[tickets] [opensaf:tickets] #2470 imm: IMMND coredump when discarding client

2017-06-12 Thread Hung Nguyen via Opensaf-tickets
- **status**: review --> fixed
- **Comment**:

5.17.08 (develop) [code:a2200e]
~~~
commit a2200ef57c047abb66150ae6ff9c4a762337ad02
Author: Hung Nguyen 
Date:   Mon May 29 16:52:45 2017 +0700

imm: Clear mLastResult before sending response to agent [#2470]

In immnd_evt_proc_search_next(), before jumping to agent_rsp, mLastResult 
must be cleared.
So that it will not be freed again in immnd_proc_imma_discard_connection().
~~~

5.17.06 (release) [code:3420dc]
~~~
commit 3420dcfd9d1d64da38ff05ff568e37e66958cfb0
Author: Hung Nguyen 
Date:   Mon May 29 16:52:45 2017 +0700

imm: Clear mLastResult before sending response to agent [#2470]

In immnd_evt_proc_search_next(), before jumping to agent_rsp, mLastResult 
must be cleared.
So that it will not be freed again in immnd_proc_imma_discard_connection().
~~~



---

** [tickets:#2470] imm: IMMND coredump when discarding client**

**Status:** fixed
**Milestone:** 5.17.06
**Created:** Mon May 29, 2017 04:05 AM UTC by Hung Nguyen
**Last Updated:** Mon May 29, 2017 11:36 AM UTC
**Owner:** Hung Nguyen


**mLastResult** of **ImmSearchOp** was double freed in 
**immnd_evt_proc_search_next()** and later in 
**immnd_proc_imma_discard_connection()**.

In **immnd_evt_proc_search_next()**, before jumping to **agent_rsp**, 
**mLastResult** must be cleared. So that it will not be freed again in 
**immnd_proc_imma_discard_connection()**.


~~~
2017-04-25T05:30:24.483922-04:00 local0.warning scm2 osafimmnd[2793]: WA 
ERR_NO_RESOURCES: SearchNext: Implementer died during fetch of pure RTA
2017-04-25T05:30:24.670234-04:00 local0.notice scm2 osafamfnd[4402]: NO 
'safSu=SCM2,safSg=NoRed,safApp=OpenSAF' component restart probation timer 
started (timeout: 600 ns)
2017-04-25T05:30:24.670313-04:00 local0.notice scm2 osafamfnd[4402]: NO 
Restarting a component of 'safSu=SCM2,safSg=NoRed,safApp=OpenSAF' (comp restart 
count: 1)
2017-04-25T05:30:24.670514-04:00 local0.notice scm2 osafamfnd[4402]: NO 
'safComp=IMMND,safSu=SCM2,safSg=NoRed,safApp=OpenSAF' faulted due to 'avaDown' 
: Recovery is 'componentRestart'
~~~

~~~
GNU gdb (Wind River Linux Sourcery CodeBench 4.8-28) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-wrs-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/lib64/opensaf/osafimmnd...Reading symbols from 
/usr/lib64/opensaf/.debug/osafimmnd...done.
done.
[New LWP 2793]
[New LWP 2797]
[New LWP 2795]
[New LWP 2796]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/lib64/opensaf/osafimmnd osafimmnd'.
Program terminated with signal 6, Aborted.
#0  0x003d84a353e9 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56  ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x003d84a353e9 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x003d84a38508 in __GI_abort () at abort.c:89
#2  0x003d84a6e964 in __libc_message (do_abort=do_abort@entry=2, 
fmt=fmt@entry=0x3d84b65f88 "*** Error in `%s': %s: 0x%s ***\n") at 
../sysdeps/posix/libc_fatal.c:175
#3  0x003d84a786be in malloc_printerr (action=3, str=0x3d84b62052 "free(): 
invalid pointer", ptr=) at malloc.c:4895
#4  0x003d84a79397 in _int_free (av=, p=0xf8c0f0, 
have_lock=0) at malloc.c:3751
#5  0x004088af in freeSearchNext (rsp=0xbe5d60, freeTop=SA_TRUE) at 
immnd_evt.c:1378
#6  0x00424602 in immnd_proc_imma_discard_connection (cb=0x6eee60 
<_immnd_cb>, cl_node=0x956b60, scAbsence=false) at immnd_proc.c:108
#7  0x0040a657 in immnd_evt_proc_imm_finalize (cb=0x6eee60 <_immnd_cb>, 
evt=0x7ff2640029c0, sinfo=0x7ff264002b00, isOm=SA_TRUE) at immnd_evt.c:2071
#8  0x0040614c in immnd_process_evt () at immnd_evt.c:535
#9  0x00422e14 in main (argc=2, argv=0x7fff532890f8) at immnd_main.c:370
(gdb)
~~~


---

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!