[tickets] [opensaf:tickets] #1410 pyosaf: Invalid exception used in ImmObject (object.py)

2017-10-02 Thread Hieu Nguyen via Opensaf-tickets
- **Milestone**: future --> 5.17.10



---

** [tickets:#1410] pyosaf: Invalid exception used in ImmObject (object.py)**

**Status:** review
**Milestone:** 5.17.10
**Created:** Fri Jul 10, 2015 10:11 AM UTC by Johan Mårtensson
**Last Updated:** Tue Oct 03, 2017 03:58 AM UTC
**Owner:** Hieu Nguyen


ImmObject uses an invalid way to raise exceptions:


>>> a = ImmObject('NonExistingClass')
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/local/lib/python2.7/dist-packages/pyosaf/utils/immom/object.py", 
line 63, in __init__
raise
TypeError: exceptions must be old-style classes or derived from BaseException, 
not NoneType



---

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] #1410 pyosaf: Invalid exception used in ImmObject (object.py)

2017-10-02 Thread Hieu Nguyen via Opensaf-tickets
- **status**: accepted --> review
- **Comment**:

Solution fix:
+ ImmObject use exceptions raise without NoneType



---

** [tickets:#1410] pyosaf: Invalid exception used in ImmObject (object.py)**

**Status:** review
**Milestone:** future
**Created:** Fri Jul 10, 2015 10:11 AM UTC by Johan Mårtensson
**Last Updated:** Mon Oct 02, 2017 09:45 AM UTC
**Owner:** Hieu Nguyen


ImmObject uses an invalid way to raise exceptions:


>>> a = ImmObject('NonExistingClass')
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/local/lib/python2.7/dist-packages/pyosaf/utils/immom/object.py", 
line 63, in __init__
raise
TypeError: exceptions must be old-style classes or derived from BaseException, 
not NoneType



---

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] #2584 smf: Upgrade failed due to CCB aborted by imm sync request

2017-10-02 Thread Vijay Roy via Opensaf-tickets
**Code fix for:**
A delay timer set for 60 seconds for CampaignWrapup activity during ImmSync to 
avoid the failure during middleware upgrade when a roleback element of smf 
campaign thread returns "SA_AIS_ERR_TRY_AGAIN". 

File Modified: "SmfCampaignWrapup.cc"


---

** [tickets:#2584] smf: Upgrade failed due to CCB aborted by imm sync request**

**Status:** review
**Milestone:** 5.17.10
**Created:** Tue Sep 19, 2017 02:08 PM UTC by Vijay Roy
**Last Updated:** Thu Sep 28, 2017 02:18 PM UTC
**Owner:** Vijay Roy


During activation UP at CampaignWrapup phase (campCompleteAction), the 
payload(PL_X) comes up and requests sync IMM data base, that causing the ccb 
324 aborted.

Sep 19 18:25:12 SC-1 osafimmd[78506]: NO Node 1188f request sync sync-pid:79672 
epoch:0
Sep 19 18:25:15 SC-1 osafimmnd[78509]: WA Aborting ccbId  324 to start sync
Sep 19 18:25:15 SC-1 osafimmnd[78509]: NO Ccb 324 ABORTED (SMFSERVICE)
Sep 19 18:25:15 SC-1 osafimmloadd: NO Sync starting
Sep 19 18:25:16 SC-1 osafimmloadd: IN Synced 318120 objects in total
…
Sep 19 18:25:17 SC-1 osafsmfd[78612]: ER SmfCampaignWrapup campCompleteAction 5 
failed, rc=SA_AIS_ERR_TRY_AGAIN (6)
Sep 19 18:25:17 SC-1 osafsmfd[78612]: ER Campaign wrapup executing campaign 
complete actions failed



---

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] #2604 imm: osafimmpbed coredump when building with coverage enabled

2017-10-02 Thread Hung Nguyen via Opensaf-tickets
- **status**: accepted --> fixed
- **Comment**:

develop (5.17.10) [code:bc4979]
~~~
commit bc497981905f39aaa5b63cdf85b7557972650d94
Author: Hung Nguyen 
Date:   Mon Oct 2 13:28:40 2017 +0700

imm: Don't call exit() in IMM library [#2604]

When PBE loses connection with IMMND, we don't call exit() in IMM library.
Instead, we mark the handle as exposed and then PBE will exit when it fails 
to call saImmOmDispatch.
~~~

release [code:9094ca]
~~~
commit 9094ca52ef7649a803097ed86663774abc61d6f9
Author: Hung Nguyen 
Date:   Mon Oct 2 13:28:40 2017 +0700

imm: Don't call exit() in IMM library [#2604]

When PBE loses connection with IMMND, we don't call exit() in IMM library.
Instead, we mark the handle as exposed and then PBE will exit when it fails 
to call saImmOmDispatch.
~~~



---

** [tickets:#2604] imm: osafimmpbed coredump when building with coverage 
enabled**

**Status:** fixed
**Milestone:** 5.17.10
**Created:** Sun Oct 01, 2017 02:20 AM UTC by Hung Nguyen
**Last Updated:** Sun Oct 01, 2017 02:20 AM UTC
**Owner:** Hung Nguyen


When IMMND is down or unregisters MDS (for headless), pbe may call exit() in 
both main thread and MDS thread.

~~~
09:26:40.343 SC-1 osafimmpbed: NO IMM PBE received SIG_TERM, closing db handle
09:26:40.343 SC-1 osafimmpbed: IN IMM PBE process EXITING... ### main thread
09:26:40.347 SC-1 osafimmnd[213]: WA SC Absence IS allowed:900 IMMD service is 
DOWN
09:26:40.347 SC-1 osafimmnd[213]: NO IMMD SERVICE IS DOWN, HYDRA IS CONFIGURED 
=> UNREGISTERING IMMND form MDS
09:26:40.348 SC-1 osafimmnd[213]: NO Removing client id:1050002010f sv_id:27
09:26:40.349 SC-1 osafimmpbed: WA PBE lost contact with parent IMMND - Exiting 
### MDS thread
~~~
~~~
11:34:20.183 SC-2 osafimmpbed: NO IMM PBE received SIG_TERM, closing db handle
11:34:20.184 SC-2 osafimmpbed: IN IMM PBE process EXITING... ### main thread
11:34:20.194 SC-2 osafimmnd[213]: exiting for shutdown
11:34:20.195 SC-2 osafimmpbed: WA PBE lost contact with parent IMMND - Exiting 
### MDS thread
~~~

In exit(), gcov_do_dump() is called. Calling gcov_do_dump() in both threads 
causes PBE to carsh.
~~~
Thread 3 (Thread 0x7f3a4bc74740 (LWP 242)):
#0  0x7f3a4a62270b in do_fcntl (arg=, cmd=7, fd=22) at 
../sysdeps/unix/sysv/linux/fcntl.c:31
#1  __libc_fcntl (fd=22, cmd=) at 
../sysdeps/unix/sysv/linux/fcntl.c:75
#2  0x7f3a4aea1621 in __gcov_open () from 
/usr/local/lib/libopensaf_core.so.0
#3  0x7f3a4aea220e in gcov_do_dump () from 
/usr/local/lib/libopensaf_core.so.0
#4  0x7f3a4aea3172 in gcov_exit () from /usr/local/lib/libopensaf_core.so.0
#5  0x7f3a4a28336a in __cxa_finalize (d=0x7f3a4b0cbe20) at cxa_finalize.c:56
#6  0x7f3a4ae05da3 in __do_global_dtors_aux () from 
/usr/local/lib/libopensaf_core.so.0
#7  0x7ffe44419580 in ?? ()
#8  0x7f3a4ba6ec17 in _dl_fini () at dl-fini.c:235
Backtrace stopped: frame did not save the PC

Thread 2 (Thread 0x7f3a4bc71b00 (LWP 245)):
...

Thread 1 (Thread 0x7f3a4bc51b00 (LWP 247)):
#0  0x7f3a49b1ee78 in __gcov_read_summary () from 
/usr/local/lib/opensaf/libimm_common.so.0
#1  0x7f3a49b1fefe in gcov_do_dump () from 
/usr/local/lib/opensaf/libimm_common.so.0
#2  0x7f3a49b20592 in gcov_exit () from 
/usr/local/lib/opensaf/libimm_common.so.0
#3  0x7f3a4a282ff8 in __run_exit_handlers (status=1, listp=0x7f3a4a60c5f8 
<__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#4  0x7f3a4a283045 in __GI_exit (status=) at exit.c:104
#5  0x7f3a4b38c6b0 in imma_mark_clients_stale (cb=0x7f3a4b5d33c0 , 
mark_exposed=false) at src/imm/agent/imma_db.cc:690
#6  0x7f3a4b392973 in imma_mds_svc_evt (cb=0x7f3a4b5d33c0 , 
svc_evt=0x7f3a44000a90) at src/imm/agent/imma_mds.cc:413
#7  0x7f3a4b39228d in imma_mds_callback (info=0x7f3a44000a80) at 
src/imm/agent/imma_mds.cc:221
#8  0x7f3a4ae61287 in mds_mcm_user_event_callback 
(local_svc_hdl=562945658454043, pwe_id=1, svc_id=25, role=V_DEST_RL_ACTIVE, 
vdest_id=65535, adest=564113889558741, event_type=NCSMDS_DOWN, 
svc_sub_part_ver=1 '\001', archword_type=10 '\n') at src/mds/mds_c_api.c:4555
#9  0x7f3a4ae5ed76 in mds_mcm_svc_down (pwe_id=1, svc_id=25, 
role=V_DEST_RL_ACTIVE, scope=NCSMDS_SCOPE_NONE, vdest_id=65535, 
vdest_policy=NCS_VDEST_TYPE_N_WAY_ROUND_ROBIN, adest=564113889558741, 
my_pcon=false, local_svc_hdl=562945658454043, subtn_ref_val=2, 
svc_sub_part_ver=1 '\001', archword_type=10 '\n') at src/mds/mds_c_api.c:3583
#10 0x7f3a4ae87ca0 in mds_mdtm_process_recvdata (rcv_bytes=34, 
buff_in=0x7f3a44003110 
"V\022\064V\001\002V\001\004\031\240\033\377\377\240\033\377\377") at 
src/mds/mds_dt_trans.c:1150
#11 0x7f3a4ae86ad4 in mdtm_process_poll_recv_data_tcp () at 
src/mds/mds_dt_trans.c:815
#12 0x7f3a4ae87599 in mdtm_process_recv_events_tcp () at 
src/mds/mds_dt_trans.c:995
#13 0x7f3a4a6196ba in start_thread (arg=0x7f3a4bc51b00) at 
pthread_create.c:333
#14 0x7f3a4a34f82d in clone () 

[tickets] [opensaf:tickets] #2601 #AMF: MessageID Missmatch during Headless between AMFD and AMFND

2017-10-02 Thread Ravi Sekhar Reddy via Opensaf-tickets
- Description has changed:

Diff:



--- old
+++ new
@@ -1 +1,14 @@
 During Headless if any component on the payload fails, Message ID miss match 
is hapeening when buffered messages are sent from AMFND to AMFD
+
+Steps to reproduce :
+1. 3 node setup with 2 controllers and one payload (SC-1, SC-2 & PL-4) 
+2. Headless enabled 
+3. 2n application deployed where SU1 is hosted on the SC-1 and SU2 is hosted 
on the PL-4.
+   Configure Delay in AmfCSISetCallbackT callback
+   Configure CLC-CLI script of demo cmp to exit with -1 on cleanup invocation  
+4. Set ACTIVE assignment on ACTIVE SC-1, STANDBY on PL-4. 
+5. Stop opensafd on SC-1
+6. Stop opensafd on SC-2 when ACTIVE assignment is given to Application 
Component on PL-4
+7. Start opensafd on SC-1, before AMFD comeup up Kill App component on PL-4 
+   As we configured to return -1 on Cleanup, termination will fail and SU will 
move to "Termination Failed" State
+8. At AMFD observed messages with invalid Message ID and Messages are being 
dropped 






---

** [tickets:#2601] #AMF: MessageID Missmatch during Headless between AMFD and 
AMFND**

**Status:** accepted
**Milestone:** 5.17.10
**Created:** Thu Sep 28, 2017 11:51 AM UTC by Ravi Sekhar Reddy
**Last Updated:** Thu Sep 28, 2017 11:54 AM UTC
**Owner:** Ravi Sekhar Reddy


During Headless if any component on the payload fails, Message ID miss match is 
hapeening when buffered messages are sent from AMFND to AMFD

Steps to reproduce :
1. 3 node setup with 2 controllers and one payload (SC-1, SC-2 & PL-4) 
2. Headless enabled 
3. 2n application deployed where SU1 is hosted on the SC-1 and SU2 is hosted on 
the PL-4.
   Configure Delay in AmfCSISetCallbackT callback
   Configure CLC-CLI script of demo cmp to exit with -1 on cleanup invocation  
4. Set ACTIVE assignment on ACTIVE SC-1, STANDBY on PL-4. 
5. Stop opensafd on SC-1
6. Stop opensafd on SC-2 when ACTIVE assignment is given to Application 
Component on PL-4
7. Start opensafd on SC-1, before AMFD comeup up Kill App component on PL-4 
   As we configured to return -1 on Cleanup, termination will fail and SU will 
move to "Termination Failed" State
8. At AMFD observed messages with invalid Message ID and Messages are being 
dropped 



---

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] #1410 pyosaf: Invalid exception used in ImmObject (object.py)

2017-10-02 Thread Hieu Nguyen via Opensaf-tickets
- **status**: unassigned --> accepted
- **assigned_to**: Hieu Nguyen
- **Blocker**:  --> False
- **Comment**:

In progress



---

** [tickets:#1410] pyosaf: Invalid exception used in ImmObject (object.py)**

**Status:** accepted
**Milestone:** future
**Created:** Fri Jul 10, 2015 10:11 AM UTC by Johan Mårtensson
**Last Updated:** Tue Sep 20, 2016 06:04 PM UTC
**Owner:** Hieu Nguyen


ImmObject uses an invalid way to raise exceptions:


>>> a = ImmObject('NonExistingClass')
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/local/lib/python2.7/dist-packages/pyosaf/utils/immom/object.py", 
line 63, in __init__
raise
TypeError: exceptions must be old-style classes or derived from BaseException, 
not NoneType



---

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] #2533 pyosaf: Make pyosaf:::immom::initialize() consistent with other modules

2017-10-02 Thread Hieu Nguyen via Opensaf-tickets
- **status**: accepted --> review
- **Comment**:

Solution fix:
 - Remove a preceding underscore character of the initialize method in immom
 - Does not automatically called initialize() when the module is implemented



---

** [tickets:#2533] pyosaf: Make pyosaf:::immom::initialize() consistent with 
other modules**

**Status:** review
**Milestone:** 5.17.10
**Created:** Fri Jul 21, 2017 01:09 PM UTC by Anders Widell
**Last Updated:** Mon Oct 02, 2017 06:34 AM UTC
**Owner:** Hieu Nguyen


The module pyosaf/utils/immom has a method with the name initialize(), which is 
called automatically when the module is implemented. This is inconsistent with 
other pyosaf modules under utils, which don't call the initialize method 
automatically when the module is imported. Also, the initialize method in immom 
has a preceding underscore character, which should be removed to make the 
method name consistent with the other modules.


---

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] #2603 pyosaf: run pylint for Python code files and try to fix all reported issues

2017-10-02 Thread Nguyen TK Luu via Opensaf-tickets
- **status**: assigned --> accepted



---

** [tickets:#2603] pyosaf: run pylint for Python code files and try to fix all 
reported issues**

**Status:** accepted
**Milestone:** 5.17.10
**Created:** Fri Sep 29, 2017 06:54 AM UTC by Nguyen TK Luu
**Last Updated:** Fri Sep 29, 2017 06:54 AM UTC
**Owner:** Nguyen TK Luu


Run pylint for all Python code files in OpenSAF and try to fix all reported 
issues.


---

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] #2533 pyosaf: Make pyosaf:::immom::initialize() consistent with other modules

2017-10-02 Thread Hieu Nguyen via Opensaf-tickets
- **status**: assigned --> accepted



---

** [tickets:#2533] pyosaf: Make pyosaf:::immom::initialize() consistent with 
other modules**

**Status:** accepted
**Milestone:** 5.17.10
**Created:** Fri Jul 21, 2017 01:09 PM UTC by Anders Widell
**Last Updated:** Mon Oct 02, 2017 06:30 AM UTC
**Owner:** Hieu Nguyen


The module pyosaf/utils/immom has a method with the name initialize(), which is 
called automatically when the module is implemented. This is inconsistent with 
other pyosaf modules under utils, which don't call the initialize method 
automatically when the module is imported. Also, the initialize method in immom 
has a preceding underscore character, which should be removed to make the 
method name consistent with the other modules.


---

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] #2533 pyosaf: Make pyosaf:::immom::initialize() consistent with other modules

2017-10-02 Thread Hieu Nguyen via Opensaf-tickets
- **status**: unassigned --> assigned
- **assigned_to**: Hieu Nguyen
- **Comment**:

In progress



---

** [tickets:#2533] pyosaf: Make pyosaf:::immom::initialize() consistent with 
other modules**

**Status:** assigned
**Milestone:** 5.17.10
**Created:** Fri Jul 21, 2017 01:09 PM UTC by Anders Widell
**Last Updated:** Fri Jul 21, 2017 01:09 PM UTC
**Owner:** Hieu Nguyen


The module pyosaf/utils/immom has a method with the name initialize(), which is 
called automatically when the module is implemented. This is inconsistent with 
other pyosaf modules under utils, which don't call the initialize method 
automatically when the module is imported. Also, the initialize method in immom 
has a preceding underscore character, which should be removed to make the 
method name consistent with the other modules.


---

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