[tickets] [opensaf:tickets] #2532 mds: TCP SVC_UP event is not received after subscribing

2017-08-29 Thread A V Mahesh (AVM) via Opensaf-tickets
>>We see this issue at least once a day in our test environment

If so, can you try to run the same test with TIPC over night, with IMMA traces 
enabled.


---

** [tickets:#2532] mds: TCP SVC_UP event is not received after subscribing**

**Status:** unassigned
**Milestone:** 5.17.10
**Created:** Fri Jul 21, 2017 05:59 AM UTC by Hung Nguyen
**Last Updated:** Tue Aug 29, 2017 03:30 AM UTC
**Owner:** nobody
**Attachments:**

- 
[logs_n_traces.tgz](https://sourceforge.net/p/opensaf/tickets/2532/attachment/logs_n_traces.tgz)
 (1.5 MB; application/x-compressed)


MDS is successfully installed on IMMA and IMMA subscribed to IMMD successfully.
IMMND also received IMMA SVC_UP event but IMMA didn't receive SVC_UP event for 
IMMND.

~~~
<142>1 2017-07-20T13:00:36.072773+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14043"] MCM:API: svc_id = IMMA_OM(26) on VDEST id = 65535, 
SVC_PVT_VER = 0 Install Successfull
> ...
<142>1 2017-07-20T13:00:36.073091+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14074"] MCM:API: svc_subscribe :svc_id = IMMA_OM(26) on VDEST id = 
65535 Subscription to svc_id = IMMND(25) Successful
> ...
<142>1 2017-07-20T13:00:36.073904+02:00 PL-4 osafimmnd 177 mds.log [meta 
sequenceId="96185"] MCM:API: svc_up : svc_id = IMMND(25) on DEST id = 65535 got 
UP for svc_id = IMMA_OM(26) on Adest = , 
rem_svc_pvt_ver=0, rem_svc_archword=10
~~~


IMMA waited for the SVC_UP event for 30 sec but didn't receive anything.
~~~
Jul 20 13:00:36.071465 imma [278:278:src/imm/agent/imma_init.cc:0263] >> 
imma_startup 
Jul 20 13:00:36.071474 imma [278:278:src/imm/agent/imma_init.cc:0273] TR use 
count 0
Jul 20 13:00:36.071484 imma [278:278:src/base/ncs_main_pub.c:0220] TR 
NCS:PROCESS_ID=278
Jul 20 13:00:36.071494 imma [278:278:src/base/sysf_def.c:0089] TR INITIALIZING 
LEAP ENVIRONMENT
Jul 20 13:00:36.071584 imma [278:278:src/base/sysf_def.c:0124] TR DONE 
INITIALIZING LEAP ENVIRONMENT
Jul 20 13:00:36.071832 imma [278:278:src/base/ncs_main_pub.c:0757] TR 
NCS:NODE_ID=0x0002040F
Jul 20 13:00:36.072329 imma [278:278:src/mbc/mbcsv_dl_api.c:0059] >> 
mbcsv_lib_req 
Jul 20 13:00:36.072350 imma [278:278:src/mbc/mbcsv_dl_api.c:0096] >> 
mbcsv_lib_init 
Jul 20 13:00:36.072378 imma [278:278:src/mbc/mbcsv_mbx.c:0174] >> 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072389 imma [278:278:src/mbc/mbcsv_mbx.c:0189] << 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072399 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0158] >> 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072409 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0173] << 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072419 imma [278:278:src/mbc/mbcsv_dl_api.c:0075] << 
mbcsv_lib_req 
Jul 20 13:00:36.072440 imma [278:278:src/base/ncs_main_pub.c:0389] TR 
MBCSV:MBCA:ON
Jul 20 13:00:36.073104 imma [278:278:src/imm/agent/imma_init.cc:0063] >> 
imma_sync_with_immnd 
Jul 20 13:00:36.073114 imma [278:278:src/imm/agent/imma_init.cc:0071] TR 
Blocking first client
Jul 20 13:01:06.102156 imma [278:278:src/imm/agent/imma_init.cc:0081] TR 
Blocking wait released
Jul 20 13:01:06.102375 imma [278:278:src/imm/agent/imma_init.cc:0091] << 
imma_sync_with_immnd 
Jul 20 13:01:06.102413 imma [278:278:src/imm/agent/imma_init.cc:0179] TR Client 
agent successfully initialized
Jul 20 13:01:06.102427 imma [278:278:src/imm/agent/imma_init.cc:0296] << 
imma_startup: use count 1
~~~


Attached is traces and logs.




---

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] #2532 mds: TCP SVC_UP event is not received after subscribing

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
>>Just to be clear, are you requesting those traces for TIPC?

I try to reproduce as  well , as for your reproducible steps, but not able to 
reproduce on TCP or TIPC.
I did check logs and didn't get much clue , any how I will revisit the logs 
again and see if I get any clue.

If required we have to reproduce the issue with some additional IMMA/MDS 
debugging patch on same setup  with TIPC or TCP where you observed the issue .

-AVM


---

** [tickets:#2532] mds: TCP SVC_UP event is not received after subscribing**

**Status:** unassigned
**Milestone:** 5.17.10
**Created:** Fri Jul 21, 2017 05:59 AM UTC by Hung Nguyen
**Last Updated:** Mon Aug 28, 2017 03:27 AM UTC
**Owner:** nobody
**Attachments:**

- 
[logs_n_traces.tgz](https://sourceforge.net/p/opensaf/tickets/2532/attachment/logs_n_traces.tgz)
 (1.5 MB; application/x-compressed)


MDS is successfully installed on IMMA and IMMA subscribed to IMMD successfully.
IMMND also received IMMA SVC_UP event but IMMA didn't receive SVC_UP event for 
IMMND.

~~~
<142>1 2017-07-20T13:00:36.072773+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14043"] MCM:API: svc_id = IMMA_OM(26) on VDEST id = 65535, 
SVC_PVT_VER = 0 Install Successfull
> ...
<142>1 2017-07-20T13:00:36.073091+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14074"] MCM:API: svc_subscribe :svc_id = IMMA_OM(26) on VDEST id = 
65535 Subscription to svc_id = IMMND(25) Successful
> ...
<142>1 2017-07-20T13:00:36.073904+02:00 PL-4 osafimmnd 177 mds.log [meta 
sequenceId="96185"] MCM:API: svc_up : svc_id = IMMND(25) on DEST id = 65535 got 
UP for svc_id = IMMA_OM(26) on Adest = , 
rem_svc_pvt_ver=0, rem_svc_archword=10
~~~


IMMA waited for the SVC_UP event for 30 sec but didn't receive anything.
~~~
Jul 20 13:00:36.071465 imma [278:278:src/imm/agent/imma_init.cc:0263] >> 
imma_startup 
Jul 20 13:00:36.071474 imma [278:278:src/imm/agent/imma_init.cc:0273] TR use 
count 0
Jul 20 13:00:36.071484 imma [278:278:src/base/ncs_main_pub.c:0220] TR 
NCS:PROCESS_ID=278
Jul 20 13:00:36.071494 imma [278:278:src/base/sysf_def.c:0089] TR INITIALIZING 
LEAP ENVIRONMENT
Jul 20 13:00:36.071584 imma [278:278:src/base/sysf_def.c:0124] TR DONE 
INITIALIZING LEAP ENVIRONMENT
Jul 20 13:00:36.071832 imma [278:278:src/base/ncs_main_pub.c:0757] TR 
NCS:NODE_ID=0x0002040F
Jul 20 13:00:36.072329 imma [278:278:src/mbc/mbcsv_dl_api.c:0059] >> 
mbcsv_lib_req 
Jul 20 13:00:36.072350 imma [278:278:src/mbc/mbcsv_dl_api.c:0096] >> 
mbcsv_lib_init 
Jul 20 13:00:36.072378 imma [278:278:src/mbc/mbcsv_mbx.c:0174] >> 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072389 imma [278:278:src/mbc/mbcsv_mbx.c:0189] << 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072399 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0158] >> 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072409 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0173] << 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072419 imma [278:278:src/mbc/mbcsv_dl_api.c:0075] << 
mbcsv_lib_req 
Jul 20 13:00:36.072440 imma [278:278:src/base/ncs_main_pub.c:0389] TR 
MBCSV:MBCA:ON
Jul 20 13:00:36.073104 imma [278:278:src/imm/agent/imma_init.cc:0063] >> 
imma_sync_with_immnd 
Jul 20 13:00:36.073114 imma [278:278:src/imm/agent/imma_init.cc:0071] TR 
Blocking first client
Jul 20 13:01:06.102156 imma [278:278:src/imm/agent/imma_init.cc:0081] TR 
Blocking wait released
Jul 20 13:01:06.102375 imma [278:278:src/imm/agent/imma_init.cc:0091] << 
imma_sync_with_immnd 
Jul 20 13:01:06.102413 imma [278:278:src/imm/agent/imma_init.cc:0179] TR Client 
agent successfully initialized
Jul 20 13:01:06.102427 imma [278:278:src/imm/agent/imma_init.cc:0296] << 
imma_startup: use count 1
~~~


Attached is traces and logs.




---

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] #872 osafdtmd asserts after connect with non member node

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#872] osafdtmd asserts after connect with non member node**

**Status:** assigned
**Milestone:** future
**Created:** Wed Apr 23, 2014 06:45 AM UTC by Hans Feldt
**Last Updated:** Tue Nov 15, 2016 06:36 AM UTC
**Owner:** nobody


100% reproducible.

By mistake I had opensaf started on my native system (named xubuntu-13 below). 
Then I launched a virtual cluster which then keeps crashing. SC-1 in the 
virtual cluster stays up but all other nodes keeps crashing with the following 
assert:

Apr 23 08:35:27 SC-2 osafdtmd[352]: NO Established contact with 'xubuntu-13'
Apr 23 08:35:27 SC-2 osafdtmd[352]: dtm_node.c:108: dtm_process_node_info: 
Assertion '0' failed.

Apr 23 08:35:38 PL-3 osafdtmd[350]: NO Established contact with 'xubuntu-13'
Apr 23 08:35:38 PL-3 osafdtmd[350]: NO Established contact with 'SC-2'
Apr 23 08:35:38 PL-3 osafdtmd[350]: dtm_node.c:108: dtm_process_node_info: 
Assertion '0' 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] #2301 cpsv: replace patricia trees with cpp Map/trees

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#2301] cpsv: replace patricia trees with cpp Map/trees**

**Status:** assigned
**Milestone:** future
**Created:** Mon Feb 13, 2017 06:29 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Feb 13, 2017 06:29 AM UTC
**Owner:** nobody


Replace DB NCS PATRICIA TREE  with  C++ Map
for improve efficiency.


---

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] #246 cpsv: Section create fails with random return values when mulitple processes try to create sections in the same checkpoint 70 node setup.

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#246] cpsv: Section create fails with random return values when 
mulitple processes try to create sections in the same checkpoint  70 node 
setup. **

**Status:** assigned
**Milestone:** future
**Created:** Thu May 16, 2013 06:37 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Sep 20, 2016 06:04 PM UTC
**Owner:** nobody


 from http://devel.opensaf.org/ticket/2386

 Changeset: 3065
Setup: 70 node SLES11 VM setup


2 applications per node are running on a 70 node setup. 


Collocated checkpoint is created. After active replica is set from one process, 
section create with section id as GENERATED_SECTION_ID is invoked from rest of 
the processes. But the section create fails with ERR_EXIST, ERR_TIMEOUT, 
ERR_TRY_AGAIN.


/var/log/messages for the two controllers will be shared.





---

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] #444 osafdtmd needs to exit with failure rather than rebooting the system in case of missing configurations

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False
- **Milestone**: 5.17.08 --> future



---

** [tickets:#444] osafdtmd needs to exit with failure rather than rebooting the 
system in case of missing configurations**

**Status:** accepted
**Milestone:** future
**Created:** Thu Jun 06, 2013 09:44 AM UTC by Sirisha Alla
**Last Updated:** Mon Apr 10, 2017 01:40 PM UTC
**Owner:** nobody


In case of missing configuration, it would be better to log the error in the 
syslog and exit rather than reboot the system. The system goes for continuous 
reboots in such cases.

Starting OpenSAF Services: Jun  6 14:46:45 OEL-64BIT-SLOT4 osafdtmd[2199]: 
Started
Jun  6 14:46:45 OEL-64BIT-SLOT4 osafdtmd[2199]: ER DTM: Could not open file  
node_name 
Jun  6 14:46:45 OEL-64BIT-SLOT4 osafdtmd[2199]: ER DTM:Error reading 
/etc/opensaf/dtmd.conf.  errno : 2
Jun  6 14:46:45 OEL-64BIT-SLOT4 opensafd[2190]: ER Failed #012 DESC:TRANSPORT
Jun  6 14:46:45 OEL-64BIT-SLOT4 opensafd[2190]: ER Going for recovery
Jun  6 14:46:45 OEL-64BIT-SLOT4 opensafd[2190]: ER Trying To RESPAWN 
/usr/lib64/opensaf/clc-cli/osaf-transport attempt #1
Jun  6 14:46:45 OEL-64BIT-SLOT4 opensafd[2190]: ER Sending SIGKILL to 
TRANSPORT, pid=2191
Jun  6 14:46:45 OEL-64BIT-SLOT4 opensafd[2203]: ER Failed to exec while forking 
script, err=No such file or directory
Jun  6 14:47:00 OEL-64BIT-SLOT4 osafdtmd[2214]: Started
Jun  6 14:47:00 OEL-64BIT-SLOT4 osafdtmd[2214]: ER DTM: Could not open file  
node_name 
Jun  6 14:47:00 OEL-64BIT-SLOT4 osafdtmd[2214]: ER DTM:Error reading 
/etc/opensaf/dtmd.conf.  errno : 2
Jun  6 14:47:00 OEL-64BIT-SLOT4 opensafd[2190]: ER Could Not RESPAWN TRANSPORT
Jun  6 14:47:00 OEL-64BIT-SLOT4 opensafd[2190]: ER Failed #012 DESC:TRANSPORT
Jun  6 14:47:00 OEL-64BIT-SLOT4 opensafd[2190]: ER Trying To RESPAWN 
/usr/lib64/opensaf/clc-cli/osaf-transport attempt #2
Jun  6 14:47:00 OEL-64BIT-SLOT4 opensafd[2190]: ER Sending SIGKILL to 
TRANSPORT, pid=2206
Jun  6 14:47:00 OEL-64BIT-SLOT4 opensafd[2217]: ER Failed to exec while forking 
script, err=No such file or directory
Jun  6 14:47:15 OEL-64BIT-SLOT4 osafdtmd[2229]: Started
Jun  6 14:47:15 OEL-64BIT-SLOT4 osafdtmd[2229]: ER DTM: Could not open file  
node_name 
Jun  6 14:47:15 OEL-64BIT-SLOT4 osafdtmd[2229]: ER DTM:Error reading 
/etc/opensaf/dtmd.conf.  errno : 2
Jun  6 14:47:15 OEL-64BIT-SLOT4 opensafd[2190]: ER Could Not RESPAWN TRANSPORT
Jun  6 14:47:15 OEL-64BIT-SLOT4 opensafd[2190]: ER Failed #012 DESC:TRANSPORT
Jun  6 14:47:15 OEL-64BIT-SLOT4 opensafd[2190]: ER FAILED TO RESPAWN
Jun  6 14:47:15 OEL-64BIT-SLOT4 osafdtmd: osafdtmd Process down, Rebooting the 
node
Jun  6 14:47:15 OEL-64BIT-SLOT4 opensaf_reboot: Rebooting local node

here node_name file is missing



---

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] #457 Dtm: standby joins as active after restart in a 70 node setup

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#457] Dtm: standby joins as active after restart in a 70 node 
setup**

**Status:** unassigned
**Milestone:** future
**Created:** Fri Jun 14, 2013 06:48 AM UTC by Neelakanta Reddy
**Last Updated:** Wed Jul 15, 2015 02:21 PM UTC
**Owner:** nobody
**Attachments:**

- 
[messages_SC1](https://sourceforge.net/p/opensaf/tickets/457/attachment/messages_SC1)
 (65.5 kB; application/octet-stream)
- 
[messages_SC2](https://sourceforge.net/p/opensaf/tickets/457/attachment/messages_SC2)
 (208.0 kB; application/octet-stream)


After analyzing the logs following is the observation:

Slot1 is active and slot2 is standby

1. IMMND killed in slot-2

Jun 11 21:29:46 SLES-64BIT-SLOT2 osafamfnd[3750]: NO 
'safComp=IMMND,safSu=SC-2,safSg=NoRed,safApp=OpenSAF' faulted due to 'avaDown' 
: Recovery is 'componentRestart'


2. Active IMMD detected the slot-2 IMMND is discarded

Jun 11 15:54:02 SLES-64BIT-SLOT1 osafimmnd[3746]: NO Global discard node 
received for nodeId:2020f pid:3668


3. New immnd at slot2 requests for sync

Jun 11 21:29:46 SLES-64BIT-SLOT2 osafimmnd[7315]: Started

Jun 11 15:54:03 SLES-64BIT-SLOT1 osafimmd[3736]: NO Node 2020f request sync 
sync-pid:7315 epoch:0

4. slot2 went for reboot, IMMD is killed

Jun 11 21:29:49 SLES-64BIT-SLOT2 osafamfnd[3750]: ER 
safComp=IMMD,safSu=SC-2,safSg=2N,safApp=OpenSAF Faulted due to:avaDown Recovery 
is:nodeFailfast
Jun 11 21:29:49 SLES-64BIT-SLOT2 osafamfnd[3750]: Rebooting OpenSAF NodeId = 
131599 EE Name = , Reason: Component faulted: recovery is node failfast
Jun 11 21:29:49 SLES-64BIT-SLOT2 opensaf_reboot: Rebooting local node

5. After coming up the slot2 got active role (slot1 is still in active)

Jun 11 21:30:22 SLES-64BIT-SLOT2 osafrded[2095]: NO Peer not available => 
Active role
Jun 11 21:30:23 SLES-64BIT-SLOT2 osaffmd[2108]: Started
Jun 11 21:30:23 SLES-64BIT-SLOT2 osafimmd[2117]: Started
Jun 11 21:30:23 SLES-64BIT-SLOT2 osafimmnd[2127]: Started


6. After getting active role the node went for loading

Jun 11 21:30:23 SLES-64BIT-SLOT2 osafimmnd[2127]: NO This IMMND is now the NEW 
Coord

7. After some time, there is a connection established to the active node

Jun 11 21:30:23 SLES-64BIT-SLOT2 osafdtmd[2077]: NO Established contact with 
'SC-1
Jun 11 15:54:39 SLES-64BIT-SLOT1 osafdtmd[3696]: NO Established contact with 
'SC-2'


8. after connecting the loading event reaches to active IMMD at Slot1, the 
immnd up event is not received because by the time immnd is up the connection 
is not established between the two nodes.

Jun 11 15:54:42 SLES-64BIT-SLOT1 osafimmd[3736]: WA Wrong PID 0 != 2127

9. AMFD, tries to re-connect to IMM because, IMMND return bad_handle when the 
previous synchronous call from the amfd is not yet complete and AMFD requested 
for one more request on same handle.

Jun 11 15:54:49 SLES-64BIT-SLOT1 osafamfd[3815]: NO Re-initializing with IMM
Jun 11 15:54:49 SLES-64BIT-SLOT1 osafimmnd[3746]: WA IMMND - Client Node Get 
Failed for cli_hdl 85899477263
Jun 11 15:54:49 SLES-64BIT-SLOT1 osafamfd[3815]: ER saImmOiImplementerSet 
failed 14
Jun 11 15:54:49 SLES-64BIT-SLOT1 osafamfd[3815]: ER exiting since 
avd_imm_impl_set failed


conclusion:

The mds in the slot2 connected with slot1, after initiating loading in IMMND, 
because of this slot2 got active role. 


---

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] #272 checkpoint overwrite returns timeout when controllers are running with different compatible versions

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#272] checkpoint overwrite returns timeout when controllers are 
running with different compatible versions**

**Status:** assigned
**Milestone:** future
**Created:** Fri May 17, 2013 11:40 AM UTC by Sirisha Alla
**Last Updated:** Tue Sep 20, 2016 06:04 PM UTC
**Owner:** nobody
**Attachments:**

- 
[logs.tar.gz](https://sourceforge.net/p/opensaf/tickets/272/attachment/logs.tar.gz)
 (175.5 kB; application/x-gzip)


The issue is seen on OEL6.4 TCP setup. Changeset being used is 4241 with 
patches 2794 and 3117.

Active controller(SC-1) is running with 4.3 version while standby controller 
(SC-2) is running with cs3533(4.2.x)

A non collocated checkpoint replica is created on Active controller.
A section is created in the checkpoint.
Write and Read APIs are successfull but overwrite API is returning timeout for 
5 seconds after which application timesout and exits.

No ckptnd and agent crashes observed. When the same application is run on SC-2, 
it runs without any error.

Attaching the journal and the traces of ckptnd and ckptd on both the 
controllers.


---

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] #238 cpsv : Write for asynchronous non collocated checkpoint returns SA_AIS_ERR_NOT_EXIST in some processes

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#238] cpsv : Write for asynchronous non collocated checkpoint 
returns SA_AIS_ERR_NOT_EXIST in some processes**

**Status:** assigned
**Milestone:** future
**Created:** Thu May 16, 2013 06:17 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Sep 20, 2016 06:04 PM UTC
**Owner:** nobody


>From  http://devel.opensaf.org/ticket/2384

Changeset : 3065
Setup: 70 node SLES11 VM setup.


Problem Description:



70 processes are running the below test scenario with each node hosting a 
single process.


1) The application that is running on SC-1 opens a non-collocated checkpoint, 
creates a section in the checkpoint.
2) The rest of the applications creates the checkpoint and once the section 
create is successful on SC-1, writes into the same section.


Some of the applications return SA_AIS_ERR_NOT_EXIST for write operation.


Traces are not enabled on the setup, and /var/log/messages for both the 
controllers can be provided







---

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] #241 cpsv : saCkptCheckpointOpen writes to const SaNameT

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#241] cpsv : saCkptCheckpointOpen writes to const SaNameT**

**Status:** unassigned
**Milestone:** future
**Created:** Thu May 16, 2013 06:28 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Apr 03, 2017 06:47 PM UTC
**Owner:** nobody


from http://devel.opensaf.org/ticket/1731

Problem:
osaf/libs/agents/saf/cpa/cpa_api.c line 648 : 
m_CPSV_SET_SANAMET(checkpointName);
However, checkpointName is: const SaNameT *checkpointName
and m_CPSV_SET_SANAMET does memset( (uns8 *)>value[name->length], 0, 
(SA_MAX_NAME_LENGTH - name->length) )


This causes a segfault if the value passed in is in read-only memory.


bug is present in opensaf-staging/1057c1e6ebba I'm not sure what version that 
is.


Example:
#define CKPT_NAME "safCkpt=My_Ckpt,safApp=safCkptService"
const SaNameT ckpt_name = { sizeof(CKPT_NAME) - 1, CKPT_NAME };


Then call saCkptCheckpointOpen on it





---

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] #239 cpsv : section create returns ERR_EXIST after few try agains on 70 node cluster

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#239] cpsv : section create returns ERR_EXIST after few try agains 
on 70 node cluster**

**Status:** assigned
**Milestone:** future
**Created:** Thu May 16, 2013 06:19 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Sep 20, 2016 06:04 PM UTC
**Owner:** nobody


>From http://devel.opensaf.org/ticket/3042

This is seen on 70 SLES VM setup. One checkpoint application runs on each node.


1) Checkpoint Application on active controller creates an asynchronous 
collocated checkpoint. The applications on other nodes open the same checkpoint
2) Replica is set active on active controller and section is created
3) Section create API returns TRY_AGAIN few times and returns ERR_EXIST.


When application gets try again, the section should not be created in the 
checkpoint. This is always not reproducible. 


snippet from test journal:


520|0 15 00130961 1 21| FAILED : Section 11 created in active colloc ckpt
520|0 15 00130961 1 22| Return Value : SA_AIS_ERR_TRY_AGAIN
520|0 15 00130961 1 23|
520|0 15 00130961 1 24| Try again count : 8 
520|0 15 00130961 1 25|
520|0 15 00130961 1 26| FAILED : Section 11 created in active colloc ckpt 
520|0 15 00130961 1 27| Return Value : SA_AIS_ERR_EXIST


Attaching CPD and CPND traces of both the controllers





---

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] #467 checkpoint with COLLOCATED flag forcing to register for arrival callback

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#467] checkpoint with COLLOCATED flag forcing to register for 
arrival callback**

**Status:** assigned
**Milestone:** future
**Created:** Mon Jun 24, 2013 06:36 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Sep 20, 2016 06:04 PM UTC
**Owner:** nobody


 am using opensaf 4.0.0
http://devel.opensaf.org/ticket/1866


I am running a simple Amf demo for counting which uses checkpoint.


my checkpoint creation flags are : SA_CKPT_CHECKPOINT_COLLOCATED| 
SA_CKPT_WR_ALL_REPLICAS


i tested it on a 2 node cluster(both target hardware and UML nodes).


problem is that unless i register for arrivalcallback, my standby component is 
faulting. amf is reporting healthcheck timeout.


i tested for SA_CKPT_CHECKPOINT_COLLOCATED| SA_CKPT_WR_ACTIVE_REPLICA also . I 
am facing facing same issue.


If I remove the collocated flag, it works fine. 





---

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] #673 dtm: leak mentioned by valgrind at mdtm_process_poll_recv_data_tcp()

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#673] dtm: leak mentioned  by valgrind at 
mdtm_process_poll_recv_data_tcp()**

**Status:** assigned
**Milestone:** future
**Created:** Wed Dec 18, 2013 09:22 AM UTC by A V Mahesh (AVM)
**Last Updated:** Sun Nov 01, 2015 09:36 PM UTC
**Owner:** nobody


 leak mentioned by valgrind at mdtm_process_poll_recv_data_tcp()
==
dtm_process_poll_recv_data_tcp:
   :
 recd_bytes = recv(tcp_cb->DBSRsock, tcp_cb->len_buff, 2, 0);
 if (0 == recd_bytes) {
 LOG_ER("MDTM:socket_recv() = %d, conn lost with dh 
server, exiting library err :%s", recd_bytes, strerror(errno));
 close(tcp_cb->DBSRsock);
 exit(0);
==


---

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] #638 node cannot join AMF cluster after restart

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False
- **Milestone**: 5.17.08 --> future



---

** [tickets:#638] node cannot join AMF cluster after restart**

**Status:** accepted
**Milestone:** future
**Created:** Fri Nov 22, 2013 02:54 PM UTC by Hans Feldt
**Last Updated:** Mon Apr 10, 2017 01:40 PM UTC
**Owner:** nobody


OpenSAF 4.2.2 changeset 3796, 79 extra patches
System: RHEL based, 2 node cluster, MDS/TIPC

After node reboot of the standby controller it cannot join the cluster again. 
This can be seen in the syslog on the active controller:


Nov 17 17:15:20 notice atrcxb3166 osafamfd[6038]: Cold sync complete!
Nov 19 17:40:07 notice atrcxb3166 osafamfd[6712]: Node 'SC-2' joined the cluster
Nov 19 17:42:08 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 19 17:42:28 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f

Nov 21 16:24:21 notice atrcxb3166 osafamfd[6712]: Node 'SC-2' left the cluster
Nov 21 16:29:04 notice atrcxb3166 osafamfd[6712]: Node 'SC-2' joined the cluster
Nov 21 16:29:24 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:29:44 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:30:04 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:30:24 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:30:54 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:31:14 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:31:34 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:31:54 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:32:14 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:32:34 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:32:54 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:33:14 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:33:34 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:33:54 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:34:14 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:34:34 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:34:54 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:35:14 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:35:34 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:35:54 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:36:14 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:36:34 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 16:36:54 warning atrcxb3166 osafamfd[6712]: invalid node state 1 for 
node 2020f
Nov 21 17:41:58 err atrcxb3166 osafamfd[6712]: avd_d2n_msg_dequeue: ncsmds_api 
failed 2
Nov 21 17:42:08 notice atrcxb3166 osafamfd[6712]: Node 'SC-2' left the cluster
Nov 21 17:42:18 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:42:38 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:42:58 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:43:18 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:43:39 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:43:59 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:44:19 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:44:39 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:44:59 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:45:19 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:45:39 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:45:59 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:46:19 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
node ID (2020f)
Nov 21 17:46:39 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
msg id 210, from 2020f should be 1
Nov 21 17:46:59 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
msg id 211, from 2020f should be 1

Nov 21 18:00:40 warning atrcxb3166 osafamfd[6712]: avd_msg_sanity_chk: invalid 
msg id 252, from 2020f should be 1
Nov 21 18:01:00 notice atrcxb3166 osafamfd[6712]: Node 'SC-2' left the cluster
Nov 22 11:44:37 notice atrcxb3166 osafamfd[

[tickets] [opensaf:tickets] #1285 MDS TCP: zero bytes recvd results in application exit

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#1285] MDS TCP: zero bytes recvd results in application exit**

**Status:** assigned
**Milestone:** future
**Created:** Thu Mar 26, 2015 09:49 AM UTC by Girish
**Last Updated:** Tue Sep 20, 2016 06:04 PM UTC
**Owner:** nobody


sometimes application using opensaf exits with below message:

 Feb 20 15:24:59 fedvm1 RIB[28549]: MDTM:socket_recv() = 0, conn lost with dh 
server, exiting library err :Success
Feb 20 15:24:59 fedvm1 osafamfnd[28263]: NO 
'safSu=SU1,safSg=app-simplex,safApp=appos' component restart probation timer 
started (timeout: 40 ns)
Feb 20 15:24:59 fedvm1 osafamfnd[28263]: NO Restarting a component of 
'safSu=SU1,safSg=app-simplex,safApp=appos' (comp restart count: 1)
Feb 20 15:24:59 fedvm1 osafamfnd[28263]: NO 
'safComp=App,safSu=SU1,safSg=app-simplex,safApp=appos' faulted due to 'avaDown' 
: Recovery is 'componentRestart'

Exits at location 
osaf/libs/core/mds/mds_dt_trans.c::mdtm_process_poll_recv_data_tcp

recd_bytes = recv(tcp_cb->DBSRsock, tcp_cb->buffer, local_len_buf, 0);
if (recd_bytes < 0) {
return;
} else if (0 == recd_bytes) {
syslog(LOG_ERR, "MDTM:socket_recv() = 
%d, conn lost with dh server, exiting library err :%d len:%d", recd_bytes, 
errno,
  local_len_buf);
close(tcp_cb->DBSRsock);
exit(0);
} else if (local_len_buf > recd_bytes) {


 local_len_buf turns out be 0


---

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] #1598 leap: PAYLOAD_BUF_SIZE value is suppose to be equal to MDS_DIRECT_BUF_MAXSIZE

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#1598] leap: PAYLOAD_BUF_SIZE value is suppose to be equal to 
MDS_DIRECT_BUF_MAXSIZE**

**Status:** assigned
**Milestone:** future
**Created:** Tue Nov 17, 2015 07:00 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Sep 20, 2016 05:48 PM UTC
**Owner:** nobody


The  PAYLOAD_BUF_SIZE value is suppose to be equal to
MDS_DIRECT_BUF_MAXSIZE (65535 maximum packet size)-(56 MDS header) ,
but this was NOT changed as part of the patch `MDS: Performance improvement 
[#654]`  in release 4.5.FC,
because of the previous releases of Opensaf  below 4.5.FC  the value of MDS
MDTM_RECV_BUFFER_SIZE (mds_dt_tipc.c) was limited to (8000+MDS header )
, so to support  in-service Upgrade to  below 4.5.FC  , this was NOT changed  
in 4.5.FC.

Now from 4.7  to  4.6/4.5  releases , we can send message  size of
MDS_DIRECT_BUF_MAXSIZE ((65535 maximum packet size)-(56 MDS header)) value
so for the current release it is limited  PAYLOAD_BUF_SIZE 8000 can be  
possibly adjusted
to  MDS_DIRECT_BUF_MAXSIZE (65535 maximum packet size)-(56 MDS header).


For example :  ( of course not as Static array , we may need to do malloc() )

-#define PAYLOAD_BUF_SIZE 8000 /* default size of packet_data bufrs */
+#define PAYLOAD_BUF_SIZE  ((65535 / 100) * 91)  /* default size of packet_data 
bufrs */



---

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] #1700 cpsv: re-create the checkpoint without any sections in case the all replicas is lost

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#1700] cpsv: re-create the checkpoint without any sections in case 
the all replicas is lost**

**Status:** assigned
**Milestone:** future
**Created:** Fri Mar 11, 2016 04:15 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Apr 04, 2016 04:18 AM UTC
**Owner:** nobody


This is an extinction ticket ` checkpoint replicas during headless state V3 
[#1621]`.

While enhancing the ticket #1621 the Suggestion was to re-create the checkpoint 
without
any sections in case the all replicas is lost. If the sections were
re-created, the application wouldn't know that data has been lost. I
think the BAD_HANDLE approach is okay since we have used it in other
services, but I see it as kind of a hack solution that is not really
in line with the specs.

The specs never intended BAD_HANDLE to be something that can happen
spontaneously on a previously valid handle, lest you are suffering
from memory corruption. In the future we could consider the
feasibility of avoiding spontaneous BAD_HANDLE where possible, and
in CKPT I think it may be possible by re-creating the checkpoints.


This change is quite much and requires a detailed design in
different scenarios. I would suggest to create an enhancement ticket for 
this.

More detailed information of limitations is in cpsv service README.HEADLESS 
file.


---

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] #1317 ckpt : stale replicas observed in a 70 node cluster

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#1317] ckpt : stale replicas observed in a 70 node cluster**

**Status:** assigned
**Milestone:** future
**Created:** Wed Apr 15, 2015 10:16 AM UTC by Sirisha Alla
**Last Updated:** Tue Sep 20, 2016 06:04 PM UTC
**Owner:** nobody
**Attachments:**

- 
[logs.tar.bz2](https://sourceforge.net/p/opensaf/tickets/1317/attachment/logs.tar.bz2)
 (6.5 MB; application/x-bzip)


This issue is observed on cs6377 (46FC Tag). The cluster is 0f 70 nodes and 2 
checkpoint applications run on each node. The application running on the active 
controller creates the checkpoint, while the applications running on other 
nodes open the same checkpoint and use them. After sections are created, 
written and read from all the applications finalizes the handles used. The 
retention duration of the checkpoint is specified to a minimal value of 1000 
nanoseconds.

/dev/shm on the active controller after the applications exited.

SLES-64BIT-SLOT1:~ # date;ls -lrt /dev/shm/
Wed Apr 15 14:25:09 IST 2015
total 1772
-rw-r--r-- 1 opensaf opensaf 1076040 Apr 15 13:38 
opensaf_NCS_MQND_QUEUE_CKPT_INFO
-rw-r--r-- 1 opensaf opensaf  328000 Apr 15 13:38 opensaf_NCS_GLND_RES_CKPT_INFO
-rw-r--r-- 1 opensaf opensaf  16 Apr 15 13:38 opensaf_NCS_GLND_LCK_CKPT_INFO
-rw-r--r-- 1 opensaf opensaf   88000 Apr 15 13:38 opensaf_NCS_GLND_EVT_CKPT_INFO
-rw-r--r-- 1 opensaf opensaf  704008 Apr 15 13:38 
opensaf_CPND_CHECKPOINT_INFO_131343
-rw-r--r-- 1 opensaf opensaf   79848 Apr 15 13:55 
opensaf_safCkpt=active_replica_ckpt_name_1_sysgrou_131343_4
-rw-r--r-- 1 opensaf opensaf   79848 Apr 15 13:56 
opensaf_safCkpt=active_replica_ckpt_name_1_sysgrou_131343_9
-rw-r--r-- 1 opensaf opensaf   79848 Apr 15 13:57 
opensaf_safCkpt=active_replica_ckpt_name_1_sysgrou_131343_16
SLES-64BIT-SLOT1:~ # date;immfind|grep -i ckpt
Wed Apr 15 14:25:11 IST 2015
safApp=safCkptService
SLES-64BIT-SLOT1:~ # 

When the same checkpoint name is being tried created, checkpoint service is not 
creating a new replica in the shared memory.

cpd,cpnd traces are attached.


---

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] #1679 osaf: enhance TRACE/LOGS of all Opensaf services by adding sender Node Name

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#1679] osaf: enhance TRACE/LOGS of all Opensaf services by adding 
sender Node Name**

**Status:** assigned
**Milestone:** future
**Created:** Fri Feb 05, 2016 07:17 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Aug 05, 2016 04:13 AM UTC
**Owner:** nobody


The ticket #1522 solution enhances the Opensaf both TCP & TIPC Transport. 
Transport to provides  Node Name of the sender as part of ncsmds_callback_info 
(NCSMDS_CALLBACK_INFO).

So now we can debug efficiently by knowing remote node name  part of LOG 
message.

See more detailes in https://sourceforge.net/p/opensaf/tickets/1522/


---

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] #2217 mds: optimize use of gl_mds_library_mutex

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False
- **Milestone**: 5.17.08 --> future



---

** [tickets:#2217] mds: optimize use of gl_mds_library_mutex**

**Status:** accepted
**Milestone:** future
**Created:** Tue Dec 06, 2016 09:55 AM UTC by Mathi Naickan
**Last Updated:** Mon Apr 10, 2017 01:40 PM UTC
**Owner:** nobody


A prototyping exercise was done long back to remove this lock but had resulted 
in problems such as out of order. MDS has evolved since then. 
We could revisit the way mds uses gl_mds_library_mutex.
The ticket aims to identify optimization of the way mds gl_mds_library_mutex is 
used.

Details TBD


---

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] #1733 Payload got rebooted when cpnd is killed on payload

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#1733] Payload got rebooted when cpnd is killed on payload**

**Status:** assigned
**Milestone:** future
**Created:** Wed Apr 06, 2016 11:05 AM UTC by Madhurika Koppula
**Last Updated:** Tue Sep 20, 2016 06:04 PM UTC
**Owner:** nobody
**Attachments:**

- 
[cpsv.tgz](https://sourceforge.net/p/opensaf/tickets/1733/attachment/cpsv.tgz) 
(15.0 MB; application/octet-stream)


Setup:
Changeset- 7436
Version - opensaf 5.0
4 nodes configured with single PBE

Issue Observed: It is random.

1) When CPND is killed on payload, component restart of CPND failed because of 
expiration of component registration timer.
2) Node went for reboot. Test application is being ran.

Below is the timestamp of PL-4:

Apr  6 10:52:00 OEL_M-SLOT-4 osafamfnd[3015]: NO 
'safSu=PL-4,safSg=NoRed,safApp=OpenSAF' component restart probation timer 
started (timeout: 600 ns)
Apr  6 10:52:00 OEL_M-SLOT-4 osafamfnd[3015]: NO Restarting a component of 
'safSu=PL-4,safSg=NoRed,safApp=OpenSAF' (comp restart count: 1)

Apr  6 10:52:00 OEL_M-SLOT-4 osafamfnd[3015]: NO 
'safComp=CPND,safSu=PL-4,safSg=NoRed,safApp=OpenSAF' faulted due to 'avaDown' : 
Recovery is 'componentRestart'

Apr  6 10:52:00 OEL_M-SLOT-4 osafckptnd[6263]: Started
Apr  6 10:52:10 OEL_M-SLOT-4 osafamfnd[3015]: NO Instantiation of 
'safComp=CPND,safSu=PL-4,safSg=NoRed,safApp=OpenSAF' failed
Apr  6 10:52:10 OEL_M-SLOT-4 osafamfnd[3015]: NO Reason: component registration 
timer expired
Apr  6 10:52:10 OEL_M-SLOT-4 osafckptnd[6294]: Started

Apr  6 10:52:20 OEL_M-SLOT-4 osafamfnd[3015]: NO Instantiation of 
'safComp=CPND,safSu=PL-4,safSg=NoRed,safApp=OpenSAF' failed

Apr  6 10:52:20 OEL_M-SLOT-4 osafamfnd[3015]: NO Reason: component registration 
timer expired
Apr  6 10:52:20 OEL_M-SLOT-4 osafamfnd[3015]: WA 
'safComp=CPND,safSu=PL-4,safSg=NoRed,safApp=OpenSAF' Presence State RESTARTING 
=> INSTANTIATION_FAILED
Apr  6 10:52:20 OEL_M-SLOT-4 osafamfnd[3015]: NO Component Failover trigerred 
for 'safSu=PL-4,safSg=NoRed,safApp=OpenSAF': Failed component: 
'safComp=CPND,safSu=PL-4,safSg=NoRed,safApp=OpenSAF'
Apr  6 10:52:20 OEL_M-SLOT-4 osafamfnd[3015]: ER 
'safComp=CPND,safSu=PL-4,safSg=NoRed,safApp=OpenSAF'got Inst failed
Apr  6 10:52:20 OEL_M-SLOT-4 osafamfnd[3015]: Rebooting OpenSAF NodeId = 132111 
EE Name = , Reason: NCS component Instantiation failed, OwnNodeId = 132111, 
SupervisionTime = 60
Apr  6 10:52:20 OEL_M-SLOT-4 opensaf_reboot: Rebooting local node; timeout=60
Apr  6 10:52:46 OEL_M-SLOT-4 kernel: imklog 5.8.10, log source = /proc/kmsg 
started.

3) Below is the timestamp of ACTIVE controller:

Apr  6 10:51:59 OEL_M-SLOT-1 osafimmd[6916]: WA No coordinator IMMND known 
(case B) - ignoring sync request
Apr  6 10:51:59 OEL_M-SLOT-1 osafimmd[6916]: NO Node 2040f request sync 
sync-pid:2980 epoch:0
Apr  6 10:52:24 OEL_M-SLOT-1 kernel: TIPC: Resetting link 
<1.1.1:eth3-1.1.4:eth3>, peer not responding
Apr  6 10:52:24 OEL_M-SLOT-1 kernel: TIPC: Lost link <1.1.1:eth3-1.1.4:eth3> on 
network plane A
Apr  6 10:52:24 OEL_M-SLOT-1 kernel: TIPC: Lost contact with <1.1.4>
Apr  6 10:52:24 OEL_M-SLOT-1 osafamfd[7003]: NO Node 'PL-4' left the cluster
Apr  6 10:52:24 OEL_M-SLOT-1 osafclmd[6988]: NO Node 132111 went down. Not 
sending track callback for agents on that node
Apr  6 10:52:24 OEL_M-SLOT-1 osafclmd[6988]: NO Node 132111 went down. Not 
sending track callback for agents on that node
Apr  6 10:52:24 OEL_M-SLOT-1 osafimmnd[3728]: NO Global discard node received 
for nodeId:2040f pid:2980
Apr  6 10:52:24 OEL_M-SLOT-1 osafimmnd[3728]: NO Implementer connected: 1539 
(MsgQueueService132111) <12283, 2010f>



---

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] #1815 mds: suspected message loss in large cluster deployments

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#1815] mds: suspected message loss in large cluster deployments**

**Status:** assigned
**Milestone:** future
**Created:** Mon May 09, 2016 06:45 AM UTC by Gary Lee
**Last Updated:** Tue Nov 15, 2016 06:39 AM UTC
**Owner:** nobody


It has been observed that CLM callbacks to amfd can become 'lost'
in a large cluster. It seems to be occurring in MDS, when the callbacks are
sent around the same time as amfd is calling avd_imm_config_get().

It seems avd_imm_config_get() generates a large
amount of traffic through MDS.


---

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] #1837 TIPC: loading model gives: "osafimmpbed: ER Failed in saImmOmSearchNext_2:5 - exiting" and "osafimmpbed: ER immpbe.cc dumpObjectsToPbe failed - exiting (line:265)

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#1837] TIPC: loading model gives: "osafimmpbed: ER Failed in 
saImmOmSearchNext_2:5 - exiting" and "osafimmpbed: ER immpbe.cc 
dumpObjectsToPbe failed - exiting (line:265)**

**Status:** assigned
**Milestone:** future
**Created:** Wed May 18, 2016 05:41 AM UTC by beatriz brandao
**Last Updated:** Mon Apr 03, 2017 04:59 AM UTC
**Owner:** nobody
**Attachments:**

- 
[C:\Docs\lixo\osaftestLog-2016-04-19_04-04-26.gz](https://sourceforge.net/p/opensaf/tickets/1837/attachment/C%3A%5CDocs%5Clixo%5CosaftestLog-2016-04-19_04-04-26.gz)
 (1.4 MB; application/x-gzip-compressed)


Testcase:
osaftest.tests.amf.functest.config_changes.test_comptype_attr_chg.Test.test_chg_ct_def_disable_restart
Note: this testcase are run with TIPC enabled.

Testcase starts @:
2016-04-19 03:44:28 INFO - TestCase:setUp Start | 
test_chg_ct_def_disable_restart (osaftest.tests.amf.functest.
config_changes.test_comptype_attr_chg.Test)

Testcase ends @:
2016-04-19 03:45:16 DEBUG: Powered off cluster

First analysis done by Zoran:
>From syslogs, I cannot see what was the problem for causing ERR_TIMEOUT in 
>searchNext().

According to MDS logs, it seems that this might be an MDS problem.

>From MDS logs:
Apr 19  3:44:36.237379 osaflogd[446] NOTIFY  |MDTM: svc up event for svc_id = 
LGA(21), subscri. by svc_id = LGS(20) 
pwe_id=1 Adest = <rem_node[2]:dest_tipc_id_ref[125861371]>
Apr 19  3:44:36.238518 osafntfd[461] NOTIFY  |MDTM: svc up event for svc_id = 
NTFA(29), subscri. by svc_id = NTFS(28) 
pwe_id=1 Adest = <rem_node[2]:dest_tipc_id_ref[627036966]>
Apr 19  3:44:36.239261 osafclmd[477] NOTIFY  |MDTM: svc up event for svc_id = 
CLMA(35), subscri. by svc_id = CLMS(34) 
pwe_id=1 Adest = <rem_node[2]:dest_tipc_id_ref[125861371]>
Apr 19  3:44:38.788267 osaflogd[446] NOTIFY  |MDTM: svc up event for svc_id = 
LGA(21), subscri. by svc_id = LGS(20) 
pwe_id=1 Adest = <rem_node[2]:dest_tipc_id_ref[627036966]>
Apr 19  3:44:44.911298 osafimmpbed[453] ERR  |MDS_SND_RCV: Timeout or Error 
occured
Apr 19  3:44:44.912049 osafimmpbed[453] ERR  |MDS_SND_RCV: Timeout occured on 
sndrsp message
Apr 19  3:44:44.912128 osafimmpbed[453] ERR  |MDS_SND_RCV: 
Adest=<0x0002010f,1637493776>
Apr 19  3:44:44.919827 osafimmnd[432] NOTIFY  |MDTM: svc down event for svc_id 
= IMMA_OM(26), subscri. by svc_id = 
IMMND(25) pwe_id=1 Adest = <nodeid[1]:osafimmnd[432]>
Apr 19  3:44:45.413550 osafimmpbed[679] NOTIFY  |BEGIN MDS LOGGING| 
PID=<osafimmpbed[679]> | ARCHW=a|64bit=1

the was no any MDS message between 3:44:38.788267 and 3:44:44.911298.

At 3:44:44.911298, MDS send/receive PBE request was timed out.



---

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] #1929 osaf: Build fails with GCC 6.1.0

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#1929] osaf: Build fails with GCC 6.1.0**

**Status:** assigned
**Milestone:** future
**Created:** Tue Aug 02, 2016 09:21 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Sep 20, 2016 05:36 PM UTC
**Owner:** nobody


OpenSAF fails to build with GCC 6.1.0, due to new compiler warnings:
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/6.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-6.1.0/configure --prefix=/usr --enable-shared 
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu 
--enable-languages=c,c++ --disable-multilib --disable-bootstrap 
--with-system-zlib --with-gmp=/usr/local/gmp-6.1.1 
--with-mpfr=/usr/local/mpfr-3.1.4 --with-mpc=/usr/local/mpc-1.0.3
Thread model: posix
gcc version 6.1.0 (GCC)


make[5]: Entering directory `/avm/opensaf/osaf/tools/safimm/immdump'
g++ -DHAVE_CONFIG_H -I. -I../../../..  -DSA_EXTENDED_NAME_SOURCE 
-I../../../../osaf/libs/saf/include -I../../../../osaf/libs/core/include 
-I../../../../osaf/libs/core/leap/include 
-I../../../../osaf/libs/core/mds/include 
-I../../../../osaf/libs/core/common/include  
-I../../../../osaf/libs/common/immsv/include  -Wall -fno-strict-aliasing 
-Werror -fPIC -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -fstack-protector 
-DINTERNAL_VERSION_ID='""'  -I/usr/include/libxml2 -g -O2 -MT 
immdump-imm_dumper.o -MD -MP -MF .deps/immdump-imm_dumper.Tpo -c -o 
immdump-imm_dumper.o `test -f 'imm_dumper.cc' || echo './'`imm_dumper.cc
imm_dumper.cc: In function ‘int main(int, char**)’:
imm_dumper.cc:144:5: error: this ‘if’ clause does not guard... 
[-Werror=misleading-indentation]
 if ((c = getopt_long(argc, argv, "hp:x:c:", long_options, NULL)) == -1)
 ^~
imm_dumper.cc:147:13: note: ...this statement, but the latter is misleadingly 
indented as if it is guarded by the ‘if’
 switch (c) {
 ^~
cc1plus: all warnings being treated as errors
make[5]: *** [immdump-imm_dumper.o] Error 1
make[5]: Leaving directory `/avm/opensaf/osaf/tools/safimm/immdump'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/avm/opensaf/osaf/tools/safimm'


---

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] #2082 CKPT : Track cbk not invoked for section creation after cpnd restart

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#2082] CKPT : Track cbk not invoked for section creation after cpnd 
restart**

**Status:** assigned
**Milestone:** future
**Created:** Thu Sep 29, 2016 11:06 AM UTC by Srikanth R
**Last Updated:** Tue Nov 15, 2016 06:37 AM UTC
**Owner:** nobody


Changeset: 7997 5.1.FC

Track Callback is not invoked after cpnd restart. Below are the apis called 
from the applications , spawned on two nodes .i.e payloads.


On first node :

-> Initialize with cpsv 
-> Create a ckpt with ACTIVE REPLICA flag.
 
 On second node.
 -> Initialize with cpsv.

 On First node,
 -> Open the checkpoint in writing mode
-> Open the checkpoint in reading mode.
 -> Kill cpnd process
 -> Register for Track callback.

On Second node, 
 -> Open the ckpt in read mode.
 -> Kill cpnd proces
 -> Register for Track callback.
 
 
After ensuring that both agents registered for track callback, create a section 
from the application on first node. For section creation, callback should be 
invoked for applications on two nodes.

Currently callback is not invoked for the application on second node. With out 
cpnd restart, callback is invoked for the two applications


---

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] #2007 EVT: Service got hanged for 2 hours after saEvtEventPublish

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#2007] EVT: Service got hanged for 2 hours after saEvtEventPublish**

**Status:** assigned
**Milestone:** future
**Created:** Wed Sep 07, 2016 09:39 AM UTC by Chani Srivastava
**Last Updated:** Fri Sep 09, 2016 05:20 AM UTC
**Owner:** nobody


OS : Suse PPC 64bit 
Changeset : 7997  ( 5.1.FC)
Setup : 4 nodes ( 2 controllers and 2 payloads with headless feature disabled & 
no PBE )


Below APIs are called in sequence
saEvtInitialize()
saEvtChannelOpen()
saEvtEventAllocate()
saEvtEventAttributesSet()
saEvtEventPublish()

Application got hanged

(gdb) bt
0x0fff93e819f4 in .__poll () from /lib64/libc.so.6
1  0x0fff93be45c4 in osaf_poll_no_timeout (io_fds=0xfff9412e728, i_nfds=1) 
at osaf_poll.c:32
2  0x0fff93be4738 in osaf_ppoll (io_fds=0xfff9412e728, i_nfds=1, 
i_timeout_ts=0x0, i_sigmask=0x0) at osaf_poll.c:79
3  0x0fff93bf2f88 in ncs_tmr_wait () at sysf_tmr.c:409
4  0x0fff9402c818 in .start_thread () from /lib64/libpthread.so.0
5  0x0fff93e8db2c in .__clone () from /lib64/libc.so.6
(gdb) thread apply all bt

Thread 4 (LWP 4698):
0  0x0fff94034f30 in .sem_wait () from /lib64/libpthread.so.0
1  0x0fff93c03630 in hm_block_me (cell=0x100b76e0, pool_id=1 '\001') at 
hj_hdl.c:697
2  0x0fff93c025a0 in ncshm_destroy_hdl (id=NCS_SERVICE_ID_EDA, 
uhdl=4028633082) at hj_hdl.c:366
3  0x0fff940dd3bc in eda_channel_hdl_rec_del (list_head=0x100c00e0, 
rm_node=0x100c1c90) at eda_hdl.c:317
4  0x0fff940d7368 in saEvtChannelClose (channelHandle=4028633082) at 
eda_saf_api.c:895
5  0x1002ffcc in tet_saEvtChannelClose (ptrChannelHandle=0x1007a8e8 
)
at src/tet_edsv_wrappers.c:198
6  0x1000ed78 in tet_RetentionTimeClear_Thread () at src/tet_eda.c:4790
7  0x10011804 in tet_invoketp (icnum=300, tpnum=1) at src/tet_eda.c:6279
8  0x10032cbc in call_1tp (icnum=0, tpnum=0, testnum=0) at 
tcm_main.c:581
9  0x100333b0 in call_tps (tpcount=, icnum=) at tcm_main.c:477
10 tet_tcm_main (argc=1, argv=0xfffc40a76c8) at tcm_main.c:432
11 0x10035fa4 in main (argc=,
argv=) at main.c:83

Thread 3 (LWP 4727):
0  0x0fff93e53d68 in .__GI___libc_nanosleep () from /lib64/libc.so.6
1  0x0fff93e53ae0 in .__sleep () from /lib64/libc.so.6
2  0x10031b30 in eda_selection_thread () at src/tet_edsv_wrappers.c:643
3  0x0fff9402c818 in .start_thread () from /lib64/libpthread.so.0
4  0x0fff93e8db2c in .__clone () from /lib64/libc.so.6

Thread 2 (LWP 4701):
0  0x0fff93e819f4 in .__poll () from /lib64/libc.so.6
1  0x0fff93c4b5a8 in mdtm_process_recv_events () at mds_dt_tipc.c:665
2  0x0fff9402c818 in .start_thread () from /lib64/libpthread.so.0
3  0x0fff93e8db2c in .__clone () from /lib64/libc.so.6

Thread 1 (LWP 4700):
0  0x0fff93e819f4 in .__poll () from /lib64/libc.so.6
1  0x0fff93be45c4 in osaf_poll_no_timeout (io_fds=0xfff9412e728, i_nfds=1) 
at osaf_poll.c:32
2  0x0fff93be4738 in osaf_ppoll (io_fds=0xfff9412e728, i_nfds=1, 
i_timeout_ts=0x0, i_sigmask=0x0) at osaf_poll.c:79
3  0x0fff93bf2f88 in ncs_tmr_wait () at sysf_tmr.c:409
4  0x0fff9402c818 in .start_thread () from /lib64/libpthread.so.0
5  0x0fff93e8db2c in .__clone () from /lib64/libc.so.6
(gdb) q



---

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] #2011 ckptd seg faulted on active controller when trying to create checkpoint

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False
- **Milestone**: 5.17.08 --> future



---

** [tickets:#2011] ckptd seg faulted on active controller when trying to create 
checkpoint**

**Status:** accepted
**Milestone:** future
**Created:** Thu Sep 08, 2016 07:28 AM UTC by Ritu Raj
**Last Updated:** Mon Apr 10, 2017 01:40 PM UTC
**Owner:** nobody
**Attachments:**

- 
[ckptd_bt](https://sourceforge.net/p/opensaf/tickets/2011/attachment/ckptd_bt) 
(2.6 kB; application/octet-stream)
- 
[messages-20160907.bz2](https://sourceforge.net/p/opensaf/tickets/2011/attachment/messages-20160907.bz2)
 (380.1 kB; application/x-bzip)
- [syslog2](https://sourceforge.net/p/opensaf/tickets/2011/attachment/syslog2) 
(1.4 MB; application/octet-stream)


Environment details

OS : Suse 64bit
Changeset : 7997 ( 5.1.FC)
Setup : 4 nodes ( 2 controllers and 2 payloads with headless feature disabled & 
1PBE enabled with 30K objects )

Summary :

ckptd crashed on active controller when trying to create checkpoint during 
failover

Steps followed & Observed behaviour

1. Initially ran some CKPT test scenarios, along with failovers. After the end 
of the test scenarios, The following IMM objects &  replicas are not deleted 
sofo-s3:/dev/shm # immfind | grep 101
safCkpt=all_replicas_ckpt_name_101
safCkpt=collocated_ckpt_name_101
safReplica=safNode=PL-3\,safCluster=myClmCluster,safCkpt=all_replicas_ckpt_name_101
safReplica=safNode=PL-3\,safCluster=myClmCluster,safCkpt=collocated_ckpt_name_101
safReplica=safNode=SC-1\,safCluster=myClmCluster,safCkpt=all_replicas_ckpt_name_101
safReplica=safNode=SC-2\,safCluster=myClmCluster,safCkpt=all_replicas_ckpt_name_101

2.  When ckpt is created with the earlier name (all_replicas_ckpt_name_101)  
observed the following error in syslog. Also CkptOpen failed with ERR_LIBRARY.

>>   saImmOiRtObjectCreate_2 failed with error = 14
>>
Sep  7 17:21:11 sofo-s2 osafimmnd[2137]: NO PBE-OI established on this SC. 
Dumping incrementally to file imm.db
Sep  7 17:21:12 sofo-s2 osafckptd[2284]: ER create_runtime_ckpt_object - 
saImmOiRtObjectCreate_2 failed with error = 14
Sep  7 17:21:12 sofo-s2 osafckptd[2284]: ER create runtime ckpt object failed 
with error: 14
Sep  7 17:21:12 sofo-s2 osafckptd[2284]: ER cpd db add ckpt_node failed for 
ckpt_id:2


4. After some time cpktd seg faulted on active controller
>>
Sep  7 17:21:43 sofo-s2 osafamfnd[2187]: NO 
'safComp=CPD,safSu=SC-2,safSg=2N,safApp=OpenSAF' faulted due to 'avaDown' : 
Recovery is 'nodeFailfast'
Sep  7 17:21:43 sofo-s2 osafamfnd[2187]: ER 
safComp=CPD,safSu=SC-2,safSg=2N,safApp=OpenSAF Faulted due to:avaDown Recovery 
is:nodeFailfast
Sep  7 17:21:43 sofo-s2 osafamfnd[2187]: Rebooting OpenSAF NodeId = 131599 EE 
Name = , Reason: Component faulted: recovery is node failfast, OwnNodeId = 
131599, SupervisionTime = 60
Sep  7 17:21:43 sofo-s2 opensaf_reboot: Rebooting local node; timeout=60

5. Below is the bt

0-  0x7fbbd5ffcb20 in memcmp () from /lib64/libc.so.6
1-  0x7fbbd7a10929 in ncs_patricia_tree_get (pTree=0x67b4c8, 
pKey=0x7d22531c "\017\001\002") at patricia.c:435

2-  0x0040800d in cpd_cpnd_info_node_get (cpnd_tree=0x67b4c8, 
dest=0x67ec60, cpnd_info_node=0x7d225350) at cpd_db.c:706

3-  0x0040cd56 in cpd_evt_proc_mds_evt (cb=0x67b340, evt=0x67ec50) at 
cpd_evt.c:1378

4-  0x004091cb in cpd_process_evt (evt=0x67ec40) at cpd_evt.c:107
5-  0x0041185f in cpd_main_process (cb=0x67b340) at cpd_init.c:661
6 - 0x00411b89 in main (argc=1, argv=0x7d225578) at cpd_main.c:74


Notes:
1. Syslog attached
2. bt attached 
3. ckptd traces not enabled


---

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] #2085 CKPT : IMM attributes for ckpt table are increased by 1, when ckpt open returns TIME_OUT

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#2085] CKPT : IMM attributes for ckpt table are increased by 1, 
when ckpt open returns TIME_OUT**

**Status:** assigned
**Milestone:** future
**Created:** Fri Sep 30, 2016 05:13 AM UTC by Srikanth R
**Last Updated:** Tue Nov 15, 2016 06:37 AM UTC
**Owner:** nobody


Changeset : 7997 5.1.FC

IMM attributes for ckpt table are increased by 1, when ckpt open returns 
TIME_OUT. Below is the flow of steps in which how application uses CKPT.

-> Initialize with ckpt with callbacks. API returned SA_AIS_OK
-> Invoke selection object. API returned SA_AIS_OK
-> Create a checkpoint using async option. API returned SA_AIS_OK
-> Kill ckpnd process.
-> Check for the callbacks and check the IMM attribute of CKPT object.
Callback is invoked, in which return value is ERR_TIMEOUT. Spec mandates 
that, api should be called again to check whether checkpoint creation is 
successful or not. If the further call returns ERR_EXIST, the previous call is 
successful or the further call returns SA_AIS_OK, the previous call is 
unsuccessful.

 -> As the callback returned SA_AIS_ERR_TIMEOUT, invoked the checkpoint 
creation api async again. This time, api and both callback returned SA_AIS_OK.
 
  Now if you check the attributes for CKPT table object, the attributes 
saCkptCheckpointNumOpeners, saCkptCheckpointNumReaders and 
saCkptCheckpointNumWriters are having a value of 2, instead of expected value 
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


[tickets] [opensaf:tickets] #2302 mds: replace patricia trees with cpp Map/trees

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#2302] mds: replace patricia trees with cpp Map/trees**

**Status:** assigned
**Milestone:** future
**Created:** Mon Feb 13, 2017 06:30 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Feb 13, 2017 06:32 AM UTC
**Owner:** nobody


DB NCS PATRICIA TREE  with  C++ Map
for improve efficiency.


---

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] #2303 dtm: replace patricia trees with cpp Map/trees

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#2303] dtm: replace patricia trees with cpp Map/trees**

**Status:** assigned
**Milestone:** future
**Created:** Mon Feb 13, 2017 06:32 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Feb 13, 2017 06:33 AM UTC
**Owner:** nobody


DB NCS PATRICIA TREE  with  C++ Map
for improve efficiency.


---

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] #2384 tools: IMM/tools/apitest fix all Cppcheck 1.77 issues

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 
- **Blocker**:  --> False



---

** [tickets:#2384] tools: IMM/tools/apitest fix all Cppcheck 1.77 issues**

**Status:** assigned
**Milestone:** future
**Created:** Fri Mar 17, 2017 04:57 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 17, 2017 04:57 AM UTC
**Owner:** nobody


[src/imm/agent/imma_db.cc:264]: (style) C-style pointer casting

[src/imm/apitest/immtest.c:151] -> [src/imm/apitest/immtest.c:184]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/immtest.c:236] -> [src/imm/apitest/immtest.c:252]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/implementer/applier.c:340]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[src/imm/apitest/implementer/applier.c:202]: (style) The scope of the variable 
'c' can be reduced.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:307]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:415]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:474]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:523]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:618]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:696]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:763]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:848]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:932]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:1017]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiCcb.c:175]: (style) The scope of the 
variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_SaImmOiCcb.c:228]: (style) The scope of the 
variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_SaImmOiRtAttrUpdateCallbackT.c:55] -> 
[src/imm/apitest/implementer/test_SaImmOiRtAttrUpdateCallbackT.c:82]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:368]: (style) 
The scope of the variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:424]: (style) 
The scope of the variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:491]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:512]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:574]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:593]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:660]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:665]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:683]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:750]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:755]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apit

[tickets] [opensaf:tickets] #2444 mds : improve m_NCS_TMR_START() error handling in mds code

2017-08-28 Thread A V Mahesh (AVM) via Opensaf-tickets
- **assigned_to**: A V Mahesh (AVM) -->  nobody 



---

** [tickets:#2444] mds : improve m_NCS_TMR_START()  error handling in mds code**

**Status:** assigned
**Milestone:** future
**Created:** Fri Apr 28, 2017 03:45 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Apr 28, 2017 03:45 AM UTC
**Owner:** nobody
**Attachments:**

- 
[mds_tmr_err.patch](https://sourceforge.net/p/opensaf/tickets/2444/attachment/mds_tmr_err.patch)
 (8.4 kB; application/octet-stream)


The attached patch will improve m_NCS_TMR_START()  error handling in mds code.


---

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] #2532 mds: TCP SVC_UP event is not received after subscribing

2017-08-27 Thread A V Mahesh (AVM) via Opensaf-tickets
Hi,

I did run immomtest over night  with TCP & TIPC, I haven't seen any issue , and 
also not able figureit out any thing form attached logs. as another try I will 
give by rebooting or starting nodes randomly while immomtestis running on 
another node as you were saying.

If still not reproducible, we no option that you need to run  same test on TIPC 
on same setup where you observed the issue , this will help us  isolating 
problem of IMM as if they are NO code changes in MDS TCP since last two release 
, we need IMMA traces to debug.

-AVM


---

** [tickets:#2532] mds: TCP SVC_UP event is not received after subscribing**

**Status:** unassigned
**Milestone:** 5.17.10
**Created:** Fri Jul 21, 2017 05:59 AM UTC by Hung Nguyen
**Last Updated:** Thu Aug 24, 2017 10:29 AM UTC
**Owner:** nobody
**Attachments:**

- 
[logs_n_traces.tgz](https://sourceforge.net/p/opensaf/tickets/2532/attachment/logs_n_traces.tgz)
 (1.5 MB; application/x-compressed)


MDS is successfully installed on IMMA and IMMA subscribed to IMMD successfully.
IMMND also received IMMA SVC_UP event but IMMA didn't receive SVC_UP event for 
IMMND.

~~~
<142>1 2017-07-20T13:00:36.072773+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14043"] MCM:API: svc_id = IMMA_OM(26) on VDEST id = 65535, 
SVC_PVT_VER = 0 Install Successfull
> ...
<142>1 2017-07-20T13:00:36.073091+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14074"] MCM:API: svc_subscribe :svc_id = IMMA_OM(26) on VDEST id = 
65535 Subscription to svc_id = IMMND(25) Successful
> ...
<142>1 2017-07-20T13:00:36.073904+02:00 PL-4 osafimmnd 177 mds.log [meta 
sequenceId="96185"] MCM:API: svc_up : svc_id = IMMND(25) on DEST id = 65535 got 
UP for svc_id = IMMA_OM(26) on Adest = , 
rem_svc_pvt_ver=0, rem_svc_archword=10
~~~


IMMA waited for the SVC_UP event for 30 sec but didn't receive anything.
~~~
Jul 20 13:00:36.071465 imma [278:278:src/imm/agent/imma_init.cc:0263] >> 
imma_startup 
Jul 20 13:00:36.071474 imma [278:278:src/imm/agent/imma_init.cc:0273] TR use 
count 0
Jul 20 13:00:36.071484 imma [278:278:src/base/ncs_main_pub.c:0220] TR 
NCS:PROCESS_ID=278
Jul 20 13:00:36.071494 imma [278:278:src/base/sysf_def.c:0089] TR INITIALIZING 
LEAP ENVIRONMENT
Jul 20 13:00:36.071584 imma [278:278:src/base/sysf_def.c:0124] TR DONE 
INITIALIZING LEAP ENVIRONMENT
Jul 20 13:00:36.071832 imma [278:278:src/base/ncs_main_pub.c:0757] TR 
NCS:NODE_ID=0x0002040F
Jul 20 13:00:36.072329 imma [278:278:src/mbc/mbcsv_dl_api.c:0059] >> 
mbcsv_lib_req 
Jul 20 13:00:36.072350 imma [278:278:src/mbc/mbcsv_dl_api.c:0096] >> 
mbcsv_lib_init 
Jul 20 13:00:36.072378 imma [278:278:src/mbc/mbcsv_mbx.c:0174] >> 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072389 imma [278:278:src/mbc/mbcsv_mbx.c:0189] << 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072399 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0158] >> 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072409 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0173] << 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072419 imma [278:278:src/mbc/mbcsv_dl_api.c:0075] << 
mbcsv_lib_req 
Jul 20 13:00:36.072440 imma [278:278:src/base/ncs_main_pub.c:0389] TR 
MBCSV:MBCA:ON
Jul 20 13:00:36.073104 imma [278:278:src/imm/agent/imma_init.cc:0063] >> 
imma_sync_with_immnd 
Jul 20 13:00:36.073114 imma [278:278:src/imm/agent/imma_init.cc:0071] TR 
Blocking first client
Jul 20 13:01:06.102156 imma [278:278:src/imm/agent/imma_init.cc:0081] TR 
Blocking wait released
Jul 20 13:01:06.102375 imma [278:278:src/imm/agent/imma_init.cc:0091] << 
imma_sync_with_immnd 
Jul 20 13:01:06.102413 imma [278:278:src/imm/agent/imma_init.cc:0179] TR Client 
agent successfully initialized
Jul 20 13:01:06.102427 imma [278:278:src/imm/agent/imma_init.cc:0296] << 
imma_startup: use count 1
~~~


Attached is traces and logs.




---

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] #2532 mds: TCP SVC_UP event is not received after subscribing

2017-08-24 Thread A V Mahesh (AVM) via Opensaf-tickets
Hi,

TCP was used, not TIPC.

Please do provide following :

Is the issue reproducible every time on multiple setups ?
Is the issue reproducible any other test other than executing immomtest ?  ( 
logtest, ect ...)
Is the issue reproducible TIPC as well on same setups ? , this help us in 
isolating the problem to IMM or  DTM/MDS.

Share setup details like VM or physical system or container setup ect..


---

** [tickets:#2532] mds: TCP SVC_UP event is not received after subscribing**

**Status:** unassigned
**Milestone:** 5.17.10
**Created:** Fri Jul 21, 2017 05:59 AM UTC by Hung Nguyen
**Last Updated:** Thu Aug 24, 2017 10:27 AM UTC
**Owner:** nobody
**Attachments:**

- 
[logs_n_traces.tgz](https://sourceforge.net/p/opensaf/tickets/2532/attachment/logs_n_traces.tgz)
 (1.5 MB; application/x-compressed)


MDS is successfully installed on IMMA and IMMA subscribed to IMMD successfully.
IMMND also received IMMA SVC_UP event but IMMA didn't receive SVC_UP event for 
IMMND.

~~~
<142>1 2017-07-20T13:00:36.072773+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14043"] MCM:API: svc_id = IMMA_OM(26) on VDEST id = 65535, 
SVC_PVT_VER = 0 Install Successfull
> ...
<142>1 2017-07-20T13:00:36.073091+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14074"] MCM:API: svc_subscribe :svc_id = IMMA_OM(26) on VDEST id = 
65535 Subscription to svc_id = IMMND(25) Successful
> ...
<142>1 2017-07-20T13:00:36.073904+02:00 PL-4 osafimmnd 177 mds.log [meta 
sequenceId="96185"] MCM:API: svc_up : svc_id = IMMND(25) on DEST id = 65535 got 
UP for svc_id = IMMA_OM(26) on Adest = , 
rem_svc_pvt_ver=0, rem_svc_archword=10
~~~


IMMA waited for the SVC_UP event for 30 sec but didn't receive anything.
~~~
Jul 20 13:00:36.071465 imma [278:278:src/imm/agent/imma_init.cc:0263] >> 
imma_startup 
Jul 20 13:00:36.071474 imma [278:278:src/imm/agent/imma_init.cc:0273] TR use 
count 0
Jul 20 13:00:36.071484 imma [278:278:src/base/ncs_main_pub.c:0220] TR 
NCS:PROCESS_ID=278
Jul 20 13:00:36.071494 imma [278:278:src/base/sysf_def.c:0089] TR INITIALIZING 
LEAP ENVIRONMENT
Jul 20 13:00:36.071584 imma [278:278:src/base/sysf_def.c:0124] TR DONE 
INITIALIZING LEAP ENVIRONMENT
Jul 20 13:00:36.071832 imma [278:278:src/base/ncs_main_pub.c:0757] TR 
NCS:NODE_ID=0x0002040F
Jul 20 13:00:36.072329 imma [278:278:src/mbc/mbcsv_dl_api.c:0059] >> 
mbcsv_lib_req 
Jul 20 13:00:36.072350 imma [278:278:src/mbc/mbcsv_dl_api.c:0096] >> 
mbcsv_lib_init 
Jul 20 13:00:36.072378 imma [278:278:src/mbc/mbcsv_mbx.c:0174] >> 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072389 imma [278:278:src/mbc/mbcsv_mbx.c:0189] << 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072399 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0158] >> 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072409 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0173] << 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072419 imma [278:278:src/mbc/mbcsv_dl_api.c:0075] << 
mbcsv_lib_req 
Jul 20 13:00:36.072440 imma [278:278:src/base/ncs_main_pub.c:0389] TR 
MBCSV:MBCA:ON
Jul 20 13:00:36.073104 imma [278:278:src/imm/agent/imma_init.cc:0063] >> 
imma_sync_with_immnd 
Jul 20 13:00:36.073114 imma [278:278:src/imm/agent/imma_init.cc:0071] TR 
Blocking first client
Jul 20 13:01:06.102156 imma [278:278:src/imm/agent/imma_init.cc:0081] TR 
Blocking wait released
Jul 20 13:01:06.102375 imma [278:278:src/imm/agent/imma_init.cc:0091] << 
imma_sync_with_immnd 
Jul 20 13:01:06.102413 imma [278:278:src/imm/agent/imma_init.cc:0179] TR Client 
agent successfully initialized
Jul 20 13:01:06.102427 imma [278:278:src/imm/agent/imma_init.cc:0296] << 
imma_startup: use count 1
~~~


Attached is traces and logs.




---

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] #2532 mds: TCP SVC_UP event is not received after subscribing

2017-08-24 Thread A V Mahesh (AVM) via Opensaf-tickets
- **summary**: mds: SVC_UP event is not received after subscribing --> mds: TCP 
SVC_UP event is not received after subscribing
- **Priority**: major --> minor



---

** [tickets:#2532] mds: TCP SVC_UP event is not received after subscribing**

**Status:** unassigned
**Milestone:** 5.17.10
**Created:** Fri Jul 21, 2017 05:59 AM UTC by Hung Nguyen
**Last Updated:** Thu Aug 24, 2017 08:51 AM UTC
**Owner:** nobody
**Attachments:**

- 
[logs_n_traces.tgz](https://sourceforge.net/p/opensaf/tickets/2532/attachment/logs_n_traces.tgz)
 (1.5 MB; application/x-compressed)


MDS is successfully installed on IMMA and IMMA subscribed to IMMD successfully.
IMMND also received IMMA SVC_UP event but IMMA didn't receive SVC_UP event for 
IMMND.

~~~
<142>1 2017-07-20T13:00:36.072773+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14043"] MCM:API: svc_id = IMMA_OM(26) on VDEST id = 65535, 
SVC_PVT_VER = 0 Install Successfull
> ...
<142>1 2017-07-20T13:00:36.073091+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14074"] MCM:API: svc_subscribe :svc_id = IMMA_OM(26) on VDEST id = 
65535 Subscription to svc_id = IMMND(25) Successful
> ...
<142>1 2017-07-20T13:00:36.073904+02:00 PL-4 osafimmnd 177 mds.log [meta 
sequenceId="96185"] MCM:API: svc_up : svc_id = IMMND(25) on DEST id = 65535 got 
UP for svc_id = IMMA_OM(26) on Adest = , 
rem_svc_pvt_ver=0, rem_svc_archword=10
~~~


IMMA waited for the SVC_UP event for 30 sec but didn't receive anything.
~~~
Jul 20 13:00:36.071465 imma [278:278:src/imm/agent/imma_init.cc:0263] >> 
imma_startup 
Jul 20 13:00:36.071474 imma [278:278:src/imm/agent/imma_init.cc:0273] TR use 
count 0
Jul 20 13:00:36.071484 imma [278:278:src/base/ncs_main_pub.c:0220] TR 
NCS:PROCESS_ID=278
Jul 20 13:00:36.071494 imma [278:278:src/base/sysf_def.c:0089] TR INITIALIZING 
LEAP ENVIRONMENT
Jul 20 13:00:36.071584 imma [278:278:src/base/sysf_def.c:0124] TR DONE 
INITIALIZING LEAP ENVIRONMENT
Jul 20 13:00:36.071832 imma [278:278:src/base/ncs_main_pub.c:0757] TR 
NCS:NODE_ID=0x0002040F
Jul 20 13:00:36.072329 imma [278:278:src/mbc/mbcsv_dl_api.c:0059] >> 
mbcsv_lib_req 
Jul 20 13:00:36.072350 imma [278:278:src/mbc/mbcsv_dl_api.c:0096] >> 
mbcsv_lib_init 
Jul 20 13:00:36.072378 imma [278:278:src/mbc/mbcsv_mbx.c:0174] >> 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072389 imma [278:278:src/mbc/mbcsv_mbx.c:0189] << 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072399 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0158] >> 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072409 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0173] << 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072419 imma [278:278:src/mbc/mbcsv_dl_api.c:0075] << 
mbcsv_lib_req 
Jul 20 13:00:36.072440 imma [278:278:src/base/ncs_main_pub.c:0389] TR 
MBCSV:MBCA:ON
Jul 20 13:00:36.073104 imma [278:278:src/imm/agent/imma_init.cc:0063] >> 
imma_sync_with_immnd 
Jul 20 13:00:36.073114 imma [278:278:src/imm/agent/imma_init.cc:0071] TR 
Blocking first client
Jul 20 13:01:06.102156 imma [278:278:src/imm/agent/imma_init.cc:0081] TR 
Blocking wait released
Jul 20 13:01:06.102375 imma [278:278:src/imm/agent/imma_init.cc:0091] << 
imma_sync_with_immnd 
Jul 20 13:01:06.102413 imma [278:278:src/imm/agent/imma_init.cc:0179] TR Client 
agent successfully initialized
Jul 20 13:01:06.102427 imma [278:278:src/imm/agent/imma_init.cc:0296] << 
imma_startup: use count 1
~~~


Attached is traces and logs.




---

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] #2532 mds: SVC_UP event is not received after subscribing

2017-08-24 Thread A V Mahesh (AVM) via Opensaf-tickets
Hi Hung Nguyen,

I am not able to reproduce the problem with TIPC 2.0 , whic TIPC you are using ?

Do you have any any specific  steps to reproduce ?

Not receiving  delayed/No SVC_UP event is very fundamental problem , 
do you have any other real-time thread on your IMM application (except Opensaf) 
?

-AVM


---

** [tickets:#2532] mds: SVC_UP event is not received after subscribing**

**Status:** unassigned
**Milestone:** 5.17.10
**Created:** Fri Jul 21, 2017 05:59 AM UTC by Hung Nguyen
**Last Updated:** Fri Jul 28, 2017 08:19 AM UTC
**Owner:** nobody
**Attachments:**

- 
[logs_n_traces.tgz](https://sourceforge.net/p/opensaf/tickets/2532/attachment/logs_n_traces.tgz)
 (1.5 MB; application/x-compressed)


MDS is successfully installed on IMMA and IMMA subscribed to IMMD successfully.
IMMND also received IMMA SVC_UP event but IMMA didn't receive SVC_UP event for 
IMMND.

~~~
<142>1 2017-07-20T13:00:36.072773+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14043"] MCM:API: svc_id = IMMA_OM(26) on VDEST id = 65535, 
SVC_PVT_VER = 0 Install Successfull
> ...
<142>1 2017-07-20T13:00:36.073091+02:00 PL-4 immomtest 278 mds.log [meta 
sequenceId="14074"] MCM:API: svc_subscribe :svc_id = IMMA_OM(26) on VDEST id = 
65535 Subscription to svc_id = IMMND(25) Successful
> ...
<142>1 2017-07-20T13:00:36.073904+02:00 PL-4 osafimmnd 177 mds.log [meta 
sequenceId="96185"] MCM:API: svc_up : svc_id = IMMND(25) on DEST id = 65535 got 
UP for svc_id = IMMA_OM(26) on Adest = , 
rem_svc_pvt_ver=0, rem_svc_archword=10
~~~


IMMA waited for the SVC_UP event for 30 sec but didn't receive anything.
~~~
Jul 20 13:00:36.071465 imma [278:278:src/imm/agent/imma_init.cc:0263] >> 
imma_startup 
Jul 20 13:00:36.071474 imma [278:278:src/imm/agent/imma_init.cc:0273] TR use 
count 0
Jul 20 13:00:36.071484 imma [278:278:src/base/ncs_main_pub.c:0220] TR 
NCS:PROCESS_ID=278
Jul 20 13:00:36.071494 imma [278:278:src/base/sysf_def.c:0089] TR INITIALIZING 
LEAP ENVIRONMENT
Jul 20 13:00:36.071584 imma [278:278:src/base/sysf_def.c:0124] TR DONE 
INITIALIZING LEAP ENVIRONMENT
Jul 20 13:00:36.071832 imma [278:278:src/base/ncs_main_pub.c:0757] TR 
NCS:NODE_ID=0x0002040F
Jul 20 13:00:36.072329 imma [278:278:src/mbc/mbcsv_dl_api.c:0059] >> 
mbcsv_lib_req 
Jul 20 13:00:36.072350 imma [278:278:src/mbc/mbcsv_dl_api.c:0096] >> 
mbcsv_lib_init 
Jul 20 13:00:36.072378 imma [278:278:src/mbc/mbcsv_mbx.c:0174] >> 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072389 imma [278:278:src/mbc/mbcsv_mbx.c:0189] << 
mbcsv_initialize_mbx_list 
Jul 20 13:00:36.072399 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0158] >> 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072409 imma [278:278:src/mbc/mbcsv_pwe_anc.c:0173] << 
mbcsv_initialize_peer_list 
Jul 20 13:00:36.072419 imma [278:278:src/mbc/mbcsv_dl_api.c:0075] << 
mbcsv_lib_req 
Jul 20 13:00:36.072440 imma [278:278:src/base/ncs_main_pub.c:0389] TR 
MBCSV:MBCA:ON
Jul 20 13:00:36.073104 imma [278:278:src/imm/agent/imma_init.cc:0063] >> 
imma_sync_with_immnd 
Jul 20 13:00:36.073114 imma [278:278:src/imm/agent/imma_init.cc:0071] TR 
Blocking first client
Jul 20 13:01:06.102156 imma [278:278:src/imm/agent/imma_init.cc:0081] TR 
Blocking wait released
Jul 20 13:01:06.102375 imma [278:278:src/imm/agent/imma_init.cc:0091] << 
imma_sync_with_immnd 
Jul 20 13:01:06.102413 imma [278:278:src/imm/agent/imma_init.cc:0179] TR Client 
agent successfully initialized
Jul 20 13:01:06.102427 imma [278:278:src/imm/agent/imma_init.cc:0296] << 
imma_startup: use count 1
~~~


Attached is traces and logs.




---

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] #2550 smf: Smfd fails to create SaAmfNodeSwBundle due to IMM sync

2017-08-13 Thread A V Mahesh (AVM) via Opensaf-tickets
- **Priority**: major --> minor



---

** [tickets:#2550] smf: Smfd fails to create SaAmfNodeSwBundle due to IMM sync**

**Status:** assigned
**Milestone:** 5.1.RC2
**Created:** Mon Aug 14, 2017 04:35 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Aug 14, 2017 04:35 AM UTC
**Owner:** Neelakanta Reddy


As the fix of #2389, SmfImmCreateOperation returns TRY_AGAIN when 
OmCcbObjectCreate is aborted due to IMM sync (resource abort).
However, on caller classes which areSmfImmUtils::doImmOperation and 
SmfUpgradeStep::createOneSaAmfNodeSwBundle do not handle for TRY_AGAIN returned 
code.

This causes the upgrade fails.

Jun 27 23:22:55 SC_2_2 osafsmfd[28490]: NO STEP: Create new SaAmfNodeSwBundle 
objects
Jun 27 23:22:53 SC_2_2 osafimmd[28350]: NO Node 20c0f request sync 
sync-pid:13429 epoch:0 
Jun 27 23:22:56 SC_2_2 osafimmnd[28364]: NO Announce sync, epoch:376
Jun 27 23:22:56 SC_2_2 osafimmd[28350]: NO Successfully announced sync. New 
ruling epoch:376
Jun 27 23:23:01 SC_2_2 osafimmnd[28364]: WA Aborting ccbId 2959 to start sync
Jun 27 23:23:01 SC_2_2 osafimmloadd: NO Sync starting
Jun 27 23:23:02 SC_2_2 osafimmloadd: IN Synced 7868 objects in total
Jun 27 23:23:02 SC_2_2 osafimmnd[28364]: NO NODE STATE-> 
IMM_NODE_FULLY_AVAILABLE 16888
Jun 27 23:23:02 SC_2_2 osafimmloadd: NO Sync ending normally
Jun 27 23:23:03 SC_2_2 osafimmnd[28364]: NO ERR_FAILED_OPERATION: ccb 2959 is 
in an error state rejecting ccbObjectCreate operation 
Jun 27 23:23:03 SC_2_2 osafsmfd[28490]: NO Failed to create object of 
class=[SaAmfNodeSwBundle] to 
parent=[safAmfNode=PL-18,safAmfCluster=myAmfCluster]. 
rc=SA_AIS_ERR_FAILED_OPERATION (21),
Jun 27 23:23:03 SC_2_2 osafsmfd[28490]: NO Creation of object failed, 
rc=SA_AIS_ERR_FAILED_OPERATION (21), class=[SaAmfNodeSwBundle], 
parent=[safAmfNode=PL-18,safAmfCluster=myAmfCluster]
Jun 27 23:23:03 SC_2_2 osafsmfd[28490]: ER Failed to create new 
SaAmfNodeSwBundle objects in step=safSmfStep=0001

Measurement: SmfUpgradeStep::createOneSaAmfNodeSwBundle should handle for 
TRY_AGAIN returned code


---

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] #2550 smf: Smfd fails to create SaAmfNodeSwBundle due to IMM sync

2017-08-13 Thread A V Mahesh (AVM) via Opensaf-tickets



---

** [tickets:#2550] smf: Smfd fails to create SaAmfNodeSwBundle due to IMM sync**

**Status:** assigned
**Milestone:** 5.1.RC2
**Created:** Mon Aug 14, 2017 04:35 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Aug 14, 2017 04:35 AM UTC
**Owner:** Neelakanta Reddy


As the fix of #2389, SmfImmCreateOperation returns TRY_AGAIN when 
OmCcbObjectCreate is aborted due to IMM sync (resource abort).
However, on caller classes which areSmfImmUtils::doImmOperation and 
SmfUpgradeStep::createOneSaAmfNodeSwBundle do not handle for TRY_AGAIN returned 
code.

This causes the upgrade fails.

Jun 27 23:22:55 SC_2_2 osafsmfd[28490]: NO STEP: Create new SaAmfNodeSwBundle 
objects
Jun 27 23:22:53 SC_2_2 osafimmd[28350]: NO Node 20c0f request sync 
sync-pid:13429 epoch:0 
Jun 27 23:22:56 SC_2_2 osafimmnd[28364]: NO Announce sync, epoch:376
Jun 27 23:22:56 SC_2_2 osafimmd[28350]: NO Successfully announced sync. New 
ruling epoch:376
Jun 27 23:23:01 SC_2_2 osafimmnd[28364]: WA Aborting ccbId 2959 to start sync
Jun 27 23:23:01 SC_2_2 osafimmloadd: NO Sync starting
Jun 27 23:23:02 SC_2_2 osafimmloadd: IN Synced 7868 objects in total
Jun 27 23:23:02 SC_2_2 osafimmnd[28364]: NO NODE STATE-> 
IMM_NODE_FULLY_AVAILABLE 16888
Jun 27 23:23:02 SC_2_2 osafimmloadd: NO Sync ending normally
Jun 27 23:23:03 SC_2_2 osafimmnd[28364]: NO ERR_FAILED_OPERATION: ccb 2959 is 
in an error state rejecting ccbObjectCreate operation 
Jun 27 23:23:03 SC_2_2 osafsmfd[28490]: NO Failed to create object of 
class=[SaAmfNodeSwBundle] to 
parent=[safAmfNode=PL-18,safAmfCluster=myAmfCluster]. 
rc=SA_AIS_ERR_FAILED_OPERATION (21),
Jun 27 23:23:03 SC_2_2 osafsmfd[28490]: NO Creation of object failed, 
rc=SA_AIS_ERR_FAILED_OPERATION (21), class=[SaAmfNodeSwBundle], 
parent=[safAmfNode=PL-18,safAmfCluster=myAmfCluster]
Jun 27 23:23:03 SC_2_2 osafsmfd[28490]: ER Failed to create new 
SaAmfNodeSwBundle objects in step=safSmfStep=0001

Measurement: SmfUpgradeStep::createOneSaAmfNodeSwBundle should handle for 
TRY_AGAIN returned code


---

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] #2522 dtm: if TCP_USER_TIMEOUT closes socket, no attempt is make to reconnect

2017-07-20 Thread A V Mahesh (AVM) via Opensaf-tickets
I don't think   Alex is taking about initial discovery issue/ processes ( 
topology node discovery) ,
but any how we can configure very big value of `DTM_INI_DIS_TIMEOUT_SECS` in 
dtm.conf to verify


---

** [tickets:#2522] dtm: if TCP_USER_TIMEOUT closes socket, no attempt is make 
to reconnect**

**Status:** unassigned
**Milestone:** 5.17.10
**Created:** Thu Jul 06, 2017 01:28 PM UTC by Alex Jones
**Last Updated:** Thu Jul 20, 2017 01:54 PM UTC
**Owner:** nobody


If TCP is used for transport, and TCP_USER_TIMEOUT is used also, if a node 
leaves the cluster due to some quick network outage, the nodes do not come back 
into the cluster automatically.

If TCP_USER_TIMEOUT is set to 1500 ms, and the network outage on the link is 
for 2000 ms, the node never comes back into the cluster.


---

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] #2495 imm: saImmOmCcbApply times out due to miscalculation for old critical CCBs

2017-06-13 Thread A V Mahesh (AVM) via Opensaf-tickets
- **Component**: unknown --> imm



---

** [tickets:#2495] imm: saImmOmCcbApply times out due to miscalculation for old 
critical CCBs**

**Status:** accepted
**Milestone:** 5.17.06
**Created:** Tue Jun 13, 2017 02:57 PM UTC by Zoran Milinkovic
**Last Updated:** Tue Jun 13, 2017 02:57 PM UTC
**Owner:** Zoran Milinkovic


When IMM fetches old critical CCBs, IMM does not add timed out CCBs in a vector 
due to miscalculation for expired CCBs.
Instead of adding expired CCBs to the vector, IMM continues to calculate 
timeout in minus.

2017-05-25 17:58:27 SC-1 osafimmnd[205]: WA Timeout (6) on transaction in 
critical state! ccb:2
2017-05-25 17:58:27 SC-1 osafimmnd[205]: NO Ccb 2 is old, but also large (1) 
will wait secs:-0.382578
2017-05-25 17:58:28 SC-1 osafimmnd[205]: WA Timeout (6) on transaction in 
critical state! ccb:2
2017-05-25 17:58:28 SC-1 osafimmnd[205]: NO Ccb 2 is old, but also large (1) 
will wait secs:-1.387785
2017-05-25 17:58:29 SC-1 osafimmnd[205]: WA Timeout (6) on transaction in 
critical state! ccb:2
2017-05-25 17:58:29 SC-1 osafimmnd[205]: NO Ccb 2 is old, but also large (1) 
will wait secs:-2.392967
2017-05-25 17:58:30 SC-1 osafimmnd[205]: WA Timeout (6) on transaction in 
critical state! ccb:2
2017-05-25 17:58:30 SC-1 osafimmnd[205]: NO Ccb 2 is old, but also large (1) 
will wait secs:-3.398186
2017-05-25 17:58:31 SC-1 osafimmnd[205]: WA Timeout (6) on transaction in 
critical state! ccb:2
2017-05-25 17:58:31 SC-1 osafimmnd[205]: NO Ccb 2 is old, but also large (1) 
will wait secs:-4.403361
2017-05-25 17:58:32 SC-1 osafimmnd[205]: WA Timeout (6) on transaction in 
critical state! ccb:2
2017-05-25 17:58:32 SC-1 osafimmnd[205]: NO Ccb 2 is old, but also large (1) 
will wait secs:-5.408588
.

The bug was introduced in OpenSAF 5.1 with ticket #1704


---

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] #2474 mds : clear mds lib valgrind warning

2017-06-05 Thread A V Mahesh (AVM) via Opensaf-tickets
- **status**: review --> fixed
- **Comment**:

To ssh://avmah...@git.code.sf.net/p/opensaf/code
   c0b25cd..1592f85  develop -> develop
   

To ssh://avmah...@git.code.sf.net/p/opensaf/code
   cbfaa7c..9e5e7af  release -> release



---

** [tickets:#2474] mds : clear mds lib valgrind  warning **

**Status:** fixed
**Milestone:** 5.17.08
**Created:** Thu Jun 01, 2017 04:59 AM UTC by A V Mahesh (AVM)
**Last Updated:** Thu Jun 01, 2017 09:05 AM UTC
**Owner:** A V Mahesh (AVM)


Valgrind 
---

==8184== Thread 3:
==8184== Conditional jump or move depends on uninitialised value(s)
==8184==at 0x58DC459: get_subtn_adest_details (mds_c_db.c:155)
==8184==by 0x58D9F10: mds_mcm_svc_up (mds_c_api.c:1967)
==8184==by 0x58F17B7: mdtm_process_discovery_events (mds_dt_tipc.c:1297)
==8184==by 0x58F27A8: mdtm_process_recv_events (mds_dt_tipc.c:806)
==8184==by 0x62C27B5: start_thread (in /lib64/libpthread-2.11.3.so)
==8184==by 0x65AF9CC: clone (in /lib64/libc-2.11.3.so)
==8184==
==8184== Use of uninitialised value of size 8
==8184==at 0x651AC73: _itoa_word (in /lib64/libc-2.11.3.so)
==8184==by 0x651DD36: vfprintf (in /lib64/libc-2.11.3.so)
==8184==by 0x65C3608: __vsnprintf_chk (in /lib64/libc-2.11.3.so)
==8184==by 0x65C354A: __snprintf_chk (in /lib64/libc-2.11.3.so)
==8184==by 0x58DC499: snprintf (stdio2.h:65)
==8184==by 0x58DC499: get_subtn_adest_details (mds_c_db.c:199)
==8184==by 0x58D9F10: mds_mcm_svc_up (mds_c_api.c:1967)
==8184==by 0x58F17B7: mdtm_process_discovery_events (mds_dt_tipc.c:1297)
==8184==by 0x58F27A8: mdtm_process_recv_events (mds_dt_tipc.c:806)
==8184==by 0x62C27B5: start_thread (in /lib64/libpthread-2.11.3.so)
==8184==by 0x65AF9CC: clone (in /lib64/libc-2.11.3.so)
---


---

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] #2474 mds : clear mds lib valgrind warning

2017-06-01 Thread A V Mahesh (AVM)
- **status**: accepted --> review



---

** [tickets:#2474] mds : clear mds lib valgrind  warning **

**Status:** review
**Milestone:** 5.17.08
**Created:** Thu Jun 01, 2017 04:59 AM UTC by A V Mahesh (AVM)
**Last Updated:** Thu Jun 01, 2017 04:59 AM UTC
**Owner:** A V Mahesh (AVM)


Valgrind 
---

==8184== Thread 3:
==8184== Conditional jump or move depends on uninitialised value(s)
==8184==at 0x58DC459: get_subtn_adest_details (mds_c_db.c:155)
==8184==by 0x58D9F10: mds_mcm_svc_up (mds_c_api.c:1967)
==8184==by 0x58F17B7: mdtm_process_discovery_events (mds_dt_tipc.c:1297)
==8184==by 0x58F27A8: mdtm_process_recv_events (mds_dt_tipc.c:806)
==8184==by 0x62C27B5: start_thread (in /lib64/libpthread-2.11.3.so)
==8184==by 0x65AF9CC: clone (in /lib64/libc-2.11.3.so)
==8184==
==8184== Use of uninitialised value of size 8
==8184==at 0x651AC73: _itoa_word (in /lib64/libc-2.11.3.so)
==8184==by 0x651DD36: vfprintf (in /lib64/libc-2.11.3.so)
==8184==by 0x65C3608: __vsnprintf_chk (in /lib64/libc-2.11.3.so)
==8184==by 0x65C354A: __snprintf_chk (in /lib64/libc-2.11.3.so)
==8184==by 0x58DC499: snprintf (stdio2.h:65)
==8184==by 0x58DC499: get_subtn_adest_details (mds_c_db.c:199)
==8184==by 0x58D9F10: mds_mcm_svc_up (mds_c_api.c:1967)
==8184==by 0x58F17B7: mdtm_process_discovery_events (mds_dt_tipc.c:1297)
==8184==by 0x58F27A8: mdtm_process_recv_events (mds_dt_tipc.c:806)
==8184==by 0x62C27B5: start_thread (in /lib64/libpthread-2.11.3.so)
==8184==by 0x65AF9CC: clone (in /lib64/libc-2.11.3.so)
---


---

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] #2474 mds : clear mds lib valgrind warning

2017-05-31 Thread A V Mahesh (AVM)



---

** [tickets:#2474] mds : clear mds lib valgrind  warning **

**Status:** accepted
**Milestone:** 5.17.08
**Created:** Thu Jun 01, 2017 04:59 AM UTC by A V Mahesh (AVM)
**Last Updated:** Thu Jun 01, 2017 04:59 AM UTC
**Owner:** A V Mahesh (AVM)


Valgrind 
---

==8184== Thread 3:
==8184== Conditional jump or move depends on uninitialised value(s)
==8184==at 0x58DC459: get_subtn_adest_details (mds_c_db.c:155)
==8184==by 0x58D9F10: mds_mcm_svc_up (mds_c_api.c:1967)
==8184==by 0x58F17B7: mdtm_process_discovery_events (mds_dt_tipc.c:1297)
==8184==by 0x58F27A8: mdtm_process_recv_events (mds_dt_tipc.c:806)
==8184==by 0x62C27B5: start_thread (in /lib64/libpthread-2.11.3.so)
==8184==by 0x65AF9CC: clone (in /lib64/libc-2.11.3.so)
==8184==
==8184== Use of uninitialised value of size 8
==8184==at 0x651AC73: _itoa_word (in /lib64/libc-2.11.3.so)
==8184==by 0x651DD36: vfprintf (in /lib64/libc-2.11.3.so)
==8184==by 0x65C3608: __vsnprintf_chk (in /lib64/libc-2.11.3.so)
==8184==by 0x65C354A: __snprintf_chk (in /lib64/libc-2.11.3.so)
==8184==by 0x58DC499: snprintf (stdio2.h:65)
==8184==by 0x58DC499: get_subtn_adest_details (mds_c_db.c:199)
==8184==by 0x58D9F10: mds_mcm_svc_up (mds_c_api.c:1967)
==8184==by 0x58F17B7: mdtm_process_discovery_events (mds_dt_tipc.c:1297)
==8184==by 0x58F27A8: mdtm_process_recv_events (mds_dt_tipc.c:806)
==8184==by 0x62C27B5: start_thread (in /lib64/libpthread-2.11.3.so)
==8184==by 0x65AF9CC: clone (in /lib64/libc-2.11.3.so)
---


---

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] #2452 log: mutex lock missing in error cases of write_log_record_hdl()

2017-05-14 Thread A V Mahesh (AVM)
- **Comment**:

http://hg.code.sf.net/p/opensaf/staging


changeset:   8793:55c2a1420b3b
user:A V Mahesh <mahesh.va...@oracle.com>
date:Mon May 15 10:14:23 2017 +0530
summary: log: correct mutex lock and unlock sequence in logd [#2452]
 
changeset:   8794:79f068cb5ef5
branch:  opensaf-5.1.x
tag: tip
parent:  8782:9d4e9d9cbcb9
user:A V Mahesh <mahesh.va...@oracle.com>
date:Mon May 15 10:16:17 2017 +0530
summary: log: correct mutex lock and unlock sequence in logd [#2452]
 



---

** [tickets:#2452] log: mutex lock missing in error cases of 
write_log_record_hdl() **

**Status:** review
**Milestone:** 5.1.0
**Created:** Thu May 04, 2017 05:54 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri May 12, 2017 11:57 AM UTC
**Owner:** A V Mahesh (AVM)


Unlock is being called twice before waiting hence LOGD crashes.

This because of write_log_record_hdl() is being returned with out
osaf_mutex_lock_ordie(_ftcom_mutex);


=

int write_log_record_hdl(void *indata, void *outdata, size_t max_outsize, bool 
*timeout_f) {
  int rc = 0;
  uint32_t bytes_written = 0;
  off_t file_length = 0;
  wlrh_t *params_in = static_cast(indata);
  /* Get log record pointed by lgs_rec pointer */
  char *logrecord = const_cast(static_cast(params_in->lgs_rec));
  int *errno_out_p = static_cast(outdata);
  *errno_out_p = 0;
 
  TRACE_ENTER();
 
  osaf_mutex_unlock_ordie(_ftcom_mutex); /* UNLOCK  Critical section */
 
retry:
  rc = write(params_in->fd, [bytes_written],
 params_in->record_size - bytes_written);
  if (rc == -1) {
if (errno == EINTR)
  goto retry; 
 
LOG_ER("%s - write FAILED: %s",__FUNCTION__, strerror(errno));
*errno_out_p = errno;
goto done;  
<---
  } else {
/* Handle partial writes */
bytes_written += rc;
if (bytes_written < params_in->record_size)
  goto retry;
  }
  osaf_mutex_lock_ordie(_ftcom_mutex);
  
=


---

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] #2452 log: mutex lock missing in error cases of write_log_record_hdl()

2017-05-03 Thread A V Mahesh (AVM)
- **status**: assigned --> accepted



---

** [tickets:#2452] log: mutex lock missing in error cases of 
write_log_record_hdl() **

**Status:** accepted
**Milestone:** 5.1.0
**Created:** Thu May 04, 2017 05:54 AM UTC by A V Mahesh (AVM)
**Last Updated:** Thu May 04, 2017 05:54 AM UTC
**Owner:** A V Mahesh (AVM)


Unlock is being called twice before waiting hence LOGD crashes.

This because of write_log_record_hdl() is being returned with out
osaf_mutex_lock_ordie(_ftcom_mutex);


=

int write_log_record_hdl(void *indata, void *outdata, size_t max_outsize, bool 
*timeout_f) {
  int rc = 0;
  uint32_t bytes_written = 0;
  off_t file_length = 0;
  wlrh_t *params_in = static_cast(indata);
  /* Get log record pointed by lgs_rec pointer */
  char *logrecord = const_cast(static_cast(params_in->lgs_rec));
  int *errno_out_p = static_cast(outdata);
  *errno_out_p = 0;
 
  TRACE_ENTER();
 
  osaf_mutex_unlock_ordie(_ftcom_mutex); /* UNLOCK  Critical section */
 
retry:
  rc = write(params_in->fd, [bytes_written],
 params_in->record_size - bytes_written);
  if (rc == -1) {
if (errno == EINTR)
  goto retry; 
 
LOG_ER("%s - write FAILED: %s",__FUNCTION__, strerror(errno));
*errno_out_p = errno;
goto done;  
<---
  } else {
/* Handle partial writes */
bytes_written += rc;
if (bytes_written < params_in->record_size)
  goto retry;
  }
  osaf_mutex_lock_ordie(_ftcom_mutex);
  
=


---

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] #2452 log: mutex lock missing in error cases of write_log_record_hdl()

2017-05-03 Thread A V Mahesh (AVM)



---

** [tickets:#2452] log: mutex lock missing in error cases of 
write_log_record_hdl() **

**Status:** assigned
**Milestone:** 5.1.0
**Created:** Thu May 04, 2017 05:54 AM UTC by A V Mahesh (AVM)
**Last Updated:** Thu May 04, 2017 05:54 AM UTC
**Owner:** A V Mahesh (AVM)


Unlock is being called twice before waiting hence LOGD crashes.

This because of write_log_record_hdl() is being returned with out
osaf_mutex_lock_ordie(_ftcom_mutex);


=

int write_log_record_hdl(void *indata, void *outdata, size_t max_outsize, bool 
*timeout_f) {
  int rc = 0;
  uint32_t bytes_written = 0;
  off_t file_length = 0;
  wlrh_t *params_in = static_cast(indata);
  /* Get log record pointed by lgs_rec pointer */
  char *logrecord = const_cast(static_cast(params_in->lgs_rec));
  int *errno_out_p = static_cast(outdata);
  *errno_out_p = 0;
 
  TRACE_ENTER();
 
  osaf_mutex_unlock_ordie(_ftcom_mutex); /* UNLOCK  Critical section */
 
retry:
  rc = write(params_in->fd, [bytes_written],
 params_in->record_size - bytes_written);
  if (rc == -1) {
if (errno == EINTR)
  goto retry; 
 
LOG_ER("%s - write FAILED: %s",__FUNCTION__, strerror(errno));
*errno_out_p = errno;
goto done;  
<---
  } else {
/* Handle partial writes */
bytes_written += rc;
if (bytes_written < params_in->record_size)
  goto retry;
  }
  osaf_mutex_lock_ordie(_ftcom_mutex);
  
=


---

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] #2415 CKPT node director failed to execute ckpt create request

2017-04-06 Thread A V Mahesh (AVM)
- **Milestone**: 5.2.0 --> next



---

** [tickets:#2415] CKPT node director failed to execute ckpt create request**

**Status:** assigned
**Milestone:** next
**Created:** Fri Apr 07, 2017 01:30 AM UTC by David Byrne
**Last Updated:** Fri Apr 07, 2017 03:54 AM UTC
**Owner:** A V Mahesh (AVM)


After the following two patches were removed, based on OpenSAF CS8701, CKPT 
node director failed to execute ckpt create request(Collocated Checkpoints, 
Asynchronous Update).
-ph4_01_headless_escalation_for_osaftest.diff
-mds_log_level.diff

CPND_MAX_REPLICAS =1000
retention_time is set to 30s

Test procedure
1. Send 34 ckpt request per second
34*30 = 1020 which is > CPND_MAX_REPLICAS
Failed which is expected
2. Send 32 ckpt request per second
32*30 = 960 which is < CPND_MAX_REPLICAS
It used to pass, but now failed since removing the above two patches.
syslog:
Apr  5 01:42:46 SC-2-1 osafckptnd[4958]: ncs_sel_obj_create: socketpair failed 
- Too many open files
Apr  5 01:42:46 SC-2-1 osafckptnd[4958]: ER cpnd has exceeded the maximum 
number of allowed replicas (CPND_MAX_REPLICAS)
Test debug info:
Apr 5, 2017 1:46:08 AM INFO ANSWER type: report 
start-time: 1491349366.360 
stop-time: 1491349567.269 
total: send=6428 recv=6407 fail=6407

Change test procedure for investigation purpose
1. Start test from 32 ckpt/s
32*30 = 960 which is  < CPND_MAX_REPLICAS
Passed
Apr 6, 2017 2:56:27 AM INFO ANSWER type: report 
start-time: 1491439975.068 
stop-time: 1491440187.347 
total: send=6792 send-failed=0 recv=6780  
2. then test 34 ckpt/s
Failed
3. Then test 33 ckpt/s
Failed
4. Then back to 32 ckpt/s again
Failed

From this experiment, we can see that once exceed the CPND_MAX_REPLICAS, ckpt 
service can’t be recovered. 
Note: the problem only occurs for Collocated Checkpoints, Asynchronous Update. 
Run the same test for Non-Collocated Checkpoints, Synchronous Update, it is OK.

Test Contact: Li Suo


---

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] #2395 CKPT: Performance degradation ~100% (Time taken is almost double than previous)

2017-04-06 Thread A V Mahesh (AVM)
On 4/6/2017 5:29 PM, Chani Srivastava wrote:
> With this patch the performance figures shows great improvement then before 
> and the results are > >comparable to 5.1 results


Thanks for the testing. 

This patch provides the option of rollback  way to configure CKPT to get the 
old behavior as 5.1
so statistics will match 5.1


---

** [tickets:#2395] CKPT: Performance degradation ~100% (Time taken is almost 
double than previous)**

**Status:** review
**Milestone:** 5.2.0
**Created:** Thu Mar 23, 2017 10:26 AM UTC by Chani Srivastava
**Last Updated:** Thu Apr 06, 2017 11:26 AM UTC
**Owner:** A V Mahesh (AVM)


Environment details

OS : Suse 11, 64bit Physical machine 
Changeset : 8634 ( 5.2.FC)
Setup : 4 nodes

There is considerable degradation in CKPT performance in 5.2 when compared to 
5.1. The times are calculated just before api and after api for which time 
difference is calculated.

-> For write operations, checkpoint write api is taking 2x the time taken in 
earlier release 5.1. Issue is observed in both synchronous and asynchronous 
mode.
( synchronous -- Checkpoint create flags used : SA_CKPT_WR_ALL_REPLICAS
asynchronous -- Checkpoint create flag used : SA_CKPT_WR_ACTIVE_REPLICA | 
SA_CKPT_CHECKPOINT_COLLOCATED ) Both local and remote replica

-> For section create operations in asynchronous mode for local replica, 
checkpoint section create api is taking more than 70% the earlier value in 5.1

-> For read operations in asynchronous mode for local replica, checkpoint read 
api is taking twice the time than in earlier value in 5.1

Please check the tickets pushed as part of 4.7 to 5.0, for which API 
performance got affected.



---

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] #2395 CKPT: Performance degradation ~100% (Time taken is almost double than previous)

2017-04-05 Thread A V Mahesh (AVM)
 I did verify  performance degrade is not because of  feature [#2202] 
<https://sourceforge.net/p/opensaf/tickets/2202/>.
 The statistics  WITH #[#2202]  feature  enable and disabled  the %  of degrade 
is ignoreable.

 As if  #[#2202]  is NOT the major root cause  of performance degrade , so for 
now we don't required any /Immediate changes on top of #[#2202]

Irrelevant of this #[#2202] feature  still we do see 70% to 100% performance 
degrade in observed
this could be because of some other changes like `cpnd: use shared memory based 
on ckpt name length [#2108] `
 where the SHM change are related to  support longDN,  currently I am in the 
process of isolating the change which are causing
 the performance degrade, will update as soon as possible.


 -AVM 


---

** [tickets:#2395] CKPT: Performance degradation ~100% (Time taken is almost 
double than previous)**

**Status:** assigned
**Milestone:** 5.2.0
**Created:** Thu Mar 23, 2017 10:26 AM UTC by Chani Srivastava
**Last Updated:** Thu Apr 06, 2017 03:11 AM UTC
**Owner:** A V Mahesh (AVM)


Environment details

OS : Suse 11, 64bit Physical machine 
Changeset : 8634 ( 5.2.FC)
Setup : 4 nodes

There is considerable degradation in CKPT performance in 5.2 when compared to 
5.1. The times are calculated just before api and after api for which time 
difference is calculated.

-> For write operations, checkpoint write api is taking 2x the time taken in 
earlier release 5.1. Issue is observed in both synchronous and asynchronous 
mode.
( synchronous -- Checkpoint create flags used : SA_CKPT_WR_ALL_REPLICAS
asynchronous -- Checkpoint create flag used : SA_CKPT_WR_ACTIVE_REPLICA | 
SA_CKPT_CHECKPOINT_COLLOCATED ) Both local and remote replica

-> For section create operations in asynchronous mode for local replica, 
checkpoint section create api is taking more than 70% the earlier value in 5.1

-> For read operations in asynchronous mode for local replica, checkpoint read 
api is taking twice the time than in earlier value in 5.1

Please check the tickets pushed as part of 4.7 to 5.0, for which API 
performance got affected.



---

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] #2395 CKPT: Performance degradation ~100% (Time taken is almost double than previous)

2017-04-05 Thread A V Mahesh (AVM)
I did verify  performance degrade is not because of  feature  #2395.
The statistics  WITH #2395 feature  enable and disabled  the %  of degrade is 
ignoreable.

Irrelevant of this #2395 feature  still we do see 70% to 100% performance 
degrade in observed
this could be because of some other changes like `cpnd: use shared memory based 
on ckpt name length [#2108]` where the SHM change are related to  support 
longDN,  currently I am in the process of isolating the change which are 
causing the performance degrade, will update as soon as possible.


---

** [tickets:#2395] CKPT: Performance degradation ~100% (Time taken is almost 
double than previous)**

**Status:** assigned
**Milestone:** 5.2.0
**Created:** Thu Mar 23, 2017 10:26 AM UTC by Chani Srivastava
**Last Updated:** Wed Apr 05, 2017 02:53 PM UTC
**Owner:** A V Mahesh (AVM)


Environment details

OS : Suse 11, 64bit Physical machine 
Changeset : 8634 ( 5.2.FC)
Setup : 4 nodes

There is considerable degradation in CKPT performance in 5.2 when compared to 
5.1. The times are calculated just before api and after api for which time 
difference is calculated.

-> For write operations, checkpoint write api is taking 2x the time taken in 
earlier release 5.1. Issue is observed in both synchronous and asynchronous 
mode.
( synchronous -- Checkpoint create flags used : SA_CKPT_WR_ALL_REPLICAS
asynchronous -- Checkpoint create flag used : SA_CKPT_WR_ACTIVE_REPLICA | 
SA_CKPT_CHECKPOINT_COLLOCATED ) Both local and remote replica

-> For section create operations in asynchronous mode for local replica, 
checkpoint section create api is taking more than 70% the earlier value in 5.1

-> For read operations in asynchronous mode for local replica, checkpoint read 
api is taking twice the time than in earlier value in 5.1

Please check the tickets pushed as part of 4.7 to 5.0, for which API 
performance got affected.



---

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] #2342 smf: Fix all Cppcheck 1.77 issues

2017-04-03 Thread A V Mahesh (AVM)
- **status**: review --> fixed
- **Comment**:

changeset:   8746:5faed4a4016a
tag: tip
user:A V Mahesh <mahesh.va...@oracle.com>
date:Mon Apr 03 15:23:01 2017 +0530
summary: smf: Fix all Cppcheck 1.77 issues [#2342]



---

** [tickets:#2342] smf: Fix all Cppcheck 1.77 issues**

**Status:** fixed
**Milestone:** 5.2.RC2
**Created:** Fri Mar 03, 2017 06:46 AM UTC by A V Mahesh (AVM)
**Last Updated:** Thu Mar 16, 2017 12:42 PM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/smf/smfd/SmfCampState.cc:950]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:973]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:2015]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:503]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:510]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:528]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:534]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:544]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:551]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:565]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:594]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:598]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:608]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:622]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:633]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:665]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:679]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:709]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:788]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:845]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1187]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1200]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1817]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1896]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:733]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1049]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1081]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1099]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:77]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:88]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:99]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:107]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:115]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:238]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:263]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:284]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:305]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:358]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignThread.cc:262]: (style) Suspicious condition 
(a

[tickets] [opensaf:tickets] #2341 amf: Fix all Cppcheck 1.77 issues

2017-03-30 Thread A V Mahesh (AVM)
- **status**: review --> fixed
- **Comment**:

changeset:   8741:6074700484d8
user:A V Mahesh <mahesh.va...@oracle.com>
date:Thu Mar 30 16:07:57 2017 +0530
summary: amfd: Fix all Cppcheck 1.77 issues [#2341] 
 
changeset:   8742:e19e234cd284
user:A V Mahesh <mahesh.va...@oracle.com>
date:Thu Mar 30 16:08:26 2017 +0530
summary: amfnd: Fix all Cppcheck 1.77 issues [#2341]
 
changeset:   8743:327dfc1c4e2b
tag: tip
user:A V Mahesh <mahesh.va...@oracle.com>
date:Thu Mar 30 16:08:51 2017 +0530
summary: amfa: Fix all Cppcheck 1.77 issues [#2341]



---

** [tickets:#2341] amf:  Fix all Cppcheck 1.77 issues**

**Status:** fixed
**Milestone:** 5.2.RC2
**Created:** Fri Mar 03, 2017 06:40 AM UTC by A V Mahesh (AVM)
**Last Updated:** Wed Mar 08, 2017 12:08 PM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/amf/agent/ava_hdl.cc:59] -> [staging/src/amf/agent/ava_hdl.cc:67]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/amf/agent/ava_hdl.cc:420]: (style) The scope of the variable 'rec' 
can be reduced.
[staging/src/amf/agent/ava_hdl.cc:592]: (style) The scope of the variable 'i' 
can be reduced.
[staging/src/amf/agent/ava_mds.cc:86] -> [staging/src/amf/agent/ava_mds.cc:90]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/amf/agent/ava_mds.cc:149] -> 
[staging/src/amf/agent/ava_mds.cc:158]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[staging/src/amf/agent/ava_mds.cc:1020] -> 
[staging/src/amf/agent/ava_mds.cc:1028]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[staging/src/amf/agent/ava_mds.cc:1103] -> 
[staging/src/amf/agent/ava_mds.cc:1107]: (style) Variable 'msg' is reassigned a 
value before the old one has been used.
[staging/src/amf/agent/ava_op.cc:221] -> [staging/src/amf/agent/ava_op.cc:222]: 
(style) Variable 'osaf_cbk.saAmfContainedComponentInstantiateCallback' is 
reassigned a value before the old one has been used.
[staging/src/amf/agent/ava_op.cc:240] -> [staging/src/amf/agent/ava_op.cc:241]: 
(style) Variable 'osaf_cbk.saAmfContainedComponentInstantiateCallback' is 
reassigned a value before the old one has been used.
[staging/src/amf/agent/ava_op.cc:241] -> [staging/src/amf/agent/ava_op.cc:242]: 
(style) Variable 'osaf_cbk.saAmfContainedComponentInstantiateCallback' is 
reassigned a value before the old one has been used.
[staging/src/amf/agent/ava_op.cc:120]: (style) The scope of the variable 'cb' 
can be reduced.
[staging/src/amf/amfd/app.cc:285]: (style) The scope of the variable 'i' can be 
reduced.
[staging/src/amf/amfd/apptype.cc:137]: (style) Condition 'rc!=0' is always false
[staging/src/amf/amfd/apptype.cc:69]: (style) The scope of the variable 
'sg_type' can be reduced.
[staging/src/amf/amfd/chkop.cc:1297] -> [staging/src/amf/amfd/chkop.cc:1302]: 
(style) Variable 'uba' is reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:374] -> 
[staging/src/amf/amfd/ckpt_dec.cc:382]: (style) Variable 'status' is reassigned 
a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:573] -> 
[staging/src/amf/amfd/ckpt_dec.cc:577]: (style) Variable 'status' is reassigned 
a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:1109]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_edu.cc:51] -> [staging/src/amf/amfd/ckpt_edu.cc:56]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:2281] -> 
[staging/src/amf/amfd/ckpt_enc.cc:2288]: (style) Variable 'status' is 
reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:2314] -> 
[staging/src/amf/amfd/ckpt_enc.cc:2322]: (style) Variable 'status' is 
reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:1951]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:1982]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2015]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2044]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2076]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2111]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2151]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2176]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2216]: (performance) Prefer prefix ++/-- 
operators 

[tickets] [opensaf:tickets] #2395 CKPT: Performance degradation upto 200%

2017-03-27 Thread A V Mahesh (AVM)
Performance degrade  of cpsv  expected because of  #2202  , we agreed to have 
performance degrade in default configuration to address #2202 , if  user what 
to natural performance OSAF_CKPT_SHM_ALLOC_GUARANTEE is set to true cpsv give 
natural performance. 


==

[devel] [PATCH 1 of 3] leap : now leap library ensure shm availability before 
writing [#2202]



On 11/29/2016 4:07 PM, mahesh.va...@oracle.com wrote:
> Issue :
>
> If OSAF_CKPT_SHM_ALLOC_GUARANTEE is NOT set and  SHM is 100% used in system ,
> pnd Segmentation fault (core dumped) at LEAP memcpy().
>
> Fix :
>
> Now LEAP library ensures  shm free space before writing
> This may degrade some performance of cpsv , if  OSAF_CKPT_SHM_ALLOC_GUARANTEE 
>   is set,
> cpsv give natural performance.

==


---

** [tickets:#2395] CKPT: Performance degradation upto 200%**

**Status:** unassigned
**Milestone:** 5.2.RC2
**Created:** Thu Mar 23, 2017 10:26 AM UTC by Chani Srivastava
**Last Updated:** Mon Mar 27, 2017 06:21 AM UTC
**Owner:** nobody


Environment details

OS : Suse 11, 64bit Physical machine 
Changeset : 8634 ( 5.2.FC)
Setup : 4 nodes

There is considerable degradation in CKPT performance in 5.2 when compared to 
5.1. The times are calculated just before api and after api for which time 
difference is calculated.

-> For write operations, checkpoint write api is taking 2x the time taken in 
earlier release 5.1. Issue is observed in both synchronous and asynchronous 
mode.
( synchronous -- Checkpoint create flags used : SA_CKPT_WR_ALL_REPLICAS
asynchronous -- Checkpoint create flag used : SA_CKPT_WR_ACTIVE_REPLICA | 
SA_CKPT_CHECKPOINT_COLLOCATED ) Both local and remote replica

-> For section create operations in asynchronous mode for local replica, 
checkpoint section create api is taking more than 70% the earlier value in 5.1

-> For read operations in asynchronous mode for local replica, checkpoint read 
api is taking twice the time than in earlier value in 5.1

Please check the tickets pushed as part of 4.7 to 5.0, for which API 
performance got affected.



---

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] #2395 CKPT: Performance degradation upto 200%

2017-03-27 Thread A V Mahesh (AVM)
- **status**: unassigned --> assigned
- **assigned_to**: A V Mahesh (AVM)



---

** [tickets:#2395] CKPT: Performance degradation upto 200%**

**Status:** assigned
**Milestone:** 5.2.RC2
**Created:** Thu Mar 23, 2017 10:26 AM UTC by Chani Srivastava
**Last Updated:** Mon Mar 27, 2017 07:04 AM UTC
**Owner:** A V Mahesh (AVM)


Environment details

OS : Suse 11, 64bit Physical machine 
Changeset : 8634 ( 5.2.FC)
Setup : 4 nodes

There is considerable degradation in CKPT performance in 5.2 when compared to 
5.1. The times are calculated just before api and after api for which time 
difference is calculated.

-> For write operations, checkpoint write api is taking 2x the time taken in 
earlier release 5.1. Issue is observed in both synchronous and asynchronous 
mode.
( synchronous -- Checkpoint create flags used : SA_CKPT_WR_ALL_REPLICAS
asynchronous -- Checkpoint create flag used : SA_CKPT_WR_ACTIVE_REPLICA | 
SA_CKPT_CHECKPOINT_COLLOCATED ) Both local and remote replica

-> For section create operations in asynchronous mode for local replica, 
checkpoint section create api is taking more than 70% the earlier value in 5.1

-> For read operations in asynchronous mode for local replica, checkpoint read 
api is taking twice the time than in earlier value in 5.1

Please check the tickets pushed as part of 4.7 to 5.0, for which API 
performance got affected.



---

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] #2360 mdstest 14 4 failed

2017-03-26 Thread A V Mahesh (AVM)
- **status**: accepted --> not-reproducible



---

** [tickets:#2360] mdstest 14 4 failed**

**Status:** not-reproducible
**Milestone:** 5.2.RC2
**Created:** Fri Mar 10, 2017 02:31 AM UTC by Quyen Dao
**Last Updated:** Thu Mar 23, 2017 08:57 AM UTC
**Owner:** A V Mahesh (AVM)


changset: 8521:05a15c96f745

mdstest 14 4 failed and coredump was also generated.

**mdstest output**

(Suite 14): Direct send a message with i_msg_fmt_ver < i_rem_svc_pvt_ver for 
all send types
Command: 'mdstest 14 4'
rc: 139 - output:
Suite 14: Direct Send All test cases
/ntet_initialise_setup: Get an ADEST handle,Create PWE=2 on ADEST,Install 
EXTMIN and INTMIN svc on ADEST,Install INTMIN,EXTMIN services on ADEST's PWE=2,
Create VDEST 100 and VDEST 200,Change the role of VDEST 200 to ACTIVE,
Install EXTMIN service on VDEST 100,Install INTMIN, EXTMIN services on VDEST 200

ADEST <2010f0578 > : GET_HDLS is SUCCESSFUL
100 : VDEST_CREATE is SUCCESSFUL
200 : VDEST_CREATE is SUCCESSFUL
VDEST_CHANGE ROLE to 1 is SUCCESSFULL
PWE_CREATE is SUCCESSFUL : PWE = 2
256 : SERVICE INSTALL is SUCCESSFULL
512 : SERVICE INSTALL is SUCCESSFULL
256 : SERVICE INSTALL is SUCCESSFULL
512 : SERVICE INSTALL is SUCCESSFULL
512 : SERVICE INSTALL is SUCCESSFULL
256 : SERVICE INSTALL is SUCCESSFULL
512 : SERVICE INSTALL is SUCCESSFULL
MDS SERVICE SUBSCRIBE is SUCCESSFULL
MDS RETRIEVE is SUCCESSFULL
Test Case 4: Direct send a message with i_msg_fmt_ver < i_rem_svc_pvt_ver for 
all send types

Direct sending the message

Request to ncsmds_api: MDS DIRECT SEND is SUCCESSFULL
Success

Direct send with ack

Request to ncsmds_api: MDS DIRECT SEND is SUCCESSFULL
Success

Direct send with rsp

Task has been Created

Inside Receiver Thread

Direct Receive callback
The Sender service is = 512 is on <2010f0578> destination with anchor = 
<2010f0578> on Node = 2010f with msg fmt ver=2

The Receiver service is = 512 is on <2010f0578> destination

Received Message len = 15 and the message is=Direct Message

Direct Receive callback
The Sender service is = 512 is on <2010f0578> destination with anchor = 
<2010f0578> on Node = 2010f with msg fmt ver=2

The Receiver service is = 512 is on <2010f0578> destination

Received Message len = 15 and the message is=Direct Message

MDS RETRIEVE is SUCCESSFULL

**Full stacktrace**
2017-02-28 00:19:46,582 INFO - Printing stack trace of 
core.1488237250.mdstest.1400.SC-1 which occurs on 2017-02-28 00:14:10 - OpenSAF 
5.2.M0 - 8521:05a15c96f745:default
2017-02-28 00:19:46,617 DEBUG - exec cmd 'ls /usr/local/lib/opensaf/mdstest' on 
SC-1
2017-02-28 00:19:46,617 DEBUG - SC-1: command: timeout 180 ssh 
-oStrictHostKeyChecking=no -oLogLevel=quiet -l root 10.0.3.101 'ls 
/usr/local/lib/opensaf/mdstest'
2017-02-28 00:19:46,721 DEBUG - SC-1: output: ls: cannot access 
/usr/local/lib/opensaf/mdstest: No such file or directory
2017-02-28 00:19:46,722 DEBUG - exec cmd 'ls /usr/local/bin/mdstest' on SC-1
2017-02-28 00:19:46,722 DEBUG - SC-1: command: timeout 180 ssh 
-oStrictHostKeyChecking=no -oLogLevel=quiet -l root 10.0.3.101 'ls 
/usr/local/bin/mdstest'
2017-02-28 00:19:46,813 DEBUG - SC-1: output: /usr/local/bin/mdstest

2017-02-28 00:19:47,324 INFO - Stack trace of core.1488237250.mdstest.1400.SC-1
[New LWP 1400]
[New LWP 1403]
[New LWP 1402]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `mdstest 14 4'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __GI___libc_free (mem=0x2) at malloc.c:2929

Thread 3 (Thread 0x7f09902dcb00 (LWP 1402)):
#0 0x7f098f89cfdd in poll () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1 0x7f098fdf342f in osaf_poll_no_timeout (io_fds=0x7f09902dc290, i_nfds=1) 
at src/base/osaf_poll.c:32
result = 32521
#2 0x7f098fdf35dc in osaf_ppoll (io_fds=0x7f09902dc290, i_nfds=1, 
i_timeout_ts=0x0, i_sigmask=0x0) at src/base/osaf_poll.c:79
millisecond_round_up = {tv_sec = 0, tv_nsec = 99}
max_possible_timeout = {tv_sec = 2147483, tv_nsec = 64700}
start_time = {tv_sec = 17179869186, tv_nsec = 139679050353408}
time_left_ts = {tv_sec = 1, tv_nsec = 1}
result = -1881212185
#3 0x7f098fe03e72 in ncs_tmr_wait () at src/base/sysf_tmr.c:406
rc = 1
inds_rmvd = 1
next_delay = 0
tv = {tv_sec = 16777215, tv_usec = 0}
ts_current = {tv_sec = 1690320, tv_nsec = 555370206}
ts = {tv_sec = 16777215, tv_nsec = 0}
set = {fd = 4, events = 1, revents = 0}
#4 0x7f098fb7d184 in start_thread (arg=0x7f09902dcb00) at 
pthread_create.c:312
__res = 
pd = 0x7f09902dcb00
now = 
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139679050353408, 
3247344970407365903, 1, 1, 139679050354112, 139679050353408, 
-3241532557782135537, -3241469800302359281}, mask_was_saved = 0}}, priv = {pad 
= {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 
pagesize_m1 = 
sp = 
freesize = 
__PRETTY_FUNCTION__ = &q

[tickets] [opensaf:tickets] #2177 MDS: mdstest 10 1 failed

2017-03-26 Thread A V Mahesh (AVM)
- **status**: accepted --> not-reproducible



---

** [tickets:#2177] MDS: mdstest 10 1 failed**

**Status:** not-reproducible
**Milestone:** 5.2.RC2
**Created:** Tue Nov 08, 2016 06:48 AM UTC by Quyen Dao
**Last Updated:** Thu Mar 23, 2017 08:54 AM UTC
**Owner:** A V Mahesh (AVM)
**Attachments:**

- 
[mdstest_10_1_mds.log](https://sourceforge.net/p/opensaf/tickets/2177/attachment/mdstest_10_1_mds.log)
 (121.2 kB; application/octet-stream)


Changeset: 8287:bcc7af78a5a7
OS: Ubuntu 16.04
MDS transport: TCP

root@SC-1:~# export MDS_LOG_LEVEL=5
root@SC-1:~# mdstest 10 1

Suite 10: Send All test cases

Test Case 1: Sender service installed with i_fail_no_active_sends = true and 
there is no-active instance of the receiver service
Setting up the setup
/ntet_initialise_setup: Get an ADEST handle,Create PWE=2 on ADEST,Install 
EXTMIN and INTMIN svc on ADEST,Install INTMIN,EXTMIN services on ADEST's PWE=2,
Create VDEST 100 and VDEST 200,Change the role of VDEST 200 to ACTIVE,
Install EXTMIN  service on VDEST 100,Install INTMIN, EXTMIN services on 
VDEST 200

ADEST <2010f020a > : GET_HDLS is SUCCESSFUL
 100 : VDEST_CREATE is SUCCESSFUL
 200 : VDEST_CREATE is SUCCESSFUL
VDEST_CHANGE ROLE to 1 is SUCCESSFULL
PWE_CREATE is SUCCESSFUL : PWE = 2
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 MDS SERVICE SUBSCRIBE is SUCCESSFULL
VDEST_CHANGE ROLE to 2 is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL Sending the message to no active instance
Encoding the message sent Sender svc = 512 with msg fmt ver =0
Successfully encoded message for Receiver svc = 512

MDS SEND is SUCCESSFULL

Fail

Sendack to the no active instance

MDS SEND ACK has failed as there is no active instance

Success

Send response to the no active instance

Request to ncsmds_api: MDS SEND RESPONSE has no active instance

Change role to active

VDEST_CHANGE ROLE to 1 is SUCCESSFULL
The Subscriber Service id = 512 is on ADEST
UP: Subscribed Svc = 512 with svc pvt ver = 1 is UP on dest=  anchor= <0> 
role= 1 with PWE id = 1 on node = 2010f

The Subscriber Service id = 512 is on ADEST
UP: Subscribed Svc = 512 with svc pvt ver = 3 is UP on dest= <2010f020a> 
anchor= <0> role= 1 with PWE id = 1 on node = 2010f

The Subscriber Service id = 512 is on ADEST
NO ACTIVE: Received NO ACTIVE Event
 In the system no active instance of Subscribed srv= 512 with svc pvt ver = 1 
on dest=  found

The Subscriber Service id = 512 is on ADEST
NEW ACTIVE: Received NEW_ACTIVE Event
 In the system atleast one active instance of Subscribed service = 512 with svc 
pvt ver = 1  on destinatin =  found

 MDS RETRIEVE is SUCCESSFULL
Task has been Created

Inside Receiver Thread

The service which is sending the message is = 512
The service to which the message needs to be delivered = 512
 Got the message: trying to retreive it

The Sender service = 512 is on destination = with anchor = <2010f020a> 
Node 2010f and msg fmt ver = 3
The Receiver service = 512 is on destination =<2010f020a>

Received Message len = 30
The message is= Hi Receiver! Are you there?
 MDS RETRIEVE is SUCCESSFULL
VDEST_CHANGE ROLE to 2 is SUCCESSFULL
The service which is sending the message is = 512
The service to which the message needs to be delivered = 512
 MDS RESPONSE is SUCCESSFULL

 MDS SEND RESPONSE is SUCCESSFULL
The response got from the receiver is :
 message length = 33
 message =  Hi Sender! My Name is RECEIVER
Success

TASK is released

 MDS CANCEL SUBSCRIBE is SUCCESSFULLUninstalling the services on both 
VDESTs and ADEST

 UnInstalling the Services on both the VDESTs

 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 256 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
Destroying the VDESTS
Destroying both the VDESTs and PWE=2 on ADEST

VDEST_CHANGE ROLE to 2 is SUCCESSFULL
 200 : VDEST_DESTROY is SUCCESSFULL
VDEST_CHANGE ROLE to 2 is SUCCESSFULL
 100 : VDEST_DESTROY is SUCCESSFULL
The Subscriber Service id = 512 is on ADEST
NO ACTIVE: Received NO ACTIVE Event
 In the system no active instance of Subscribed srv= 512 with svc pvt ver = 1 
on dest=  found

 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 256 : SERVICE UNINSTALL is SUCCESSFULL
 ADEST : PWE 2 : Uninstalling Services 2000/INTMIN

 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 256 : SERVICE UNINSTALL is SUCCESSFULL
ADEST PWE2 Destroyed

ADEST: PWE_DESTROY is SUCCESSFUL1  FAILED   Sender service installed with 
i_fail_no_active_sends = true and there is no-active instance of the receiver 
service (

[tickets] [opensaf:tickets] #2174 MDS: mdstest 5 1 failed

2017-03-26 Thread A V Mahesh (AVM)
- **status**: accepted --> not-reproducible



---

** [tickets:#2174] MDS: mdstest 5 1 failed**

**Status:** not-reproducible
**Milestone:** 5.2.RC2
**Created:** Tue Nov 08, 2016 06:29 AM UTC by Quyen Dao
**Last Updated:** Thu Mar 23, 2017 08:47 AM UTC
**Owner:** A V Mahesh (AVM)
**Attachments:**

- 
[mdstest_5_1_mds.log](https://sourceforge.net/p/opensaf/tickets/2174/attachment/mdstest_5_1_mds.log)
 (29.2 kB; application/octet-stream)


Changeset: 8287:bcc7af78a5a7
OS: Ubuntu 16.04
MDS transport: TCP

root@SC-1:~# export MDS_LOG_LEVEL=5
root@SC-1:~# mdstest 5 1

Suite 5: Subscribe ADEST
Test Case 1: 500 Subscription to:600,700 where Install scope = Subscription 
scope

Getting an ADEST handle

ADEST <2010f01f3 > : GET_HDLS is SUCCESSFUL
Installing the services 500,600,700 with CHASSIS scope

 500 : SERVICE INSTALL is SUCCESSFULL
 600 : SERVICE INSTALL is SUCCESSFULL
 700 : SERVICE INSTALL is SUCCESSFULL
Action: Retrieve only ONE event

 MDS SERVICE SUBSCRIBE is SUCCESSFULL
Action: Retrieve only ONE event

Request to ncsmds_api: MDS RETRIEVE has FAILED
Fail, retrieve ONE

Action: Retrieve ALL event

The Subscriber Service id = 500 is on ADEST
UP: Subscribed Svc = 600 with svc pvt ver = 1 is UP on dest= <2010f01f3> 
anchor= <0> role= 1 with PWE id = 1 on node = 2010f

The Subscriber Service id = 500 is on ADEST
UP: Subscribed Svc = 700 with svc pvt ver = 1 is UP on dest= <2010f01f3> 
anchor= <0> role= 1 with PWE id = 1 on node = 2010f

 MDS RETRIEVE is SUCCESSFULL
Success

Action: Cancel subscription 500

 MDS CANCEL SUBSCRIBE is SUCCESSFULL
Success

Uninstalling all the services on this ADESt

 700 : SERVICE UNINSTALL is SUCCESSFULL
 600 : SERVICE UNINSTALL is SUCCESSFULL
 500 : SERVICE UNINSTALL is SUCCESSFULL1  FAILEDIn the NO_ACTIVE event 
notification, the remote service subpart version is set to the last active 
instance.s remote-service sub-part version (expected OUT_OF_RANGE, got 
SA_AIS_OK (1));

=

   Test Result:
  Total:  1
  Passed: 0
  Failed: 1
root@SC-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


[tickets] [opensaf:tickets] #2176 MDS: mdstest 5 9 failed

2017-03-26 Thread A V Mahesh (AVM)
- **status**: accepted --> not-reproducible



---

** [tickets:#2176] MDS: mdstest 5 9 failed**

**Status:** not-reproducible
**Milestone:** 5.2.RC2
**Created:** Tue Nov 08, 2016 06:38 AM UTC by Quyen Dao
**Last Updated:** Thu Mar 23, 2017 08:49 AM UTC
**Owner:** A V Mahesh (AVM)
**Attachments:**

- 
[mdstest_5_9_mds.log](https://sourceforge.net/p/opensaf/tickets/2176/attachment/mdstest_5_9_mds.log)
 (29.8 kB; application/octet-stream)


Changeset: 8287:bcc7af78a5a7
OS: Ubuntu 16.04
MDS transport: TCP

root@SC-1:~# export MDS_LOG_LEVEL=5
root@SC-1:~# mdstest 5 9

Suite 5: Subscribe ADEST

Getting an ADEST handle

ADEST <2010f0205 > : GET_HDLS is SUCCESSFUL
Installing the services 500,600,700 with CHASSIS scope

 500 : SERVICE INSTALL is SUCCESSFULL
 600 : SERVICE INSTALL is SUCCESSFULL
 700 : SERVICE INSTALL is SUCCESSFULL
Test Case 9: 500 Subscription to:600,700 in two seperate Subscription calls but 
Cancels both in a single cancellation call

Action: Subscribe 500 to 600

 MDS SERVICE SUBSCRIBE is SUCCESSFULL
Action: Subscribe 500 to 700

 MDS SERVICE SUBSCRIBE is SUCCESSFULL
Action: Retreive three times, third shall fail

Request to ncsmds_api: MDS RETRIEVE has FAILED

Fail mds_service_retrieve

Request to ncsmds_api: MDS RETRIEVE has FAILED

Fail mds_service_retrieve

Request to ncsmds_api: MDS RETRIEVE has FAILED

Action: Cancel subscription

 MDS CANCEL SUBSCRIBE is SUCCESSFULL
Success

Uninstalling all the services on this ADESt

 700 : SERVICE UNINSTALL is SUCCESSFULL
 600 : SERVICE UNINSTALL is SUCCESSFULL
 500 : SERVICE UNINSTALL is SUCCESSFULL9  FAILED500 Subscription 
to:600,700 in two seperate Subscription calls but Cancels both in a single 
cancellation call (expected OUT_OF_RANGE, got SA_AIS_OK (1));

=

   Test Result:
  Total:  1
  Passed: 0
  Failed: 1
root@SC-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


[tickets] [opensaf:tickets] #2360 mdstest 14 4 failed

2017-03-23 Thread A V Mahesh (AVM)
- **status**: unassigned --> accepted
- **assigned_to**: A V Mahesh (AVM)
- **Comment**:

Not able to reproduce the problem with & without export MDS_LOG_LEVEL=5
and Starting OpenSAF Services (Using TIPC): &  Starting OpenSAF Services (Using 
TCP):
is their any other configuration i need to do to reproduce the problem ?


SC-1:~ # /usr/bin/mdstest 14 4 
 
Suite 14: Direct Send All test cases
/ntet_initialise_setup: Get an ADEST handle,Create PWE=2 on ADEST,Install 
EXTMIN and INTMIN svc on ADEST,Install INTMIN,EXTMIN services on ADEST's PWE=2,
Create VDEST 100 and VDEST 200,Change the role of VDEST 200 to ACTIVE, 
Install EXTMIN  service on VDEST 100,Install INTMIN, EXTMIN services on 
VDEST 200 
 
ADEST <2010f2be3 > : GET_HDLS is SUCCESSFUL
 100 : VDEST_CREATE is SUCCESSFUL
 200 : VDEST_CREATE is SUCCESSFUL
VDEST_CHANGE ROLE to 1 is SUCCESSFULL
PWE_CREATE is SUCCESSFUL : PWE = 2
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 MDS SERVICE SUBSCRIBE is SUCCESSFULL
The Subscriber Service id = 512 is on ADEST
UP: Subscribed Svc = 512 with svc pvt ver = 1 is UP on dest=  anchor= <0> 
role= 1 with PWE id = 1 on node = 2010f 
 
The Subscriber Service id = 512 is on ADEST
UP: Subscribed Svc = 512 with svc pvt ver = 3 is UP on dest= <2010f2be3> 
anchor= <0> role= 1 with PWE id = 1 on node = 2010f 
 
 MDS RETRIEVE is SUCCESSFULL
Test Case 4: Direct send a message with i_msg_fmt_ver < i_rem_svc_pvt_ver for 
all send types
 
Direct sending the message
 
Request to ncsmds_api: MDS DIRECT SEND is SUCCESSFULL
Success
 
Direct send with ack
 
Request to ncsmds_api: MDS DIRECT SEND is SUCCESSFULL
Success
 
Direct send with rsp
 
Task has been Created
 
Inside Receiver Thread
 
Direct Receive callback
 The Sender service is = 512 is on <2010f2be3> destination with anchor = 
<2010f2be3> on Node = 2010f with msg fmt ver=2
 
The Receiver service is = 512 is on <2010f2be3> destination
 
Received Message len = 15 and the message is=Direct Message
 
Direct Receive callback
 The Sender service is = 512 is on <2010f2be3> destination with anchor = 
<2010f2be3> on Node = 2010f with msg fmt ver=2
 
The Receiver service is = 512 is on <2010f2be3> destination
 
Received Message len = 15 and the message is=Direct Message
 
Direct Receive callback
 The Sender service is = 512 is on <2010f2be3> destination with anchor = 
<2010f2be3> on Node = 2010f with msg fmt ver=2
 
The Receiver service is = 512 is on <2010f2be3> destination
 
Received Message len = 15 and the message is=Direct Message
 
 MDS RETRIEVE is SUCCESSFULL
Request to ncsmds_api: MDS DIRECT SEND is SUCCESSFULL
The response got from the receiver is :  message length = 13 message = Resp 
Message
Success
 
Request to ncsmds_api: MDS DIRECT RESPONSE is SUCCESSFULLResponse Success
 
TASK is released
 
 Direct send with response ack
 
Task has been Created
 
Inside Receiver Thread
 
Direct Receive callback
 The Sender service is = 512 is on <2010f2be3> destination with anchor = 
<2010f2be3> on Node = 2010f with msg fmt ver=2
 
The Receiver service is = 512 is on <2010f2be3> destination
 
Received Message len = 15 and the message is=Direct Message
 
 MDS RETRIEVE is SUCCESSFULL
Request to ncsmds_api: MDS DIRECT SEND is SUCCESSFULL
The response got from the receiver is :  message length = 13 message = Resp 
Message
Success
 
Request to ncsmds_api: MDS DIRECT RESPONSE is SUCCESSFULLResponse Ack Success
 
TASK is released
Uninstalling the services on both VDESTs and ADEST
 
 UnInstalling the Services on both the VDESTs
 
 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 256 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
Destroying the VDESTS
Destroying both the VDESTs and PWE=2 on ADEST
 
VDEST_CHANGE ROLE to 2 is SUCCESSFULL
 200 : VDEST_DESTROY is SUCCESSFULL
VDEST_CHANGE ROLE to 2 is SUCCESSFULL
 100 : VDEST_DESTROY is SUCCESSFULL
The Subscriber Service id = 512 is on ADEST
NO ACTIVE: Received NO ACTIVE Event
 In the system no active instance of Subscribed srv= 512 with svc pvt ver = 1 
on dest=  found 
 
The Subscriber Service id = 512 is on ADEST
DOWN: Subscribed Svc = 512 with svc pvt ver = 2 is DOWN on dest= <64> anchor= 
<0> role= 2 with PWE id = 1 on node = 0 
 
 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 256 : SERVICE UNINSTALL is SUCCESSFULL
 ADEST : PWE 2 : Uninstalling Services 2000/INTMIN
 

[tickets] [opensaf:tickets] #2177 MDS: mdstest 10 1 failed

2017-03-23 Thread A V Mahesh (AVM)
SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 MDS SERVICE SUBSCRIBE is SUCCESSFULL
VDEST_CHANGE ROLE to 2 is SUCCESSFULL
The Subscriber Service id = 512 is on ADEST
UP: Subscribed Svc = 512 with svc pvt ver = 1 is UP on dest=  anchor= <0> 
role= 1 with PWE id = 1 on node = 2010f 
 
The Subscriber Service id = 512 is on ADEST
UP: Subscribed Svc = 512 with svc pvt ver = 3 is UP on dest= <2010f2acc> 
anchor= <0> role= 1 with PWE id = 1 on node = 2010f 
 
The Subscriber Service id = 512 is on ADEST
NO ACTIVE: Received NO ACTIVE Event
 In the system no active instance of Subscribed srv= 512 with svc pvt ver = 1 
on dest=  found 
 
 MDS RETRIEVE is SUCCESSFULL Sending the message to no active instance
 
MDS SEND  has failed as there is no active instance
 
Success
 
Sendack to the no active instance
 
MDS SEND ACK has failed as there is no active instance
 
Success
 
Send response to the no active instance
 
Request to ncsmds_api: MDS SEND RESPONSE has no active instance
 
Change role to active
 
VDEST_CHANGE ROLE to 1 is SUCCESSFULL
The Subscriber Service id = 512 is on ADEST
NEW ACTIVE: Received NEW_ACTIVE Event
 In the system atleast one active instance of Subscribed service = 512 with svc 
pvt ver = 1  on destinatin =  found 
 
 MDS RETRIEVE is SUCCESSFULL
Task has been Created
 
The service which is sending the message is = 512
The service to which the message needs to be delivered = 512
Inside Receiver Thread
 
 Got the message: trying to retreive it
 
The Sender service = 512 is on destination = with anchor = <2010f2acc> 
Node 2010f and msg fmt ver = 3
The Receiver service = 512 is on destination =<2010f2acc> 
 
Received Message len = 30 
The message is= Hi Receiver! Are you there? 
 MDS RETRIEVE is SUCCESSFULL
VDEST_CHANGE ROLE to 2 is SUCCESSFULL
The service which is sending the message is = 512
The service to which the message needs to be delivered = 512
 MDS SEND RESPONSE is SUCCESSFULL
The response got from the receiver is : 
 message length = 33 
 message =  Hi Sender! My Name is RECEIVER 
Success
 
 MDS RESPONSE is SUCCESSFULL
 
TASK is released
 
 MDS CANCEL SUBSCRIBE is SUCCESSFULLUninstalling the services on both 
VDESTs and ADEST
 
 UnInstalling the Services on both the VDESTs
 
 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 256 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
Destroying the VDESTS
Destroying both the VDESTs and PWE=2 on ADEST
 
VDEST_CHANGE ROLE to 2 is SUCCESSFULL
 200 : VDEST_DESTROY is SUCCESSFULL
VDEST_CHANGE ROLE to 2 is SUCCESSFULL
 100 : VDEST_DESTROY is SUCCESSFULL
The Subscriber Service id = 512 is on ADEST
NO ACTIVE: Received NO ACTIVE Event
 In the system no active instance of Subscribed srv= 512 with svc pvt ver = 1 
on dest=  found 
 
 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 256 : SERVICE UNINSTALL is SUCCESSFULL
 ADEST : PWE 2 : Uninstalling Services 2000/INTMIN
 
 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 256 : SERVICE UNINSTALL is SUCCESSFULL
ADEST PWE2 Destroyed
 
ADEST: PWE_DESTROY is SUCCESSFUL1  PASSED   Sender service installed with 
i_fail_no_active_sends = true and there is no-active instance of the receiver 
service;
 
=
 
   Test Result:
  Total:  1
  Passed: 1
  Failed: 0
SC-1:~ # 



---

** [tickets:#2177] MDS: mdstest 10 1 failed**

**Status:** accepted
**Milestone:** 5.2.RC2
**Created:** Tue Nov 08, 2016 06:48 AM UTC by Quyen Dao
**Last Updated:** Tue Nov 15, 2016 06:31 AM UTC
**Owner:** A V Mahesh (AVM)
**Attachments:**

- 
[mdstest_10_1_mds.log](https://sourceforge.net/p/opensaf/tickets/2177/attachment/mdstest_10_1_mds.log)
 (121.2 kB; application/octet-stream)


Changeset: 8287:bcc7af78a5a7
OS: Ubuntu 16.04
MDS transport: TCP

root@SC-1:~# export MDS_LOG_LEVEL=5
root@SC-1:~# mdstest 10 1

Suite 10: Send All test cases

Test Case 1: Sender service installed with i_fail_no_active_sends = true and 
there is no-active instance of the receiver service
Setting up the setup
/ntet_initialise_setup: Get an ADEST handle,Create PWE=2 on ADEST,Install 
EXTMIN and INTMIN svc on ADEST,Install INTMIN,EXTMIN services on ADEST's PWE=2,
Create VDEST 100 and VDEST 200,Change the role of VDEST 200 to ACTIVE,
Install EXTMIN  service on VDEST 100,Install INTMIN, EXTMIN services on 
VDEST 200

ADEST <2010f020a > : GET_HDLS is SUCCESSFUL
 100 : VDEST_CREATE is SUCCESSFUL
 200 : VDEST_CREATE is SUCCESSFUL
VDEST_CHANGE ROLE to 1 is SUCCESSFULL
PWE_CREATE is SUCCESSFUL : PWE = 2
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESS

[tickets] [opensaf:tickets] #2174 MDS: mdstest 5 1 failed

2017-03-23 Thread A V Mahesh (AVM)
 1
  Passed: 1
  Failed: 0
SC-1:~ # 
SC-1:~ # 
SC-1:~ # 
SC-1:~ # export MDS_LOG_LEVEL=5
SC-1:~ # /usr/bin/mdstest 5 1 
 
Suite 5: Subscribe ADEST
Test Case 1: 500 Subscription to:600,700 where Install scope = Subscription 
scope
 
Getting an ADEST handle
 
ADEST <2010f1b02 > : GET_HDLS is SUCCESSFUL
Installing the services 500,600,700 with CHASSIS scope
 
 500 : SERVICE INSTALL is SUCCESSFULL
 600 : SERVICE INSTALL is SUCCESSFULL
 700 : SERVICE INSTALL is SUCCESSFULL
Action: Retrieve only ONE event
 
 MDS SERVICE SUBSCRIBE is SUCCESSFULL
Action: Retrieve only ONE event
 
The Subscriber Service id = 500 is on ADEST
UP: Subscribed Svc = 600 with svc pvt ver = 1 is UP on dest= <2010f1b02> 
anchor= <0> role= 1 with PWE id = 1 on node = 2010f 
 
 MDS RETRIEVE is SUCCESSFULL
Success
 
Action: Retrieve ALL event
 
The Subscriber Service id = 500 is on ADEST
UP: Subscribed Svc = 700 with svc pvt ver = 1 is UP on dest= <2010f1b02> 
anchor= <0> role= 1 with PWE id = 1 on node = 2010f 
 
 MDS RETRIEVE is SUCCESSFULL
Success
 
Action: Cancel subscription 500
 
 MDS CANCEL SUBSCRIBE is SUCCESSFULL
Success
 
Uninstalling all the services on this ADESt
 
 700 : SERVICE UNINSTALL is SUCCESSFULL
 600 : SERVICE UNINSTALL is SUCCESSFULL
 500 : SERVICE UNINSTALL is SUCCESSFULL1  PASSEDIn the NO_ACTIVE event 
notification, the remote service subpart version is set to the last active 
instance.s remote-service sub-part version;
 
=
 
   Test Result:
  Total:  1
  Passed: 1
  Failed: 0
SC-1:~ # 



---

** [tickets:#2174] MDS: mdstest 5 1 failed**

**Status:** accepted
**Milestone:** 5.2.RC2
**Created:** Tue Nov 08, 2016 06:29 AM UTC by Quyen Dao
**Last Updated:** Tue Nov 15, 2016 06:32 AM UTC
**Owner:** A V Mahesh (AVM)
**Attachments:**

- 
[mdstest_5_1_mds.log](https://sourceforge.net/p/opensaf/tickets/2174/attachment/mdstest_5_1_mds.log)
 (29.2 kB; application/octet-stream)


Changeset: 8287:bcc7af78a5a7
OS: Ubuntu 16.04
MDS transport: TCP

root@SC-1:~# export MDS_LOG_LEVEL=5
root@SC-1:~# mdstest 5 1

Suite 5: Subscribe ADEST
Test Case 1: 500 Subscription to:600,700 where Install scope = Subscription 
scope

Getting an ADEST handle

ADEST <2010f01f3 > : GET_HDLS is SUCCESSFUL
Installing the services 500,600,700 with CHASSIS scope

 500 : SERVICE INSTALL is SUCCESSFULL
 600 : SERVICE INSTALL is SUCCESSFULL
 700 : SERVICE INSTALL is SUCCESSFULL
Action: Retrieve only ONE event

 MDS SERVICE SUBSCRIBE is SUCCESSFULL
Action: Retrieve only ONE event

Request to ncsmds_api: MDS RETRIEVE has FAILED
Fail, retrieve ONE

Action: Retrieve ALL event

The Subscriber Service id = 500 is on ADEST
UP: Subscribed Svc = 600 with svc pvt ver = 1 is UP on dest= <2010f01f3> 
anchor= <0> role= 1 with PWE id = 1 on node = 2010f

The Subscriber Service id = 500 is on ADEST
UP: Subscribed Svc = 700 with svc pvt ver = 1 is UP on dest= <2010f01f3> 
anchor= <0> role= 1 with PWE id = 1 on node = 2010f

 MDS RETRIEVE is SUCCESSFULL
Success

Action: Cancel subscription 500

 MDS CANCEL SUBSCRIBE is SUCCESSFULL
Success

Uninstalling all the services on this ADESt

 700 : SERVICE UNINSTALL is SUCCESSFULL
 600 : SERVICE UNINSTALL is SUCCESSFULL
 500 : SERVICE UNINSTALL is SUCCESSFULL1  FAILEDIn the NO_ACTIVE event 
notification, the remote service subpart version is set to the last active 
instance.s remote-service sub-part version (expected OUT_OF_RANGE, got 
SA_AIS_OK (1));

=

   Test Result:
  Total:  1
  Passed: 0
  Failed: 1
root@SC-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


[tickets] [opensaf:tickets] #2385 plm: fix all Cppcheck 1.77 issues

2017-03-16 Thread A V Mahesh (AVM)



---

** [tickets:#2385] plm: fix all Cppcheck 1.77 issues**

**Status:** unassigned
**Milestone:** future
**Created:** Fri Mar 17, 2017 05:37 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 17, 2017 05:37 AM UTC
**Owner:** nobody


[src/plm/agent/plma_api.c:428] -> [src/plm/agent/plma_api.c:430]: (warning) 
Either the condition '!client_info' is redundant or there is possible null 
pointer dereference: client_info.
[src/plm/agent/plma_api.c:1812]: (warning) Possible null pointer dereference: 
plm_out_res
[src/plm/agent/plma_init.c:109] -> [src/plm/agent/plma_init.c:115]: (warning, 
inconclusive) Either the condition 'client_node!=NULL' is redundant or there is 
possible null pointer dereference: client_node.
[src/plm/agent/plma_init.c:152] -> [src/plm/agent/plma_init.c:155]: (warning) 
Either the condition 'grp_info_node!=NULL' is redundant or there is possible 
null pointer dereference: grp_info_node.
[src/plm/agent/plma_init.c:109]: (style) Variable 'temp_hdl' is assigned a 
value that is never used.
[src/plm/agent/plma_init.c:152]: (style) Variable 'temp_hdl' is assigned a 
value that is never used.
[src/plm/agent/plma_mds.c:75] -> [src/plm/agent/plma_mds.c:82]: (style) 
Variable 'rc' is reassigned a value before the old one has been used.
[src/plm/apitest/test_saPlmReadinessTrack.c:184]: (style) The scope of the 
variable 'i' can be reduced.
[src/plm/apitest/test_saPlmReadinessTrack.c:184]: (style) The scope of the 
variable 'j' can be reduced.
[src/plm/common/plms_common_mds.c:175] -> 
[src/plm/common/plms_common_mds.c:182]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[src/plm/common/plms_common_mds.c:202] -> 
[src/plm/common/plms_common_mds.c:209]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[src/plm/common/plms_epath_util.c:501]: (style) Redundant condition: If 'EXPR 
== ' '', the comparison 'EXPR != '\0'' is always true.
[src/plm/common/plms_hrb.c:373]: (error) Memory leak: response
[src/plm/common/plms_hrb_mds.c:215] -> [src/plm/common/plms_hrb_mds.c:218]: 
(style) Variable 'dst_msg' is reassigned a value before the old one has been 
used.
[src/plm/common/plms_hsm.c:754] -> [src/plm/common/plms_hsm.c:761]: (style) 
Variable 'rc' is reassigned a value before the old one has been used.
[src/plm/plmcd/plmc_get_listening_ip_addr.c:142]: (error) Resource leak: s
[src/plm/plmcd/plmc_lib_internal.c:81] -> 
[src/plm/plmcd/plmc_lib_internal.c:93]: (style) Variable 'new_entry' is 
reassigned a value before the old one has been used.
[src/plm/plmcd/plmc_lib_internal.c:270]: (style) The scope of the variable 
'sockfd' can be reduced.
[src/plm/plmcd/plmc_lib_internal.c:1053]: (style) The scope of the variable 
'msg_length' can be reduced.
[src/plm/plmcd/plmc_lib_internal.c:1098]: (style) Obsolescent function 'bzero' 
called. It is recommended to use 'memset' instead.
[src/plm/plmcd/plmc_lib_internal.c:1234]: (style) Obsolescent function 'bzero' 
called. It is recommended to use 'memset' instead.
[src/plm/plmcd/plmc_lib_internal.c:1255]: (error) Resource handle 'sockfd' 
freed twice.
[src/plm/plmcd/plmc_lib_internal.c:1275]: (error) Resource handle 'sockfd' 
freed twice.
[src/plm/plmcd/plmc_read_config.c:197]: (error) Resource leak: plmc_conf_file
[src/plm/plmcd/plmcd.c:542]: (error) Resource leak: udpsockfd
[src/plm/plmcd/plmcd.c:885]: (style) Clarify calculation precedence for '%' and 
'?'.
[src/plm/plmcd/test_lib.c:111]: (style) The scope of the variable 'number' can 
be reduced.
[src/plm/plmcd/test_lib.c:103]: (style) Variable 'dummy' is assigned a value 
that is never used.
[src/plm/plmd/plms_adm_fsm.c:252] -> [src/plm/plmd/plms_adm_fsm.c:260]: (style) 
Variable 'ret_err' is reassigned a value before the old one has been used.
[src/plm/plmd/plms_adm_fsm.c:495] -> [src/plm/plmd/plms_adm_fsm.c:501]: (style) 
Variable 'ret_err' is reassigned a value before the old one has been used.
[src/plm/plmd/plms_adm_fsm.c:515] -> [src/plm/plmd/plms_adm_fsm.c:523]: (style) 
Variable 'ret_err' is reassigned a value before the old one has been used.
[src/plm/plmd/plms_adm_fsm.c:540] -> [src/plm/plmd/plms_adm_fsm.c:548]: (style) 
Variable 'ret_err' is reassigned a value before the old one has been used.
[src/plm/plmd/plms_adm_fsm.c:568] -> [src/plm/plmd/plms_adm_fsm.c:574]: (style) 
Variable 'ret_err' is reassigned a value before the old one has been used.
[src/plm/plmd/plms_adm_fsm.c:588] -> [src/plm/plmd/plms_adm_fsm.c:596]: (style) 
Variable 'ret_err' is reassigned a value before the old one has been used.
[src/plm/plmd/plms_adm_fsm.c:614] -> [src/plm/plmd/plms_adm_fsm.c:622]: (style) 
Variable 'ret_err' is reassigned a value before the old one has been used.
[src/plm/plmd/plms_adm_fsm.c:646] -> [src/plm/plmd/plms_adm_fsm.c:654]: (style) 
Variable 'ret_err' is reassigned a value before the old one has been used.
[src/plm/plmd/plms_adm_fsm.c:753] -> [src/plm/plmd/plms_adm_fsm.c:761]: (s

[tickets] [opensaf:tickets] #2384 tools: IMM/tools/apitest fix all Cppcheck 1.77 issues

2017-03-16 Thread A V Mahesh (AVM)



---

** [tickets:#2384] tools: IMM/tools/apitest fix all Cppcheck 1.77 issues**

**Status:** assigned
**Milestone:** next
**Created:** Fri Mar 17, 2017 04:57 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 17, 2017 04:57 AM UTC
**Owner:** A V Mahesh (AVM)


[src/imm/agent/imma_db.cc:264]: (style) C-style pointer casting

[src/imm/apitest/immtest.c:151] -> [src/imm/apitest/immtest.c:184]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/immtest.c:236] -> [src/imm/apitest/immtest.c:252]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/implementer/applier.c:340]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[src/imm/apitest/implementer/applier.c:202]: (style) The scope of the variable 
'c' can be reduced.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:307]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:415]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:474]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:523]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:618]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:696]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:763]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:848]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:932]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:1017]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiCcb.c:175]: (style) The scope of the 
variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_SaImmOiCcb.c:228]: (style) The scope of the 
variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_SaImmOiRtAttrUpdateCallbackT.c:55] -> 
[src/imm/apitest/implementer/test_SaImmOiRtAttrUpdateCallbackT.c:82]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:368]: (style) 
The scope of the variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:424]: (style) 
The scope of the variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:491]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:512]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:574]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:593]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:660]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:665]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:683]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:750]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:755]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:775]: (style) 
Obsolescent

[tickets] [opensaf:tickets] #2342 smf: Fix all Cppcheck 1.77 issues

2017-03-16 Thread A V Mahesh (AVM)
- **status**: accepted --> review



---

** [tickets:#2342] smf: Fix all Cppcheck 1.77 issues**

**Status:** review
**Milestone:** 5.2.RC2
**Created:** Fri Mar 03, 2017 06:46 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Mar 13, 2017 03:36 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/smf/smfd/SmfCampState.cc:950]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:973]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:2015]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:503]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:510]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:528]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:534]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:544]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:551]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:565]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:594]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:598]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:608]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:622]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:633]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:665]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:679]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:709]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:788]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:845]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1187]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1200]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1817]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1896]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:733]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1049]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1081]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1099]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:77]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:88]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:99]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:107]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:115]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:238]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:263]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:284]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:305]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:358]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignThread.cc:262]: (style) Suspicious condition 
(assignment + comparison); Clarify expression with parentheses.
[staging/src/smf/smfd/SmfCampaignThread.cc:277]: (style) Suspicious condition 
(assignment + comparison); Clarify expression with parentheses.
[staging/

[tickets] [opensaf:tickets] #2278 mds: Blocking send causes AMF health check time-out

2017-03-15 Thread A V Mahesh (AVM)
;>>
>>>>> static uint32_t
>>>>> mds_mcm_process_disc_queue_checks_redundant(MDS_SVC_INFO *svc_cb,
>>>>> MDS_SVC_ID dest_svc_id,
>>>>>MDS_VDEST_ID dest_vdest_id, V_DEST_QA
>>>>> anchor,
>>>>>MDS_SEND_INFO *req) {
>>>>>
>>>>>   MDS_SUBSCRIPTION_INFO *sub_info = NULL;
>>>>>   MDS_SUBSCRIPTION_RESULTS_INFO *log_subtn_result_info = NULL;
>>>>>   uint32_t disc_rc;
>>>>>   bool time_wait = false;
>>>>>
>>>>>   MDS_HDL env_hdl;
>>>>>
>>>>>   env_hdl =
>>>>> (MDS_HDL)(m_MDS_GET_PWE_HDL_FROM_SVC_HDL(svc_cb->svc_hdl));
>>>>>   mds_subtn_tbl_get(svc_cb->svc_hdl, dest_svc_id, _info);
>>>>>
>>>>>   if (sub_info == NULL) {
>>>>>   /* No subscription to this */
>>>>>   /* Make a subscription to this service */
>>>>>   m_MDS_LOG_INFO("MDS_SND_RCV: No subscription to svc_id =
>>>>> %s(%d), Making subscription\n", get_svc_names(dest_svc_id),
>>>>> dest_svc_id);
>>>>>   mds_mcm_subtn_add(svc_cb->svc_hdl, dest_svc_id,
>>>>> svc_cb->install_scope,
>>>>> MDS_VIEW_RED /* redundantview */ ,
>>>>> MDS_SUBTN_IMPLICIT);
>>>>>
>>>>>   if (NCSCC_RC_SUCCESS != mds_subtn_tbl_get(svc_cb->svc_hdl,
>>>>> dest_svc_id, _info)) {
>>>>>   m_MDS_LOG_INFO("MDS_SND_RCV: Subscription made but no
>>>>> pointer available\n");
>>>>>   return NCSCC_RC_FAILURE;
>>>>>   }
>>>>>   } else if (sub_info->tmr_flag != true) {
>>>>>   if ((MDS_SENDTYPE_RSP == req->i_sendtype) ||
>>>>> (MDS_SENDTYPE_RRSP == req->i_sendtype)) {
>>>>>   time_wait = true;
>>>>>   m_MDS_LOG_INFO("MDS_SND_RCV:Disc queue red: Subscr
>>>>> exists no timer running: Waiting for some time\n");
>>>>>   } else {
>>>>>   m_MDS_LOG_INFO("MDS_SND_RCV: Subscription exists but
>>>>> Timer has expired\n");
>>>>>   return NCSCC_RC_FAILURE;
>>>>>   }
>>>>>   }
>>>>>
>>>>>  :
>>>>>
>>>>> if the call to mds_subtn_tbl_get sets sub_info to NULL, time_wait
>>>>> will remain false, and then calling mds_subtn_tbl_add_disc_queue
>>>>>
>>>>> with false causes infinite wait in the following poll. Can this if
>>>>> stmt be moved so it is not depended on sub_info?
>>>>>
>>>>> if ((MDS_SENDTYPE_RSP == req->i_sendtype) || (MDS_SENDTYPE_RRSP ==
>>>>> req->i_sendtype)) {
>>>>>
>>>>>
>>>>> /Regards Hans
>>>>>
/=/=/=






---

** [tickets:#2278] mds: Blocking send causes AMF health check time-out**

**Status:** assigned
**Milestone:** 5.1.1
**Created:** Thu Jan 26, 2017 09:49 AM UTC by Anders Widell
**Last Updated:** Mon Feb 13, 2017 08:54 AM UTC
**Owner:** A V Mahesh (AVM)


AMF health-check time-out is seen on SC-1 after restarting SC-2. The system is 
using OpenSAF 5.1.0 configured with TCP communication.

Syslog:

~~~
2017-01-20T18:29:04.405982+01:00 local0.err SC-1 osafamfnd[2820]: ER AMF 
director heart beat timeout, generating core for amfd
2017-01-20T18:29:05.408819+01:00 local0.crit SC-1 osafamfnd[2820]: Rebooting 
OpenSAF NodeId = 131343 EE Name = , Reason: AMF director heart beat timeout, 
OwnNodeId = 131343, SupervisionTime = 0
~~~

Back-trace of osafamfd:

~~~
0x7fa316cceb60 osaf_poll_no_timeout (osaf/libs/core/common/osaf_poll.c:33)
0x7fa316ccede5 osaf_poll (osaf/libs/core/common/osaf_poll.c:45)
0x7fa316ccee25 osaf_poll_one_fd (osaf/libs/core/common/osaf_poll.c:129)
0x7fa316cfab67 mds_mcm_time_wait 
(osaf/libs/core/common/include/osaf_utility.h:79)
0x7fa316cfae51 mds_subtn_tbl_add_disc_queue 
(osaf/libs/core/mds/mds_c_sndrcv.c:1808)
0x7fa316cfb03d mds_mcm_process_disc_queue_checks_redundant 
(osaf/libs/core/mds/mds_c_sndrcv.c:2338)
0x7fa316cfbcd1 mcm_pvt_red_snd_process_common 
(osaf/libs/core/mds/mds_c_sndrcv.c:2257)
0x7fa316cfd04d mcm_pvt_red_svc_snd (osaf/libs/core/mds/mds_c_sndrcv.c:2174)
0x7fa316cff8f9 mds_send (osaf/libs/core/mds/mds_c_sndrcv.c:736)
0x7fa316cf9068 ncsmds_api (osaf/libs/core/mds/mds_papi.c:191)
0x7fa316ce6f5f mbcsv_mds_send_msg (osaf/libs/core/mbcsv/mbcsv_mds.c:239)
0x7fa316cec440 mbcsv_send_ckpt_data_to_all_peers 
(osaf/libs/core/mbcsv/mbcsv_util.c:479)
0x7fa316ce56d7 mbcsv_process_snd_ckpt_request 
(osaf/libs/core/mbcsv/mbcsv_api.c:862)
0x40bfc0 avsv_send_ckpt_data(cl_cb_tag*, unsigned int, unsigned long, unsigned 
int, unsigned int) (osaf/services/saf/amf/amfd/chkop.cc:1062)
0x446649 avd_node_oper_state_set(AVD_AVND*, SaAmfOperationalStateT) 
(osaf/services/saf/amf/amfd/node.cc:505)
0x44040c avd_node_mark_absent(AVD_AVND*) 
(osaf/services/saf/amf/amfd/ndfsm.cc:1018)
0x4438ba avd_node_failover(AVD_AVND*) 
(osaf/services/saf/amf/amfd/ndproc.cc:1141)

~~~


---

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] #2030 dtm: "Node already exit in the cluster with smiler configuration"

2017-03-15 Thread A V Mahesh (AVM)
In normal conditions we are not able to reproduce the problem by doing 
`/etc/init.d/opensafd restart `
so can please provide following information , to reproduce the problem:

1) Can you please share or elaborate  what  "./opensaf nodestop"  "./opensaf 
nodestart"
   scripts do aprt of ` /etc/init.d/opensafd stop`  &   `/etc/init.d/opensafd 
restart 

2) is their any other NON Opensaf application using MDS/TCP  libariry  ?
   if so are they stoped cleanly before ` /etc/init.d/opensafd stop`  





---

** [tickets:#2030] dtm: "Node already exit in the cluster with smiler 
configuration"**

**Status:** assigned
**Milestone:** 5.0.2
**Created:** Tue Sep 13, 2016 12:10 PM UTC by Anders Widell
**Last Updated:** Mon Sep 26, 2016 02:26 PM UTC
**Owner:** A V Mahesh (AVM)


osafdtm does not handle rapid consecutive node reboots properly. I got the 
following errors in syslog:

~~~
Sep 13 14:00:52 SC-2 local0.err osafdtmd[378]: ER DTM:  Node already exit in 
the cluster with smiler configuration , correct the other joining Node 
configuration 
Sep 13 14:01:02 SC-2 local0.err osafdtmd[378]: ER DTM: dtm_node_add failed 
.node_ip: 192.168.0.1, node_id: 0
Sep 13 14:01:06 SC-2 local0.err osafdtmd[378]: ER DTM: dtm_node_add failed 
.node_ip: 192.168.0.1, node_id: 0
~~~

Here are the steps to reproduce this problem in UML:

./opensaf start
(wait until the cluster comes up)
./opensaf nodestop 2
(wait a few seconds)
./opensaf nodestart 2
./opensaf nodestart 2

The last two commands should be execute quickly after each other, maybe with 
one second delay in between them.

It seems that osafdtmd asserts and dies when this happens. Here is the result 
from a second run of the above test:

~~~
Sep 13 14:25:58 SC-2 local0.err osafdtmd[378]: ER DTM:  Node already exit in 
the cluster with smiler configuration , correct the other joining Node 
configuration 
Sep 13 14:25:58 SC-2 local0.err osafdtmd[378]: dtm_node.c:109: 
dtm_process_node_info: Assertion '0' failed.
Sep 13 14:25:58 SC-2 local0.err osafamfd[478]: MDTM:SOCKET recd_bytes :0, conn 
lost with dh server, exiting library err :Success
Sep 13 14:25:58 SC-2 local0.err osafclmna[468]: MDTM:SOCKET recd_bytes :0, conn 
lost with dh server, exiting library err :Success
Sep 13 14:25:58 SC-2 local0.err osafclmd[458]: MDTM:SOCKET recd_bytes :0, conn 
lost with dh server, exiting library err :Success
Sep 13 14:25:58 SC-2 local0.err osafntfd[448]: MDTM:SOCKET recd_bytes :0, conn 
lost with dh server, exiting library err :Success
Sep 13 14:25:58 SC-2 local0.err osaflogd[437]: MDTM:SOCKET recd_bytes :0, conn 
lost with dh server, exiting library err :Success
Sep 13 14:25:58 SC-2 local0.err osafimmnd[426]: MDTM:SOCKET recd_bytes :0, conn 
lost with dh server, exiting library err :Success
Sep 13 14:25:58 SC-2 local0.err osafimmd[415]: MDTM:SOCKET recd_bytes :0, conn 
lost with dh server, exiting library err :Success
Sep 13 14:25:58 SC-2 local0.err osaffmd[405]: MDTM:SOCKET recd_bytes :0, conn 
lost with dh server, exiting library err :Success
Sep 13 14:25:58 SC-2 local0.err osafrded[392]: MDTM:SOCKET recd_bytes :0, conn 
lost with dh server, exiting library err :Success
Sep 13 14:25:58 SC-2 local0.notice osafdtmd[378]: NO Established contact with 
'SC-1'
Sep 13 14:25:58 SC-2 local0.notice osafdtmd[378]: NO Established contact with 
'PL-4'
Sep 13 14:25:58 SC-2 local0.notice osafdtmd[378]: NO Established contact with 
'PL-5'
Sep 13 14:25:58 SC-2 local0.notice osafdtmd[378]: NO Established contact with 
'PL-3'
Sep 13 14:25:59 SC-2 user.notice osafdtmd: osafdtmd Process down, Rebooting the 
node
Sep 13 14:25:59 SC-2 user.notice opensaf_reboot: Rebooting local node; 
timeout=60

~~~

Update: it seems I forgot to do "./opensaf nodestop" between the two "./opensaf 
nodestart" above. Thus, there are probably two SC-2 nodes at the same time, and 
the error message "Node already exit in the cluster with smiler configuration" 
should be interpreted as "duplicate node detected in the network". Reducing the 
priority of this defect to "minor". Still two problems ought to be fixed: the 
error message should be changed so that it is clear what it means, and osafdtmd 
should not assert (it could call opensaf_reboot() if a there is a configuration 
problem, but asserting idicates a software problem).




---

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 lis

[tickets] [opensaf:tickets] #2178 MDS: mdstest 13 14 failed

2017-03-13 Thread A V Mahesh (AVM)
- **Comment**:

changeset:   8696:59c84e14b522
branch:  opensaf-5.1.x
parent:  8694:0ec13bb1d403
user:Hoang Vo 
date:Mon Mar 13 15:04:30 2017 +0530
summary: mdstest: correct test cases [#2178]
 
changeset:   8697:13a4520b5dfd
branch:  opensaf-5.0.x
tag: tip
parent:  8693:10b342163975
user:Hoang Vo 
date:Mon Mar 13 15:04:47 2017 +0530
summary: mdstest: correct test cases [#2178]



---

** [tickets:#2178] MDS: mdstest 13 14 failed**

**Status:** fixed
**Milestone:** 5.2.RC1
**Created:** Tue Nov 08, 2016 06:58 AM UTC by Quyen Dao
**Last Updated:** Mon Mar 13, 2017 07:07 AM UTC
**Owner:** Vo Minh Hoang
**Attachments:**

- 
[mdstest_13_14_mds.log](https://sourceforge.net/p/opensaf/tickets/2178/attachment/mdstest_13_14_mds.log)
 (65.8 kB; application/octet-stream)


Changeset: 8287:bcc7af78a5a7
OS: Ubuntu 16.04
MDS transport: TCP

root@SC-1:~# export MDS_LOG_LEVEL=5
root@SC-1:~# mdstest 13 14

Suite 13: Direct Just Send test cases
/ntet_initialise_setup: Get an ADEST handle,Create PWE=2 on ADEST,Install 
EXTMIN and INTMIN svc on ADEST,Install INTMIN,EXTMIN services on ADEST's PWE=2,
Create VDEST 100 and VDEST 200,Change the role of VDEST 200 to ACTIVE,
Install EXTMIN  service on VDEST 100,Install INTMIN, EXTMIN services on 
VDEST 200

ADEST <2010f021f > : GET_HDLS is SUCCESSFUL
 100 : VDEST_CREATE is SUCCESSFUL
 200 : VDEST_CREATE is SUCCESSFUL
VDEST_CHANGE ROLE to 1 is SUCCESSFULL
PWE_CREATE is SUCCESSFUL : PWE = 2
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 MDS SERVICE SUBSCRIBE is SUCCESSFULL
The Subscriber Service id = 512 is on ADEST
UP: Subscribed Svc = 512 with svc pvt ver = 1 is UP on dest=  anchor= <0> 
role= 1 with PWE id = 1 on node = 2010f

The Subscriber Service id = 512 is on ADEST
UP: Subscribed Svc = 512 with svc pvt ver = 3 is UP on dest= <2010f021f> 
anchor= <0> role= 1 with PWE id = 1 on node = 2010f

 MDS RETRIEVE is SUCCESSFULL
Test Case 14: Not able to send a message of size >(MDS_DIRECT_BUF_MAXSIZE) to 
2000

Request to ncsmds_api: MDS DIRECT SEND is SUCCESSFULL
Fail

Cancel subscription

 MDS CANCEL SUBSCRIBE is SUCCESSFULLUninstalling the services on both 
VDESTs and ADEST

 UnInstalling the Services on both the VDESTs

 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 256 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
Destroying the VDESTS
Destroying both the VDESTs and PWE=2 on ADEST

VDEST_CHANGE ROLE to 2 is SUCCESSFULL
 200 : VDEST_DESTROY is SUCCESSFULL
VDEST_CHANGE ROLE to 2 is SUCCESSFULL
 100 : VDEST_DESTROY is SUCCESSFULL
Direct Receive callback
 The Sender service is = 512 is on <2010f021f> destination with anchor = 
<2010f021f> on Node = 2010f with msg fmt ver=1

The Receiver service is = 512 is on <2010f021f> destination

Received Message len = 8002 and the message 
is=sss
 

[tickets] [opensaf:tickets] #2342 smf: Fix all Cppcheck 1.77 issues

2017-03-12 Thread A V Mahesh (AVM)
- **status**: assigned --> accepted



---

** [tickets:#2342] smf: Fix all Cppcheck 1.77 issues**

**Status:** accepted
**Milestone:** 5.2.RC1
**Created:** Fri Mar 03, 2017 06:46 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 06:46 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/smf/smfd/SmfCampState.cc:950]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:973]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:2015]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:503]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:510]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:528]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:534]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:544]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:551]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:565]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:594]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:598]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:608]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:622]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:633]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:665]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:679]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:709]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:788]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:845]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1187]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1200]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1817]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1896]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:733]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1049]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1081]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1099]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:77]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:88]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:99]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:107]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:115]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:238]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:263]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:284]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:305]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:358]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignThread.cc:262]: (style) Suspicious condition 
(assignment + comparison); Clarify expression with parentheses.
[staging/src/smf/smfd/SmfCampaignThread.cc:277]: (style) Suspicious condition 
(assignment + comparison); Clarify expression with parentheses.
[stag

[tickets] [opensaf:tickets] #2337 cpd got crashed on new Active(SC-2) during checkpoint open with Active replica and write flag after si-swap operation

2017-03-09 Thread A V Mahesh (AVM)
- **status**: review --> fixed
- **Comment**:

changeset:   8685:534f48587b61
tag: tip
user:A V Mahesh <mahesh.va...@oracle.com>
date:Fri Mar 10 11:43:26 2017 +0530
summary: cpd: update missed out node_users_cnt on standby [#2337]



---

** [tickets:#2337] cpd got crashed on new Active(SC-2) during checkpoint open 
with Active replica and write flag after si-swap operation**

**Status:** fixed
**Milestone:** 5.2.RC1
**Created:** Fri Mar 03, 2017 05:10 AM UTC by Ritu Raj
**Last Updated:** Fri Mar 10, 2017 06:42 AM UTC
**Owner:** A V Mahesh (AVM)
**Attachments:**

- 
[Syslog_cpdcrash..tar](https://sourceforge.net/p/opensaf/tickets/2337/attachment/Syslog_cpdcrash..tar)
 (13.4 MB; application/octet-stream)


#Environment details
OS : Suse 64bit
Changeset : 8634 ( 5.2.FC)
Setup : 4 nodes ( 2 controllers and 2 payloads with 1PBE enabled )


#Summary
cpd got crashed on new Active(SC-2) during checkpoint open with Active replica 
and write flag after si-swap operation

#Steps followed & Observed behaviour
Invoke switchovers
After few successfull switchovers while opening checkpoint with Active 
replica cpd got crashed
Below is the API flow:
1. Initialize ckpt with callbacks.
2. Create checkpoint with Active Replica and write flag.
3. Invoke switchover.
4. Close checkpoint.
5. Open same checkpoint with Active Replica and write flag.( at this 
step cpd got crashed)

Following is the syslog: 
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer (applier) connected: 
14028 (@safLogService_appl) <2163, 2020f>
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: NO Assigned 
'safSi=SC-2N,safApp=OpenSAF' ACTIVE to 'safSu=SC-2,safSg=2N,safApp=OpenSAF'
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer (applier) connected: 
14029 (@safSmf_applier1) <131, 2020f>
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Peer up on node 0x2010f
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Got peer info request from node 
0x2010f with role STANDBY
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Got peer info response from node 
0x2010f with role STANDBY
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer disconnected 14017 
<0, 2010f> (@OpenSafImmReplicatorB)
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: NO 
'safComp=CPD,safSu=SC-2,safSg=2N,safApp=OpenSAF' faulted due to 'avaDown' : 
Recovery is 'nodeFailfast'
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: ER 
safComp=CPD,safSu=SC-2,safSg=2N,safApp=OpenSAF Faulted due to:avaDown Recovery 
is:nodeFailfast
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: Rebooting OpenSAF NodeId = 131599 
EE Name = , Reason: Component faulted: recovery is node failfast, OwnNodeId = 
131599, SupervisionTime = 60
Mar  2 13:25:38 TestBed-R2 opensaf_reboot: Rebooting local node; timeout=60


BT 
(gdb) bt
0  0x7fa91d057c95 in cpd_proc_increase_node_user_info 
(ckpt_node=0x7fa91d2bcff0, cpnd_dest=566317152296976, open_flags=2)
at src/ckpt/ckptd/cpd_proc.c:1650
1  0x7fa91d046bd0 in cpd_evt_proc_ckpt_usr_info (cb=0x7fa91d299980, 
evt=0x7fa91d2bd120, sinfo=0x7fa91d2bd778) at src/ckpt/ckptd/cpd_evt.c:455
2  0x7fa91d045799 in cpd_process_evt (evt=0x7fa91d2bd110) at 
src/ckpt/ckptd/cpd_evt.c:116
3  0x7fa91d04df15 in cpd_main_process (cb=0x7fa91d299980) at 
src/ckpt/ckptd/cpd_init.c:661
4  0x7fa91d04e241 in main (argc=1, argv=0x7fffd6210e78) at 
src/ckpt/ckptd/cpd_main.c:74
(gdb)


Notes:
1. Syslog of both controllers attched
2. BT attached
3. Both nodes are not in time sysnc, there is time gap between two nodes 
   Relative to SC-2, SC-1 is (+50 min ahead) 
Time Diff
==
TestBed-R1:~ # date
Thu Mar  2 16:34:45 IST 2017
TestBed-R2:~ # date
Thu Mar  2 15:44:30 IST 2017
=


---

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.--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets


[tickets] [opensaf:tickets] #2337 cpd got crashed on new Active(SC-2) during checkpoint open with Active replica and write flag after si-swap operation

2017-03-09 Thread A V Mahesh (AVM)
- **status**: accepted --> review



---

** [tickets:#2337] cpd got crashed on new Active(SC-2) during checkpoint open 
with Active replica and write flag after si-swap operation**

**Status:** review
**Milestone:** 5.2.RC1
**Created:** Fri Mar 03, 2017 05:10 AM UTC by Ritu Raj
**Last Updated:** Fri Mar 10, 2017 04:06 AM UTC
**Owner:** A V Mahesh (AVM)
**Attachments:**

- 
[Syslog_cpdcrash..tar](https://sourceforge.net/p/opensaf/tickets/2337/attachment/Syslog_cpdcrash..tar)
 (13.4 MB; application/octet-stream)


#Environment details
OS : Suse 64bit
Changeset : 8634 ( 5.2.FC)
Setup : 4 nodes ( 2 controllers and 2 payloads with 1PBE enabled )


#Summary
cpd got crashed on new Active(SC-2) during checkpoint open with Active replica 
and write flag after si-swap operation

#Steps followed & Observed behaviour
Invoke switchovers
After few successfull switchovers while opening checkpoint with Active 
replica cpd got crashed
Below is the API flow:
1. Initialize ckpt with callbacks.
2. Create checkpoint with Active Replica and write flag.
3. Invoke switchover.
4. Close checkpoint.
5. Open same checkpoint with Active Replica and write flag.( at this 
step cpd got crashed)

Following is the syslog: 
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer (applier) connected: 
14028 (@safLogService_appl) <2163, 2020f>
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: NO Assigned 
'safSi=SC-2N,safApp=OpenSAF' ACTIVE to 'safSu=SC-2,safSg=2N,safApp=OpenSAF'
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer (applier) connected: 
14029 (@safSmf_applier1) <131, 2020f>
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Peer up on node 0x2010f
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Got peer info request from node 
0x2010f with role STANDBY
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Got peer info response from node 
0x2010f with role STANDBY
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer disconnected 14017 
<0, 2010f> (@OpenSafImmReplicatorB)
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: NO 
'safComp=CPD,safSu=SC-2,safSg=2N,safApp=OpenSAF' faulted due to 'avaDown' : 
Recovery is 'nodeFailfast'
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: ER 
safComp=CPD,safSu=SC-2,safSg=2N,safApp=OpenSAF Faulted due to:avaDown Recovery 
is:nodeFailfast
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: Rebooting OpenSAF NodeId = 131599 
EE Name = , Reason: Component faulted: recovery is node failfast, OwnNodeId = 
131599, SupervisionTime = 60
Mar  2 13:25:38 TestBed-R2 opensaf_reboot: Rebooting local node; timeout=60


BT 
(gdb) bt
0  0x7fa91d057c95 in cpd_proc_increase_node_user_info 
(ckpt_node=0x7fa91d2bcff0, cpnd_dest=566317152296976, open_flags=2)
at src/ckpt/ckptd/cpd_proc.c:1650
1  0x7fa91d046bd0 in cpd_evt_proc_ckpt_usr_info (cb=0x7fa91d299980, 
evt=0x7fa91d2bd120, sinfo=0x7fa91d2bd778) at src/ckpt/ckptd/cpd_evt.c:455
2  0x7fa91d045799 in cpd_process_evt (evt=0x7fa91d2bd110) at 
src/ckpt/ckptd/cpd_evt.c:116
3  0x7fa91d04df15 in cpd_main_process (cb=0x7fa91d299980) at 
src/ckpt/ckptd/cpd_init.c:661
4  0x7fa91d04e241 in main (argc=1, argv=0x7fffd6210e78) at 
src/ckpt/ckptd/cpd_main.c:74
(gdb)


Notes:
1. Syslog of both controllers attched
2. BT attached
3. Both nodes are not in time sysnc, there is time gap between two nodes 
   Relative to SC-2, SC-1 is (+50 min ahead) 
Time Diff
==
TestBed-R1:~ # date
Thu Mar  2 16:34:45 IST 2017
TestBed-R2:~ # date
Thu Mar  2 15:44:30 IST 2017
=


---

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.--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets


[tickets] [opensaf:tickets] #1510 CKPT: cpnd crashes during checkpoint open timeout with large sections

2017-03-09 Thread A V Mahesh (AVM)
- **status**: review --> needinfo



---

** [tickets:#1510] CKPT: cpnd crashes during checkpoint open timeout with large 
sections**

**Status:** needinfo
**Milestone:** future
**Created:** Thu Oct 01, 2015 04:14 PM UTC by Alex Jones
**Last Updated:** Tue Sep 20, 2016 05:51 AM UTC
**Owner:** Alex Jones


When opening a collocated checkpoint replica where the active has large numbers 
of sections (~200k), the sync from the active can timeout with errorcode 
SA_AIS_ERR_TRY_AGAIN. In this case the code deletes the memory for the node, 
but does not delete the node from the db. When the checkpoint access is tried 
again, the freed memory for the node is still in the db, and ckptnd crashes.

Valgrind analysis shows the following:

==53610== Thread 1:
==53610== Invalid read of size 4
==53610==at 0x4E4D7C4: ncs_patricia_tree_get (patricia.c:93)
==53610==by 0x40400D: cpnd_ckpt_node_get (cpnd_db.c:42)
==53610==by 0x40D1A2: cpnd_process_evt (cpnd_evt.c:1957)
==53610==by 0x40E9D6: cpnd_main_process (cpnd_init.c:568)
==53610==by 0x403882: main (cpnd_main.c:72)
==53610==  Address 0x687de60 is 0 bytes inside a block of size 1,072 free'd
==53610==at 0x4C29D4E: free (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==53610==by 0x40A827: cpnd_evt_proc_ckpt_open (cpnd_evt.c:983)
==53610==by 0x40D426: cpnd_process_evt (cpnd_evt.c:202)
==53610==by 0x40E9D6: cpnd_main_process (cpnd_init.c:568)
==53610==by 0x403882: main (cpnd_main.c:72)
==53610== 
==53610== Invalid read of size 8
==53610==at 0x4E4D7C0: ncs_patricia_tree_get (patricia.c:90)
==53610==by 0x40400D: cpnd_ckpt_node_get (cpnd_db.c:42)
==53610==by 0x40D1A2: cpnd_process_evt (cpnd_evt.c:1957)
==53610==by 0x40E9D6: cpnd_main_process (cpnd_init.c:568)
==53610==by 0x403882: main (cpnd_main.c:72)
==53610==  Address 0x687de70 is 16 bytes inside a block of size 1,072 free'd
==53610==at 0x4C29D4E: free (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==53610==by 0x40A827: cpnd_evt_proc_ckpt_open (cpnd_evt.c:983)
==53610==by 0x40D426: cpnd_process_evt (cpnd_evt.c:202)
==53610==by 0x40E9D6: cpnd_main_process (cpnd_init.c:568)
==53610==by 0x403882: main (cpnd_main.c:72)
==53610== 
==53610== Invalid read of size 8
==53610==at 0x4E4D7FB: ncs_patricia_tree_get (patricia.c:435)
==53610==by 0x40400D: cpnd_ckpt_node_get (cpnd_db.c:42)
==53610==by 0x40D1A2: cpnd_process_evt (cpnd_evt.c:1957)
==53610==by 0x40E9D6: cpnd_main_process (cpnd_init.c:568)
==53610==by 0x403882: main (cpnd_main.c:72)
==53610==  Address 0x687de78 is 24 bytes inside a block of size 1,072 free'd
==53610==at 0x4C29D4E: free (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==53610==by 0x40A827: cpnd_evt_proc_ckpt_open (cpnd_evt.c:983)
==53610==by 0x40D426: cpnd_process_evt (cpnd_evt.c:202)
==53610==by 0x40E9D6: cpnd_main_process (cpnd_init.c:568)
==53610==by 0x403882: main (cpnd_main.c:72)
==53610== 
==53610== Invalid read of size 1
==53610==at 0x4C2D0B9: bcmp (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==53610==by 0x4E4D803: ncs_patricia_tree_get (patricia.c:435)
==53610==by 0x40400D: cpnd_ckpt_node_get (cpnd_db.c:42)
==53610==by 0x40D1A2: cpnd_process_evt (cpnd_evt.c:1957)
==53610==by 0x40E9D6: cpnd_main_process (cpnd_init.c:568)
==53610==by 0x403882: main (cpnd_main.c:72)
==53610==  Address 0x687de80 is 32 bytes inside a block of size 1,072 free'd
==53610==at 0x4C29D4E: free (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==53610==by 0x40A827: cpnd_evt_proc_ckpt_open (cpnd_evt.c:983)
==53610==by 0x40D426: cpnd_process_evt (cpnd_evt.c:202)
==53610==by 0x40E9D6: cpnd_main_process (cpnd_init.c:568)
==53610==by 0x403882: main (cpnd_main.c:72)
==53610== 
==53610== Invalid read of size 1
==53610==at 0x4C2D0D0: bcmp (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==53610==by 0x4E4D803: ncs_patricia_tree_get (patricia.c:435)
==53610==by 0x40400D: cpnd_ckpt_node_get (cpnd_db.c:42)
==53610==by 0x40D1A2: cpnd_process_evt (cpnd_evt.c:1957)
==53610==by 0x40E9D6: cpnd_main_process (cpnd_init.c:568)
==53610==by 0x403882: main (cpnd_main.c:72)
==53610==  Address 0x687de81 is 33 bytes inside a block of size 1,072 free'd
==53610==at 0x4C29D4E: free (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==53610==by 0x40A827: cpnd_evt_proc_ckpt_open (cpnd_evt.c:983)
==53610==by 0x40D426: cpnd_process_evt (cpnd_evt.c:202)
==53610==by 0x40E9D6: cpnd_main_process (cpnd_init.c:568)
==53610==by 0x403882: main (cpnd_main.c:72)
==53610== 
==53610== Invalid read of size 4
==53610==at 0x4E4D7C4: ncs_patricia_tree_get (patricia.c:93)
==53610==by 0x40400D: cpnd_ckpt_node_get (cpnd_db.c:42)
==53610==by 0x405872: cpnd_evt_proc_nd2nd_ckpt_sect_create (cpnd_evt.c:2602)
==53610==by 0x40D2B8: cpnd_process_evt (cpnd_evt.c:335)
==53610==by 0x40E9D6: 

[tickets] [opensaf:tickets] #2337 cpd got crashed on new Active(SC-2) during checkpoint open with Active replica and write flag after si-swap operation

2017-03-09 Thread A V Mahesh (AVM)
- **status**: assigned --> accepted



---

** [tickets:#2337] cpd got crashed on new Active(SC-2) during checkpoint open 
with Active replica and write flag after si-swap operation**

**Status:** accepted
**Milestone:** 5.2.RC1
**Created:** Fri Mar 03, 2017 05:10 AM UTC by Ritu Raj
**Last Updated:** Fri Mar 03, 2017 06:51 AM UTC
**Owner:** A V Mahesh (AVM)
**Attachments:**

- 
[Syslog_cpdcrash..tar](https://sourceforge.net/p/opensaf/tickets/2337/attachment/Syslog_cpdcrash..tar)
 (13.4 MB; application/octet-stream)


#Environment details
OS : Suse 64bit
Changeset : 8634 ( 5.2.FC)
Setup : 4 nodes ( 2 controllers and 2 payloads with 1PBE enabled )


#Summary
cpd got crashed on new Active(SC-2) during checkpoint open with Active replica 
and write flag after si-swap operation

#Steps followed & Observed behaviour
Invoke switchovers
After few successfull switchovers while opening checkpoint with Active 
replica cpd got crashed
Below is the API flow:
1. Initialize ckpt with callbacks.
2. Create checkpoint with Active Replica and write flag.
3. Invoke switchover.
4. Close checkpoint.
5. Open same checkpoint with Active Replica and write flag.( at this 
step cpd got crashed)

Following is the syslog: 
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer (applier) connected: 
14028 (@safLogService_appl) <2163, 2020f>
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: NO Assigned 
'safSi=SC-2N,safApp=OpenSAF' ACTIVE to 'safSu=SC-2,safSg=2N,safApp=OpenSAF'
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer (applier) connected: 
14029 (@safSmf_applier1) <131, 2020f>
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Peer up on node 0x2010f
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Got peer info request from node 
0x2010f with role STANDBY
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Got peer info response from node 
0x2010f with role STANDBY
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer disconnected 14017 
<0, 2010f> (@OpenSafImmReplicatorB)
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: NO 
'safComp=CPD,safSu=SC-2,safSg=2N,safApp=OpenSAF' faulted due to 'avaDown' : 
Recovery is 'nodeFailfast'
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: ER 
safComp=CPD,safSu=SC-2,safSg=2N,safApp=OpenSAF Faulted due to:avaDown Recovery 
is:nodeFailfast
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: Rebooting OpenSAF NodeId = 131599 
EE Name = , Reason: Component faulted: recovery is node failfast, OwnNodeId = 
131599, SupervisionTime = 60
Mar  2 13:25:38 TestBed-R2 opensaf_reboot: Rebooting local node; timeout=60


BT 
(gdb) bt
0  0x7fa91d057c95 in cpd_proc_increase_node_user_info 
(ckpt_node=0x7fa91d2bcff0, cpnd_dest=566317152296976, open_flags=2)
at src/ckpt/ckptd/cpd_proc.c:1650
1  0x7fa91d046bd0 in cpd_evt_proc_ckpt_usr_info (cb=0x7fa91d299980, 
evt=0x7fa91d2bd120, sinfo=0x7fa91d2bd778) at src/ckpt/ckptd/cpd_evt.c:455
2  0x7fa91d045799 in cpd_process_evt (evt=0x7fa91d2bd110) at 
src/ckpt/ckptd/cpd_evt.c:116
3  0x7fa91d04df15 in cpd_main_process (cb=0x7fa91d299980) at 
src/ckpt/ckptd/cpd_init.c:661
4  0x7fa91d04e241 in main (argc=1, argv=0x7fffd6210e78) at 
src/ckpt/ckptd/cpd_main.c:74
(gdb)


Notes:
1. Syslog of both controllers attched
2. BT attached
3. Both nodes are not in time sysnc, there is time gap between two nodes 
   Relative to SC-2, SC-1 is (+50 min ahead) 
Time Diff
==
TestBed-R1:~ # date
Thu Mar  2 16:34:45 IST 2017
TestBed-R2:~ # date
Thu Mar  2 15:44:30 IST 2017
=


---

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.--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets


[tickets] [opensaf:tickets] #2333 imm: Fix all Cppcheck 1.77 issue

2017-03-09 Thread A V Mahesh (AVM)
- **Milestone**: next --> 5.2.RC1



---

** [tickets:#2333] imm: Fix all Cppcheck 1.77 issue**

**Status:** fixed
**Milestone:** 5.2.RC1
**Created:** Fri Mar 03, 2017 04:05 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 10, 2017 03:56 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/imm/immnd/ImmModel.cc:2985] -> 
[staging/src/imm/immnd/ImmModel.cc:3002]: (warning) Either the condition 
'increment&' is redundant or there is possible null pointer 
dereference: immObject.
[staging/src/imm/immnd/ImmModel.cc:2986] -> 
[staging/src/imm/immnd/ImmModel.cc:3002]: (warning) Either the condition 
'increment&' is redundant or there is possible null pointer 
dereference: immObject.
[staging/src/imm/immnd/ImmModel.cc:10798]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:11027]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:12510]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:13921]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:2980] -> 
[staging/src/imm/immnd/ImmModel.cc:2984]: (style) Variable 'immObject' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7141] -> 
[staging/src/imm/immnd/ImmModel.cc:7154]: (style) Variable 'current' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7445] -> 
[staging/src/imm/immnd/ImmModel.cc:7455]: (style) Variable 'ccb' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7448] -> 
[staging/src/imm/immnd/ImmModel.cc:7460]: (style) Variable 'oMut' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7541] -> 
[staging/src/imm/immnd/ImmModel.cc:7550]: (style) Variable 'afim' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7579] -> 
[staging/src/imm/immnd/ImmModel.cc:7589]: (style) Variable 'afim' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:14144] -> 
[staging/src/imm/immnd/ImmModel.cc:14148]: (style) Variable 'immObject' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:673]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:905]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:931]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1041]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1074]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1882]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:2031]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:5462]: (style) The scope of the variable 
'ai' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:16545]: (style) The scope of the variable 
'sendCompletedToSlave' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:19363]: (style) Unused variable: i3
[staging/src/imm/immnd/ImmModel.cc:104]: (style) Struct 
'ImplementerCcbAssociation' has a constructor with 1 argument that is not 
explicit.
[staging/src/imm/immnd/ImmModel.cc:118]: (style) Struct 'ClassInfo' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:269]: (style) Struct 'ObjectMutation' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:576]: (style) Struct 'AttrFlagIncludes' has 
a constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:587]: (style) Struct 'IdIs' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:598]: (style) Struct 'CcbIdIs' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:4862]: (style) Struct 'AttrDescriptionGet' 
has a constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:10556]: (error) Common realloc mistake: 
'fmtError' nulled but not freed upon failure
[staging/src/imm/immnd/immnd_clm.c:165] -> 
[staging/src/imm/immnd/immnd_clm.c:169]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[staging/src/imm/immnd/immnd_db.c:85] -> [staging/src/imm/immnd/immnd_db.c:89]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/imm/immnd/immnd_db.c:107] -> 
[staging/src/imm/immnd/immnd_db.c:109]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[staging/src/imm/immnd/immnd_evt.c:1040] -> 
[staging/src/imm/immnd/immnd_evt.c:1041]: (style) Variable 'tmp_hdl' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/immnd_evt.c:1381] -> 
[staging/src/imm/immnd/immnd_evt.c:1388]: (style) Variable 'al' is

[tickets] [opensaf:tickets] #2333 imm: Fix all Cppcheck 1.77 issue

2017-03-09 Thread A V Mahesh (AVM)
- **status**: review --> fixed
- **Comment**:

changeset:   8675:4887e2a6d8a2
tag: tip
user:A V Mahesh <mahesh.va...@oracle.com>
date:Thu Mar 09 08:24:57 2017 +0530
summary: imm: Fix all Cppcheck 1.77 issues [#2333]



---

** [tickets:#2333] imm: Fix all Cppcheck 1.77 issue**

**Status:** fixed
**Milestone:** next
**Created:** Fri Mar 03, 2017 04:05 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 06:32 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/imm/immnd/ImmModel.cc:2985] -> 
[staging/src/imm/immnd/ImmModel.cc:3002]: (warning) Either the condition 
'increment&' is redundant or there is possible null pointer 
dereference: immObject.
[staging/src/imm/immnd/ImmModel.cc:2986] -> 
[staging/src/imm/immnd/ImmModel.cc:3002]: (warning) Either the condition 
'increment&' is redundant or there is possible null pointer 
dereference: immObject.
[staging/src/imm/immnd/ImmModel.cc:10798]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:11027]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:12510]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:13921]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:2980] -> 
[staging/src/imm/immnd/ImmModel.cc:2984]: (style) Variable 'immObject' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7141] -> 
[staging/src/imm/immnd/ImmModel.cc:7154]: (style) Variable 'current' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7445] -> 
[staging/src/imm/immnd/ImmModel.cc:7455]: (style) Variable 'ccb' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7448] -> 
[staging/src/imm/immnd/ImmModel.cc:7460]: (style) Variable 'oMut' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7541] -> 
[staging/src/imm/immnd/ImmModel.cc:7550]: (style) Variable 'afim' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7579] -> 
[staging/src/imm/immnd/ImmModel.cc:7589]: (style) Variable 'afim' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:14144] -> 
[staging/src/imm/immnd/ImmModel.cc:14148]: (style) Variable 'immObject' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:673]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:905]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:931]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1041]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1074]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1882]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:2031]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:5462]: (style) The scope of the variable 
'ai' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:16545]: (style) The scope of the variable 
'sendCompletedToSlave' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:19363]: (style) Unused variable: i3
[staging/src/imm/immnd/ImmModel.cc:104]: (style) Struct 
'ImplementerCcbAssociation' has a constructor with 1 argument that is not 
explicit.
[staging/src/imm/immnd/ImmModel.cc:118]: (style) Struct 'ClassInfo' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:269]: (style) Struct 'ObjectMutation' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:576]: (style) Struct 'AttrFlagIncludes' has 
a constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:587]: (style) Struct 'IdIs' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:598]: (style) Struct 'CcbIdIs' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:4862]: (style) Struct 'AttrDescriptionGet' 
has a constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:10556]: (error) Common realloc mistake: 
'fmtError' nulled but not freed upon failure
[staging/src/imm/immnd/immnd_clm.c:165] -> 
[staging/src/imm/immnd/immnd_clm.c:169]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[staging/src/imm/immnd/immnd_db.c:85] -> [staging/src/imm/immnd/immnd_db.c:89]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/imm/immnd/immnd_db.c:107] -> 
[staging/src/imm/immnd/immnd_db.c:109]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[staging/src/imm/immnd/immnd_evt.c:1040] -> 
[staging/src/imm/immnd/immn

[tickets] [opensaf:tickets] #2341 amf: Fix all Cppcheck 1.77 issues

2017-03-08 Thread A V Mahesh (AVM)
- **status**: accepted --> review
- **Milestone**: next --> 5.2.RC1



---

** [tickets:#2341] amf:  Fix all Cppcheck 1.77 issues**

**Status:** review
**Milestone:** 5.2.RC1
**Created:** Fri Mar 03, 2017 06:40 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 06:45 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/amf/amfd/app.cc:285]: (style) The scope of the variable 'i' can be 
reduced.
[staging/src/amf/amfd/apptype.cc:137]: (style) Condition 'rc!=0' is always false
[staging/src/amf/amfd/apptype.cc:69]: (style) The scope of the variable 
'sg_type' can be reduced.
[staging/src/amf/amfd/chkop.cc:1297] -> [staging/src/amf/amfd/chkop.cc:1302]: 
(style) Variable 'uba' is reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:374] -> 
[staging/src/amf/amfd/ckpt_dec.cc:382]: (style) Variable 'status' is reassigned 
a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:573] -> 
[staging/src/amf/amfd/ckpt_dec.cc:577]: (style) Variable 'status' is reassigned 
a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:1109]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_edu.cc:51] -> [staging/src/amf/amfd/ckpt_edu.cc:56]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:2281] -> 
[staging/src/amf/amfd/ckpt_enc.cc:2288]: (style) Variable 'status' is 
reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:2314] -> 
[staging/src/amf/amfd/ckpt_enc.cc:2322]: (style) Variable 'status' is 
reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:1951]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:1982]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2015]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2044]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2076]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2111]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2151]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2176]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2216]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2252]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2470]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/clm.cc:344]: (performance) Prefer prefix ++/-- operators 
for non-primitive types.
[staging/src/amf/amfd/cluster.cc:82]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/cluster.cc:95]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/cluster.cc:116]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/comp.cc:1269] -> [staging/src/amf/amfd/comp.cc:1284]: 
(style) Variable 'su_node_ptr' is reassigned a value before the old one has 
been used.
[staging/src/amf/amfd/comp.cc:49]: (style) The scope of the variable 'rc' can 
be reduced.
[staging/src/amf/amfd/comp.cc:946]: (performance) Prefer prefix ++/-- operators 
for non-primitive types.
[staging/src/amf/amfd/compcstype.cc:92] -> 
[staging/src/amf/amfd/compcstype.cc:99]: (style) Variable 'cst' is reassigned a 
value before the old one has been used.
[staging/src/amf/amfd/compcstype.cc:46]: (style) The scope of the variable 'rc' 
can be reduced.
[staging/src/amf/amfd/comptype.cc:417]: (style) The scope of the variable 'i' 
can be reduced.
[staging/src/amf/amfd/csi.cc:626]: (warning) Comparison of a boolean expression 
with an integer.
[staging/src/amf/amfd/csi.cc:1418] -> [staging/src/amf/amfd/csi.cc:1410]: 
(warning) Either the condition 'ptr!=nullptr' is redundant or there is possible 
null pointer dereference: ptr.
[staging/src/amf/amfd/csi.cc:921] -> [staging/src/amf/amfd/csi.cc:925]: (style) 
Variable 'csi' is reassigned a value before the old one has been used.
[staging/src/amf/amfd/csi.cc:1370] -> [staging/src/amf/amfd/csi.cc:1375]: 
(style) Variable 'i_attr' is reassigned a value before the old one has been 
used.
[staging/src/amf/amfd/csi.cc:1491]: (style) The scope of the variable 'susi' 
can be reduced.
[staging/src/amf/amfd/csi.cc:1492]: (style) The scope of the variable 'si' can 
be reduced.
[staging/src/amf/amfd/csiattr.cc:541]: (style) The scope of the variable 
'attribute' can be reduced.
[staging/src/amf/amfd/

[tickets] [opensaf:tickets] #2350 mds: reduce log level to Err for TIPC_ERR_OVERLOAD in syslog

2017-03-07 Thread A V Mahesh (AVM)
- **status**: review --> fixed
- **Comment**:

changeset:   8655:45be1e612ab6
tag: tip
user:A V Mahesh <mahesh.va...@oracle.com>
date:Tue Mar 07 13:09:21 2017 +0530
summary: mds: reduce log level to Err for TIPC_ERR_OVERLOAD in syslog 
[#2350]



---

** [tickets:#2350] mds: reduce log level to Err for TIPC_ERR_OVERLOAD in syslog 
**

**Status:** fixed
**Milestone:** 5.2.RC1
**Created:** Tue Mar 07, 2017 03:21 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Mar 07, 2017 03:31 AM UTC
**Owner:** A V Mahesh (AVM)


 CR MDTM: undelivered message condition ancillary data: TIPC_ERR_OVERLOAD
 CR MDTM: undelivered message condition ancillary data: TIPC_RETDATA

Note : MDS still maintained as MDS_LOG_CRITICAL


---

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.--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets


[tickets] [opensaf:tickets] #2335 dtm: Fix all Cppcheck 1.77 issues

2017-03-06 Thread A V Mahesh (AVM)
- **status**: accepted --> invalid
- **Comment**:

No CPP (.CC file) erros exist



---

** [tickets:#2335] dtm: Fix all Cppcheck 1.77 issues**

**Status:** invalid
**Milestone:** next
**Created:** Fri Mar 03, 2017 04:12 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 04:12 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/dtm/dtmnd/dtm_inter_trans.c:337]: (style) Condition 
'NULL!=mov_ptr.next' is always true
[staging/src/dtm/dtmnd/dtm_inter_trans.c:225] -> 
[staging/src/dtm/dtmnd/dtm_inter_trans.c:228]: (style) Variable 'node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_inter_trans.c:257] -> 
[staging/src/dtm/dtmnd/dtm_inter_trans.c:260]: (style) Variable 'node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra.c:363] -> 
[staging/src/dtm/dtmnd/dtm_intra.c:367]: (style) Variable 'data' is reassigned 
a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra.c:442] -> 
[staging/src/dtm/dtmnd/dtm_intra.c:444]: (style) Variable 'node' is reassigned 
a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra.c:631] -> 
[staging/src/dtm/dtmnd/dtm_intra.c:633]: (style) Variable 'msg_elem' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra.c:193]: (information) Skipping configuration 
'MDS_PORT_NUMBER' since the value of 'MDS_PORT_NUMBER' is unknown. Use -D if 
you want to check it. You can use -U to skip it explicitly.
[staging/src/dtm/dtmnd/dtm_intra.c:207]: (information) Skipping configuration 
'MDS_PORT_NUMBER' since the value of 'MDS_PORT_NUMBER' is unknown. Use -D if 
you want to check it. You can use -U to skip it explicitly.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:85] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:88]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:132] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:133]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:145] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:147]: (style) Variable 'subscr_tmp' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:175] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:176]: (style) Variable 'svc_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:270] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:272]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:379] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:398]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:476] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:478]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:485] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:497]: (style) Variable 'subscr_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:590] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:592]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:602] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:605]: (style) Variable 'data_subscr' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:643] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:645]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:701] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:703]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1316] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1321]: (style) Variable 'local_svc_info' 
is reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1353] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1354]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1577] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1578]: (style) Variable 'node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1669] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1670]: (style) Variable 'node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1711] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1716]: (style) Variable 'svc_info' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1840] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1846]: (style) Variable 'svc_info' is 
reassigned a value before the old one 

[tickets] [opensaf:tickets] #2334 clm: Fix all Cppcheck 1.77 issue

2017-03-06 Thread A V Mahesh (AVM)
- **status**: accepted --> wontfix
- **Comment**:

No .cc files sof far in CLM



---

** [tickets:#2334] clm: Fix all Cppcheck 1.77 issue **

**Status:** wontfix
**Milestone:** next
**Created:** Fri Mar 03, 2017 04:09 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 04:09 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/clm/clmd/clms_evt.c:602] -> [staging/src/clm/clmd/clms_evt.c:545]: 
(warning) Either the condition 'node!=NULL' is redundant or there is possible 
null pointer dereference: node.
[staging/src/clm/clmd/clms_evt.c:603] -> [staging/src/clm/clmd/clms_evt.c:545]: 
(warning) Either the condition 'node!=NULL' is redundant or there is possible 
null pointer dereference: node.
[staging/src/clm/clmd/clms_evt.c:618]: (warning) Possible null pointer 
dereference: ip
[staging/src/clm/clmd/clms_evt.c:101] -> [staging/src/clm/clmd/clms_evt.c:104]: 
(style) Variable 'clma_down_rec' is reassigned a value before the old one has 
been used.
[staging/src/clm/clmd/clms_evt.c:177] -> [staging/src/clm/clmd/clms_evt.c:182]: 
(style) Variable 'client' is reassigned a value before the old one has been 
used.
[staging/src/clm/clmd/clms_evt.c:188] -> [staging/src/clm/clmd/clms_evt.c:191]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:504] -> [staging/src/clm/clmd/clms_evt.c:521]: 
(style) Variable 'node' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:678] -> [staging/src/clm/clmd/clms_evt.c:683]: 
(style) Variable 'node_name' is reassigned a value before the old one has been 
used.
[staging/src/clm/clmd/clms_evt.c:679] -> [staging/src/clm/clmd/clms_evt.c:684]: 
(style) Variable 'op_node' is reassigned a value before the old one has been 
used.
[staging/src/clm/clmd/clms_evt.c:677] -> [staging/src/clm/clmd/clms_evt.c:687]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:873] -> [staging/src/clm/clmd/clms_evt.c:877]: 
(style) Variable 'node' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:1039] -> 
[staging/src/clm/clmd/clms_evt.c:1048]: (style) Variable 'op_node' is 
reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:1134] -> 
[staging/src/clm/clmd/clms_evt.c:1142]: (style) Variable 'node' is reassigned a 
value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:1236] -> 
[staging/src/clm/clmd/clms_evt.c:1240]: (style) Variable 'node' is reassigned a 
value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:2028] -> 
[staging/src/clm/clmd/clms_evt.c:2036]: (style) Variable 'mds_rc' is reassigned 
a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:2046] -> 
[staging/src/clm/clmd/clms_evt.c:2052]: (style) Variable 'node_down_rec' is 
reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:178] -> [staging/src/clm/clmd/clms_imm.c:184]: 
(style) Variable 'node' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:275] -> [staging/src/clm/clmd/clms_imm.c:295]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:335] -> [staging/src/clm/clmd/clms_imm.c:352]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:690] -> [staging/src/clm/clmd/clms_imm.c:693]: 
(style) Variable 'node' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:993] -> [staging/src/clm/clmd/clms_imm.c:996]: 
(style) Variable 'trk' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:1721] -> 
[staging/src/clm/clmd/clms_imm.c:1726]: (style) Variable 'node' is reassigned a 
value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:1998] -> 
[staging/src/clm/clmd/clms_imm.c:2004]: (style) Variable 'node' is reassigned a 
value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:1527]: (style) The scope of the variable 'i' 
can be reduced.
[staging/src/clm/clmd/clms_imm.c:1528]: (style) The scope of the variable 
'attrMod' can be reduced.
[staging/src/clm/clmd/clms_imm.c:1529]: (style) The scope of the variable 
'name' can be reduced.
[staging/src/clm/clmd/clms_imm.c:557]: (style) Variable 'attr_Mod' is assigned 
a value that is never used.
[staging/src/clm/clmd/clms_imm.c:649]: (style) Variable 'attr_Mod' is assigned 
a value that is never used.
[staging/src/clm/clmd/clms_imm.c:829]: (style) Variable 'attr_Mod' is assigned 
a value that is never used.
[staging/src/clm/clmd/clms_main.c:329]: (style) Suspicious condition 
(assignment + comparison); Clarify expression with parentheses.
[staging/src/clm/clmd/clms_main.c:87] -> [staging/src/clm/clmd/clms_main.c:91]: 
(style) Variable 'evt' is re

[tickets] [opensaf:tickets] #2178 MDS: mdstest 13 14 failed

2017-03-06 Thread A V Mahesh (AVM)
- **status**: review --> fixed
- **Comment**:

changeset:   8650:b1794d3c341d
tag: tip
user:Hoang Vo 
date:Tue Mar 07 09:57:48 2017 +0530
summary: mdstest: correct test cases [#2178]



---

** [tickets:#2178] MDS: mdstest 13 14 failed**

**Status:** fixed
**Milestone:** 5.2.RC1
**Created:** Tue Nov 08, 2016 06:58 AM UTC by Quyen Dao
**Last Updated:** Mon Mar 06, 2017 07:51 AM UTC
**Owner:** Vo Minh Hoang
**Attachments:**

- 
[mdstest_13_14_mds.log](https://sourceforge.net/p/opensaf/tickets/2178/attachment/mdstest_13_14_mds.log)
 (65.8 kB; application/octet-stream)


Changeset: 8287:bcc7af78a5a7
OS: Ubuntu 16.04
MDS transport: TCP

root@SC-1:~# export MDS_LOG_LEVEL=5
root@SC-1:~# mdstest 13 14

Suite 13: Direct Just Send test cases
/ntet_initialise_setup: Get an ADEST handle,Create PWE=2 on ADEST,Install 
EXTMIN and INTMIN svc on ADEST,Install INTMIN,EXTMIN services on ADEST's PWE=2,
Create VDEST 100 and VDEST 200,Change the role of VDEST 200 to ACTIVE,
Install EXTMIN  service on VDEST 100,Install INTMIN, EXTMIN services on 
VDEST 200

ADEST <2010f021f > : GET_HDLS is SUCCESSFUL
 100 : VDEST_CREATE is SUCCESSFUL
 200 : VDEST_CREATE is SUCCESSFUL
VDEST_CHANGE ROLE to 1 is SUCCESSFULL
PWE_CREATE is SUCCESSFUL : PWE = 2
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 256 : SERVICE INSTALL is SUCCESSFULL
 512 : SERVICE INSTALL is SUCCESSFULL
 MDS SERVICE SUBSCRIBE is SUCCESSFULL
The Subscriber Service id = 512 is on ADEST
UP: Subscribed Svc = 512 with svc pvt ver = 1 is UP on dest=  anchor= <0> 
role= 1 with PWE id = 1 on node = 2010f

The Subscriber Service id = 512 is on ADEST
UP: Subscribed Svc = 512 with svc pvt ver = 3 is UP on dest= <2010f021f> 
anchor= <0> role= 1 with PWE id = 1 on node = 2010f

 MDS RETRIEVE is SUCCESSFULL
Test Case 14: Not able to send a message of size >(MDS_DIRECT_BUF_MAXSIZE) to 
2000

Request to ncsmds_api: MDS DIRECT SEND is SUCCESSFULL
Fail

Cancel subscription

 MDS CANCEL SUBSCRIBE is SUCCESSFULLUninstalling the services on both 
VDESTs and ADEST

 UnInstalling the Services on both the VDESTs

 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 256 : SERVICE UNINSTALL is SUCCESSFULL
 MDS RETRIEVE is SUCCESSFULL
 512 : SERVICE UNINSTALL is SUCCESSFULL
Destroying the VDESTS
Destroying both the VDESTs and PWE=2 on ADEST

VDEST_CHANGE ROLE to 2 is SUCCESSFULL
 200 : VDEST_DESTROY is SUCCESSFULL
VDEST_CHANGE ROLE to 2 is SUCCESSFULL
 100 : VDEST_DESTROY is SUCCESSFULL
Direct Receive callback
 The Sender service is = 512 is on <2010f021f> destination with anchor = 
<2010f021f> on Node = 2010f with msg fmt ver=1

The Receiver service is = 512 is on <2010f021f> destination

Received Message len = 8002 and the message 
is=sss
 
s
 

[tickets] [opensaf:tickets] #2326 log : fix all cpp check issues

2017-03-06 Thread A V Mahesh (AVM)
- **status**: review --> fixed
- **Comment**:

changeset:   8649:4a94f841107b
tag: tip
user:A V Mahesh <mahesh.va...@oracle.com>
date:Tue Mar 07 09:44:44 2017 +0530
summary: log: Fix all Cppcheck 1.77 issues [#2326]



---

** [tickets:#2326] log : fix all cpp check issues **

**Status:** fixed
**Milestone:** next
**Created:** Mon Feb 27, 2017 03:40 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Feb 28, 2017 06:47 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/log/logd/lgs_config.h:90]: (performance) Function parameter 
param_name should be passed by reference.
[staging/src/log/logd/lgs_config.h:230]: (performance) Function parameter 
attribute_name should be passed by reference.
[staging/src/log/logd/lgs_config.h:231]: (performance) Function parameter 
value_list should be passed by reference.
[staging/src/log/logd/lgs_config.h:238]: (performance) Function parameter 
attribute_name should be passed by reference.
[staging/src/log/logd/lgs_config.h:239]: (performance) Function parameter 
value_list should be passed by reference.
[staging/src/log/logd/lgs_clm.cc:137]: (style) The scope of the variable 
clm_node can be reduced.
[staging/src/log/logd/lgs_clm.cc:220]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/log/logd/lgs_config.cc:401] -> 
[staging/src/log/logd/lgs_config.cc:498]: (warning) Either the condition 
allocmem_ptr!=NULL is redundant or there is possible null pointer dereference: 
param_ptr.
[staging/src/log/logd/lgs_config.cc:410] -> 
[staging/src/log/logd/lgs_config.cc:498]: (warning) Either the condition 
allocmem_ptr!=NULL is redundant or there is possible null pointer dereference: 
param_ptr.
[staging/src/log/logd/lgs_config.cc:184] -> 
[staging/src/log/logd/lgs_config.cc:190]: (style) Variable cfg_param_str is 
reassigned a value before the old one has been used.
[staging/src/log/logd/lgs_config.cc:183]: (style) The scope of the variable 
prev_size can be reduced.
[staging/src/log/logd/lgs_config.cc:727]: (style) The scope of the variable 
nl_cnt can be reduced.
[staging/src/log/logd/lgs_config.cc:995]: (style) The scope of the variable 
value_string can be reduced.
[staging/src/log/logd/lgs_config.cc:1034]: (style) The scope of the variable n 
can be reduced.
[staging/src/log/logd/lgs_config.cc:142]: (warning) Member variable 
_lgs_conf_t::chkp_file_close_time is not initialized in the constructor.
[staging/src/log/logd/lgs_config.cc:293]: (performance) Function parameter 
attribute_name should be passed by reference.
[staging/src/log/logd/lgs_config.cc:294]: (performance) Function parameter 
value_list should be passed by reference.
[staging/src/log/logd/lgs_config.cc:324]: (performance) Function parameter 
attribute_name should be passed by reference.
[staging/src/log/logd/lgs_config.cc:325]: (performance) Function parameter 
value_list should be passed by reference.
[staging/src/log/logd/lgs_evt.cc:531] -> [staging/src/log/logd/lgs_evt.cc:536]: 
(style) Variable lga_down_rec is reassigned a value before the old one has been 
used.
[staging/src/log/logd/lgs_evt.cc:416]: (style) The scope of the variable 
ckpt_ptr can be reduced.
[staging/src/log/logd/lgs_evt.cc:553]: (style) The scope of the variable stream 
can be reduced.
[staging/src/log/logd/lgs_evt.cc:163]: (error) Mismatching allocation and 
deallocation: client
[staging/src/log/logd/lgs_evt.cc:168]: (error) Mismatching allocation and 
deallocation: client
[staging/src/log/logd/lgs_evt.cc:344]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/log/logd/lgs_filehdl.cc:542]: (style) Variable len is assigned a 
value that is never used.
[staging/src/log/logd/lgs_fmt.cc:560]: (style) The scope of the variable no_ch 
can be reduced.
[staging/src/log/logd/lgs_imm.cc:3478] -> 
[staging/src/log/logd/lgs_imm.cc:3479]: (warning) Either the condition 
attribute!=NULL is redundant or there is possible null pointer dereference: 
attribute.
[staging/src/log/logd/lgs_imm.cc:963]: (style) The scope of the variable i can 
be reduced.
[staging/src/log/logd/lgs_imm.cc:1885]: (style) The scope of the variable 
current_time can be reduced.
[staging/src/log/logd/lgs_imm.cc:1924]: (style) The scope of the variable 
stream can be reduced.
[staging/src/log/logd/lgs_imm.cc:3264]: (style) The scope of the variable 
name_str can be reduced.
[staging/src/log/logd/lgs_imm.cc:3474]: (style) The scope of the variable value 
can be reduced.
[staging/src/log/logd/lgs_imm_gcfg.cc:857] -> 
[staging/src/log/logd/lgs_imm_gcfg.cc:859]: (style) Variable rc is reassigned a 
value before the old one has been used.
[staging/src/log/logd/lgs_imm_gcfg.cc:532]: (style) The scope of the variable 
name_len can be reduced.
[staging/src/log/logd/lgs_imm_gcfg.cc:940]: (style) The scope of the variable 
rc can be reduced.
[staging/src/log/logd/lgs_main.cc:319]: (style) Suspicious condition 
(assignment + comparison); Clarify expression with parenth

[tickets] [opensaf:tickets] #2350 mds: reduce log level to Err for TIPC_ERR_OVERLOAD in syslog

2017-03-06 Thread A V Mahesh (AVM)
- **status**: accepted --> review



---

** [tickets:#2350] mds: reduce log level to Err for TIPC_ERR_OVERLOAD in syslog 
**

**Status:** review
**Milestone:** 5.2.RC1
**Created:** Tue Mar 07, 2017 03:21 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Mar 07, 2017 03:21 AM UTC
**Owner:** A V Mahesh (AVM)


 CR MDTM: undelivered message condition ancillary data: TIPC_ERR_OVERLOAD
 CR MDTM: undelivered message condition ancillary data: TIPC_RETDATA

Note : MDS still maintained as MDS_LOG_CRITICAL


---

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.--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets


[tickets] [opensaf:tickets] #2350 mds: reduce log level to Err for TIPC_ERR_OVERLOAD in syslog

2017-03-06 Thread A V Mahesh (AVM)



---

** [tickets:#2350] mds: reduce log level to Err for TIPC_ERR_OVERLOAD in syslog 
**

**Status:** accepted
**Milestone:** 5.2.RC1
**Created:** Tue Mar 07, 2017 03:21 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Mar 07, 2017 03:21 AM UTC
**Owner:** A V Mahesh (AVM)


 CR MDTM: undelivered message condition ancillary data: TIPC_ERR_OVERLOAD
 CR MDTM: undelivered message condition ancillary data: TIPC_RETDATA

Note : MDS still maintained as MDS_LOG_CRITICAL


---

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.--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets


[tickets] [opensaf:tickets] #2337 cpd got crashed on new Active(SC-2) during checkpoint open with Active replica and write flag after si-swap operation

2017-03-02 Thread A V Mahesh (AVM)
- **status**: unassigned --> assigned
- **assigned_to**: A V Mahesh (AVM)



---

** [tickets:#2337] cpd got crashed on new Active(SC-2) during checkpoint open 
with Active replica and write flag after si-swap operation**

**Status:** assigned
**Milestone:** 5.2.RC1
**Created:** Fri Mar 03, 2017 05:10 AM UTC by Ritu Raj
**Last Updated:** Fri Mar 03, 2017 05:12 AM UTC
**Owner:** A V Mahesh (AVM)
**Attachments:**

- 
[Syslog_cpdcrash..tar](https://sourceforge.net/p/opensaf/tickets/2337/attachment/Syslog_cpdcrash..tar)
 (13.4 MB; application/octet-stream)


#Environment details
OS : Suse 64bit
Changeset : 8634 ( 5.2.FC)
Setup : 4 nodes ( 2 controllers and 2 payloads with 1PBE enabled )


#Summary
cpd got crashed on new Active(SC-2) during checkpoint open with Active replica 
and write flag after si-swap operation

#Steps followed & Observed behaviour
Invoke switchovers
After few successfull switchovers while opening checkpoint with Active 
replica cpd got crashed
Below is the API flow:
1. Initialize ckpt with callbacks.
2. Create checkpoint with Active Replica and write flag.
3. Invoke switchover.
4. Close checkpoint.
5. Open same checkpoint with Active Replica and write flag.( at this 
step cpd got crashed)

Following is the syslog: 
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer (applier) connected: 
14028 (@safLogService_appl) <2163, 2020f>
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: NO Assigned 
'safSi=SC-2N,safApp=OpenSAF' ACTIVE to 'safSu=SC-2,safSg=2N,safApp=OpenSAF'
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer (applier) connected: 
14029 (@safSmf_applier1) <131, 2020f>
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Peer up on node 0x2010f
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Got peer info request from node 
0x2010f with role STANDBY
Mar  2 13:25:38 TestBed-R2 osafrded[2088]: NO Got peer info response from node 
0x2010f with role STANDBY
Mar  2 13:25:38 TestBed-R2 osafimmnd[2118]: NO Implementer disconnected 14017 
<0, 2010f> (@OpenSafImmReplicatorB)
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: NO 
'safComp=CPD,safSu=SC-2,safSg=2N,safApp=OpenSAF' faulted due to 'avaDown' : 
Recovery is 'nodeFailfast'
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: ER 
safComp=CPD,safSu=SC-2,safSg=2N,safApp=OpenSAF Faulted due to:avaDown Recovery 
is:nodeFailfast
Mar  2 13:25:38 TestBed-R2 osafamfnd[2168]: Rebooting OpenSAF NodeId = 131599 
EE Name = , Reason: Component faulted: recovery is node failfast, OwnNodeId = 
131599, SupervisionTime = 60
Mar  2 13:25:38 TestBed-R2 opensaf_reboot: Rebooting local node; timeout=60


BT 
(gdb) bt
0  0x7fa91d057c95 in cpd_proc_increase_node_user_info 
(ckpt_node=0x7fa91d2bcff0, cpnd_dest=566317152296976, open_flags=2)
at src/ckpt/ckptd/cpd_proc.c:1650
1  0x7fa91d046bd0 in cpd_evt_proc_ckpt_usr_info (cb=0x7fa91d299980, 
evt=0x7fa91d2bd120, sinfo=0x7fa91d2bd778) at src/ckpt/ckptd/cpd_evt.c:455
2  0x7fa91d045799 in cpd_process_evt (evt=0x7fa91d2bd110) at 
src/ckpt/ckptd/cpd_evt.c:116
3  0x7fa91d04df15 in cpd_main_process (cb=0x7fa91d299980) at 
src/ckpt/ckptd/cpd_init.c:661
4  0x7fa91d04e241 in main (argc=1, argv=0x7fffd6210e78) at 
src/ckpt/ckptd/cpd_main.c:74
(gdb)


Notes:
1. Syslog of both controllers attched
2. BT attached
3. Both nodes are not in time sysnc, there is time gap between two nodes 
   Relative to SC-2, SC-1 is (+50 min ahead) 
Time Diff
==
TestBed-R1:~ # date
Thu Mar  2 16:34:45 IST 2017
TestBed-R2:~ # date
Thu Mar  2 15:44:30 IST 2017
=


---

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] #2342 smf: Fix all Cppcheck 1.77 issues

2017-03-02 Thread A V Mahesh (AVM)



---

** [tickets:#2342] smf: Fix all Cppcheck 1.77 issues**

**Status:** assigned
**Milestone:** 5.2.RC1
**Created:** Fri Mar 03, 2017 06:46 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 06:46 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/smf/smfd/SmfCampState.cc:950]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:973]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:2015]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[staging/src/smf/smfd/SmfCampState.cc:503]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:510]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:528]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:534]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:544]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:551]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:565]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:594]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:598]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:608]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:622]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:633]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:665]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:679]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:709]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:788]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:845]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1187]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1200]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1817]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampState.cc:1896]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:733]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1049]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1081]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaign.cc:1099]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:77]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:88]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:99]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:107]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:115]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:238]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:263]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:284]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:305]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignInit.cc:358]: (performance) Prefer prefix 
++/-- operators for non-primitive types.
[staging/src/smf/smfd/SmfCampaignThread.cc:262]: (style) Suspicious condition 
(assignment + comparison); Clarify expression with parentheses.
[staging/src/smf/smfd/SmfCampaignThread.cc:277]: (style) Suspicious condition 
(assignment + comparison); Clarify expression with parentheses.
[staging/src/smf/smfd/SmfCampaignWrapup.cc:75

[tickets] [opensaf:tickets] #2341 amf: Fix all Cppcheck 1.77 issues

2017-03-02 Thread A V Mahesh (AVM)
- **Component**: unknown --> amf



---

** [tickets:#2341] amf:  Fix all Cppcheck 1.77 issues**

**Status:** accepted
**Milestone:** next
**Created:** Fri Mar 03, 2017 06:40 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 06:40 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/amf/amfd/app.cc:285]: (style) The scope of the variable 'i' can be 
reduced.
[staging/src/amf/amfd/apptype.cc:137]: (style) Condition 'rc!=0' is always false
[staging/src/amf/amfd/apptype.cc:69]: (style) The scope of the variable 
'sg_type' can be reduced.
[staging/src/amf/amfd/chkop.cc:1297] -> [staging/src/amf/amfd/chkop.cc:1302]: 
(style) Variable 'uba' is reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:374] -> 
[staging/src/amf/amfd/ckpt_dec.cc:382]: (style) Variable 'status' is reassigned 
a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:573] -> 
[staging/src/amf/amfd/ckpt_dec.cc:577]: (style) Variable 'status' is reassigned 
a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:1109]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_edu.cc:51] -> [staging/src/amf/amfd/ckpt_edu.cc:56]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:2281] -> 
[staging/src/amf/amfd/ckpt_enc.cc:2288]: (style) Variable 'status' is 
reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:2314] -> 
[staging/src/amf/amfd/ckpt_enc.cc:2322]: (style) Variable 'status' is 
reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:1951]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:1982]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2015]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2044]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2076]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2111]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2151]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2176]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2216]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2252]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2470]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/clm.cc:344]: (performance) Prefer prefix ++/-- operators 
for non-primitive types.
[staging/src/amf/amfd/cluster.cc:82]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/cluster.cc:95]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/cluster.cc:116]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/comp.cc:1269] -> [staging/src/amf/amfd/comp.cc:1284]: 
(style) Variable 'su_node_ptr' is reassigned a value before the old one has 
been used.
[staging/src/amf/amfd/comp.cc:49]: (style) The scope of the variable 'rc' can 
be reduced.
[staging/src/amf/amfd/comp.cc:946]: (performance) Prefer prefix ++/-- operators 
for non-primitive types.
[staging/src/amf/amfd/compcstype.cc:92] -> 
[staging/src/amf/amfd/compcstype.cc:99]: (style) Variable 'cst' is reassigned a 
value before the old one has been used.
[staging/src/amf/amfd/compcstype.cc:46]: (style) The scope of the variable 'rc' 
can be reduced.
[staging/src/amf/amfd/comptype.cc:417]: (style) The scope of the variable 'i' 
can be reduced.
[staging/src/amf/amfd/csi.cc:626]: (warning) Comparison of a boolean expression 
with an integer.
[staging/src/amf/amfd/csi.cc:1418] -> [staging/src/amf/amfd/csi.cc:1410]: 
(warning) Either the condition 'ptr!=nullptr' is redundant or there is possible 
null pointer dereference: ptr.
[staging/src/amf/amfd/csi.cc:921] -> [staging/src/amf/amfd/csi.cc:925]: (style) 
Variable 'csi' is reassigned a value before the old one has been used.
[staging/src/amf/amfd/csi.cc:1370] -> [staging/src/amf/amfd/csi.cc:1375]: 
(style) Variable 'i_attr' is reassigned a value before the old one has been 
used.
[staging/src/amf/amfd/csi.cc:1491]: (style) The scope of the variable 'susi' 
can be reduced.
[staging/src/amf/amfd/csi.cc:1492]: (style) The scope of the variable 'si' can 
be reduced.
[staging/src/amf/amfd/csiattr.cc:541]: (style) The scope of the variable 
'attribute' can be reduced.
[staging/src/amf/amfd/ctcstype.cc:120]: (style) Condition 'rc!=

[tickets] [opensaf:tickets] #2341 amf: Fix all Cppcheck 1.77 issues

2017-03-02 Thread A V Mahesh (AVM)



---

** [tickets:#2341] amf:  Fix all Cppcheck 1.77 issues**

**Status:** accepted
**Milestone:** next
**Created:** Fri Mar 03, 2017 06:40 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 06:40 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/amf/amfd/app.cc:285]: (style) The scope of the variable 'i' can be 
reduced.
[staging/src/amf/amfd/apptype.cc:137]: (style) Condition 'rc!=0' is always false
[staging/src/amf/amfd/apptype.cc:69]: (style) The scope of the variable 
'sg_type' can be reduced.
[staging/src/amf/amfd/chkop.cc:1297] -> [staging/src/amf/amfd/chkop.cc:1302]: 
(style) Variable 'uba' is reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:374] -> 
[staging/src/amf/amfd/ckpt_dec.cc:382]: (style) Variable 'status' is reassigned 
a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:573] -> 
[staging/src/amf/amfd/ckpt_dec.cc:577]: (style) Variable 'status' is reassigned 
a value before the old one has been used.
[staging/src/amf/amfd/ckpt_dec.cc:1109]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_edu.cc:51] -> [staging/src/amf/amfd/ckpt_edu.cc:56]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:2281] -> 
[staging/src/amf/amfd/ckpt_enc.cc:2288]: (style) Variable 'status' is 
reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:2314] -> 
[staging/src/amf/amfd/ckpt_enc.cc:2322]: (style) Variable 'status' is 
reassigned a value before the old one has been used.
[staging/src/amf/amfd/ckpt_enc.cc:1951]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:1982]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2015]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2044]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2076]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2111]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2151]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2176]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2216]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2252]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/ckpt_enc.cc:2470]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/clm.cc:344]: (performance) Prefer prefix ++/-- operators 
for non-primitive types.
[staging/src/amf/amfd/cluster.cc:82]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/cluster.cc:95]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/cluster.cc:116]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/amf/amfd/comp.cc:1269] -> [staging/src/amf/amfd/comp.cc:1284]: 
(style) Variable 'su_node_ptr' is reassigned a value before the old one has 
been used.
[staging/src/amf/amfd/comp.cc:49]: (style) The scope of the variable 'rc' can 
be reduced.
[staging/src/amf/amfd/comp.cc:946]: (performance) Prefer prefix ++/-- operators 
for non-primitive types.
[staging/src/amf/amfd/compcstype.cc:92] -> 
[staging/src/amf/amfd/compcstype.cc:99]: (style) Variable 'cst' is reassigned a 
value before the old one has been used.
[staging/src/amf/amfd/compcstype.cc:46]: (style) The scope of the variable 'rc' 
can be reduced.
[staging/src/amf/amfd/comptype.cc:417]: (style) The scope of the variable 'i' 
can be reduced.
[staging/src/amf/amfd/csi.cc:626]: (warning) Comparison of a boolean expression 
with an integer.
[staging/src/amf/amfd/csi.cc:1418] -> [staging/src/amf/amfd/csi.cc:1410]: 
(warning) Either the condition 'ptr!=nullptr' is redundant or there is possible 
null pointer dereference: ptr.
[staging/src/amf/amfd/csi.cc:921] -> [staging/src/amf/amfd/csi.cc:925]: (style) 
Variable 'csi' is reassigned a value before the old one has been used.
[staging/src/amf/amfd/csi.cc:1370] -> [staging/src/amf/amfd/csi.cc:1375]: 
(style) Variable 'i_attr' is reassigned a value before the old one has been 
used.
[staging/src/amf/amfd/csi.cc:1491]: (style) The scope of the variable 'susi' 
can be reduced.
[staging/src/amf/amfd/csi.cc:1492]: (style) The scope of the variable 'si' can 
be reduced.
[staging/src/amf/amfd/csiattr.cc:541]: (style) The scope of the variable 
'attribute' can be reduced.
[staging/src/amf/amfd/ctcstype.cc:120]: (style) Condition 'rc!=0' is always 
false
[sta

[tickets] [opensaf:tickets] #2333 imm: Fix all Cppcheck 1.77 issue

2017-03-02 Thread A V Mahesh (AVM)
- **status**: accepted --> review



---

** [tickets:#2333] imm: Fix all Cppcheck 1.77 issue**

**Status:** review
**Milestone:** next
**Created:** Fri Mar 03, 2017 04:05 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 04:05 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/imm/immnd/ImmModel.cc:2985] -> 
[staging/src/imm/immnd/ImmModel.cc:3002]: (warning) Either the condition 
'increment&' is redundant or there is possible null pointer 
dereference: immObject.
[staging/src/imm/immnd/ImmModel.cc:2986] -> 
[staging/src/imm/immnd/ImmModel.cc:3002]: (warning) Either the condition 
'increment&' is redundant or there is possible null pointer 
dereference: immObject.
[staging/src/imm/immnd/ImmModel.cc:10798]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:11027]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:12510]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:13921]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:2980] -> 
[staging/src/imm/immnd/ImmModel.cc:2984]: (style) Variable 'immObject' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7141] -> 
[staging/src/imm/immnd/ImmModel.cc:7154]: (style) Variable 'current' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7445] -> 
[staging/src/imm/immnd/ImmModel.cc:7455]: (style) Variable 'ccb' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7448] -> 
[staging/src/imm/immnd/ImmModel.cc:7460]: (style) Variable 'oMut' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7541] -> 
[staging/src/imm/immnd/ImmModel.cc:7550]: (style) Variable 'afim' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7579] -> 
[staging/src/imm/immnd/ImmModel.cc:7589]: (style) Variable 'afim' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:14144] -> 
[staging/src/imm/immnd/ImmModel.cc:14148]: (style) Variable 'immObject' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:673]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:905]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:931]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1041]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1074]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1882]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:2031]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:5462]: (style) The scope of the variable 
'ai' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:16545]: (style) The scope of the variable 
'sendCompletedToSlave' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:19363]: (style) Unused variable: i3
[staging/src/imm/immnd/ImmModel.cc:104]: (style) Struct 
'ImplementerCcbAssociation' has a constructor with 1 argument that is not 
explicit.
[staging/src/imm/immnd/ImmModel.cc:118]: (style) Struct 'ClassInfo' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:269]: (style) Struct 'ObjectMutation' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:576]: (style) Struct 'AttrFlagIncludes' has 
a constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:587]: (style) Struct 'IdIs' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:598]: (style) Struct 'CcbIdIs' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:4862]: (style) Struct 'AttrDescriptionGet' 
has a constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:10556]: (error) Common realloc mistake: 
'fmtError' nulled but not freed upon failure
[staging/src/imm/immnd/immnd_clm.c:165] -> 
[staging/src/imm/immnd/immnd_clm.c:169]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[staging/src/imm/immnd/immnd_db.c:85] -> [staging/src/imm/immnd/immnd_db.c:89]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/imm/immnd/immnd_db.c:107] -> 
[staging/src/imm/immnd/immnd_db.c:109]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[staging/src/imm/immnd/immnd_evt.c:1040] -> 
[staging/src/imm/immnd/immnd_evt.c:1041]: (style) Variable 'tmp_hdl' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/immnd_evt.c:1381] -> 
[staging/src/imm/immnd/immnd_evt.c:1388]: (style) Variable 'al' is

[tickets] [opensaf:tickets] #2340 immnd : restarts if larg db

2017-03-02 Thread A V Mahesh (AVM)



---

** [tickets:#2340] immnd : restarts if larg db**

**Status:** unassigned
**Milestone:** 5.2.RC1
**Created:** Fri Mar 03, 2017 06:18 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 06:18 AM UTC
**Owner:** nobody


1) Configure opensaf with  --enable-ntf-imcn

/# ./bootstrap.sh ;./configure --enable-imm-pbe --enable-tests --enable-tipc 
--enable-ntf-imcn; make rpm 

2) Have a larg XML database of objects ( 70 k objects)

3) Run 

/# /usr/bin/immomtest 3 10 

error: in src/imm/apitest/management/test_saImmOmSearchInitialize_2.c at 171: 
SA_AIS_ERR_TIMEOUT (5), expected SA_AIS_OK (1) - exiting


4) Immnd restarts 

=

Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO ERR_INVALID_PARAM: Problem with new 
class 'saImmOmClassCreate_2_10'
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO ERR_INVALID_PARAM: Attribute 
'SaImmAttrImplementerName' is neither SA_IMM_ATTR_CONFIG nor SA_IMM_ATTR_RUNTIME
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO ERR_INVALID_PARAM: Attribute 
'SaImmAttrAdminOwnerName' is neither SA_IMM_ATTR_CONFIG nor SA_IMM_ATTR_RUNTIME
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO ERR_INVALID_PARAM: Attribute 
'SaImmAttrClassName' is neither SA_IMM_ATTR_CONFIG nor SA_IMM_ATTR_RUNTIME
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO ERR_INVALID_PARAM: Problem with new 
class 'saImmOmClassCreate_2_11'
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO opensafImmNostdFlags changed to: 0x1f6
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO opensafImmNostdFlags changed to: 0x1f7
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO Class 
'saImmOmClassCreate_SchemaChange_2_17' exist - check implied schema upgrade
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO Allowed upgrade, attribute 
saImmOmClassCreate_SchemaChange_2_17:attr adds flag SA_IMM_ATTR_STRONG_DEFAULT
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO Schema change for class 
saImmOmClassCreate_SchemaChange_2_17 ACCEPTED. Adding 0 and changing 1 
attribute defs
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO No instances to migrate - schema 
change could have been avoided
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO Schema change completed for class 
saImmOmClassCreate_SchemaChange_2_17
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO opensafImmNostdFlags changed to: 0x1f6
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO opensafImmNostdFlags changed to: 0x1f7
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO Class 
'saImmOmClassCreate_SchemaChange_2_18' exist - check implied schema upgrade
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO Allowed upgrade, attribute 
saImmOmClassCreate_SchemaChange_2_18:attr removes flag 
SA_IMM_ATTR_STRONG_DEFAULT
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO Schema change for class 
saImmOmClassCreate_SchemaChange_2_18 ACCEPTED. Adding 0 and changing 1 
attribute defs
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO No instances to migrate - schema 
change could have been avoided
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO Schema change completed for class 
saImmOmClassCreate_SchemaChange_2_18
Mar  3 11:40:27 SC-1 osafimmnd[32348]: NO opensafImmNostdFlags changed to: 0x1f6
Mar  3 11:40:57 SC-1 osafimmd[32335]: NO MDS event from svc_id 25 (change:4, 
dest:564114323931152)
Mar  3 11:40:57 SC-1 osafsmfd[32430]: WA DispatchOiCallback: saImmOiDispatch() 
Fail 'SA_AIS_ERR_BAD_HANDLE (9)'
Mar  3 11:40:57 SC-1 osafntfimcnd[32381]: NO saImmOiDispatch() Fail 
SA_AIS_ERR_BAD_HANDLE (9)
Mar  3 11:40:58 SC-1 osafamfnd[32412]: NO 
'safSu=SC-1,safSg=NoRed,safApp=OpenSAF' component restart probation timer 
started (timeout: 600 ns)
Mar  3 11:40:58 SC-1 osafamfnd[32412]: NO Restarting a component of 
'safSu=SC-1,safSg=NoRed,safApp=OpenSAF' (comp restart count: 1)
Mar  3 11:40:58 SC-1 osafamfnd[32412]: NO 
'safComp=IMMND,safSu=SC-1,safSg=NoRed,safApp=OpenSAF' faulted due to 'avaDown' 
: Recovery is 'componentRestart'
Mar  3 11:40:58 SC-1 osafimmd[32335]: WA IMMND coordinator at 2010f apparently 
crashed => electing new coord
Mar  3 11:40:58 SC-1 osafimmd[32335]: NO New coord elected, resides at 2020f




---

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] #2335 dtm: Fix all Cppcheck 1.77 issues

2017-03-02 Thread A V Mahesh (AVM)



---

** [tickets:#2335] dtm: Fix all Cppcheck 1.77 issues**

**Status:** accepted
**Milestone:** next
**Created:** Fri Mar 03, 2017 04:12 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 04:12 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/dtm/dtmnd/dtm_inter_trans.c:337]: (style) Condition 
'NULL!=mov_ptr.next' is always true
[staging/src/dtm/dtmnd/dtm_inter_trans.c:225] -> 
[staging/src/dtm/dtmnd/dtm_inter_trans.c:228]: (style) Variable 'node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_inter_trans.c:257] -> 
[staging/src/dtm/dtmnd/dtm_inter_trans.c:260]: (style) Variable 'node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra.c:363] -> 
[staging/src/dtm/dtmnd/dtm_intra.c:367]: (style) Variable 'data' is reassigned 
a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra.c:442] -> 
[staging/src/dtm/dtmnd/dtm_intra.c:444]: (style) Variable 'node' is reassigned 
a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra.c:631] -> 
[staging/src/dtm/dtmnd/dtm_intra.c:633]: (style) Variable 'msg_elem' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra.c:193]: (information) Skipping configuration 
'MDS_PORT_NUMBER' since the value of 'MDS_PORT_NUMBER' is unknown. Use -D if 
you want to check it. You can use -U to skip it explicitly.
[staging/src/dtm/dtmnd/dtm_intra.c:207]: (information) Skipping configuration 
'MDS_PORT_NUMBER' since the value of 'MDS_PORT_NUMBER' is unknown. Use -D if 
you want to check it. You can use -U to skip it explicitly.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:85] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:88]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:132] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:133]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:145] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:147]: (style) Variable 'subscr_tmp' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:175] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:176]: (style) Variable 'svc_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:270] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:272]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:379] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:398]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:476] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:478]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:485] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:497]: (style) Variable 'subscr_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:590] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:592]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:602] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:605]: (style) Variable 'data_subscr' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:643] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:645]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:701] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:703]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1316] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1321]: (style) Variable 'local_svc_info' 
is reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1353] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1354]: (style) Variable 'pid_node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1577] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1578]: (style) Variable 'node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1669] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1670]: (style) Variable 'node' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1711] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1716]: (style) Variable 'svc_info' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1840] -> 
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1846]: (style) Variable 'svc_info' is 
reassigned a value before the old one has been used.
[staging/src/dtm/dtmnd/dtm_intra_svc.c:1964] -> 
[staging/src

[tickets] [opensaf:tickets] #2334 clm: Fix all Cppcheck 1.77 issue

2017-03-02 Thread A V Mahesh (AVM)



---

** [tickets:#2334] clm: Fix all Cppcheck 1.77 issue **

**Status:** accepted
**Milestone:** next
**Created:** Fri Mar 03, 2017 04:09 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 04:09 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/clm/clmd/clms_evt.c:602] -> [staging/src/clm/clmd/clms_evt.c:545]: 
(warning) Either the condition 'node!=NULL' is redundant or there is possible 
null pointer dereference: node.
[staging/src/clm/clmd/clms_evt.c:603] -> [staging/src/clm/clmd/clms_evt.c:545]: 
(warning) Either the condition 'node!=NULL' is redundant or there is possible 
null pointer dereference: node.
[staging/src/clm/clmd/clms_evt.c:618]: (warning) Possible null pointer 
dereference: ip
[staging/src/clm/clmd/clms_evt.c:101] -> [staging/src/clm/clmd/clms_evt.c:104]: 
(style) Variable 'clma_down_rec' is reassigned a value before the old one has 
been used.
[staging/src/clm/clmd/clms_evt.c:177] -> [staging/src/clm/clmd/clms_evt.c:182]: 
(style) Variable 'client' is reassigned a value before the old one has been 
used.
[staging/src/clm/clmd/clms_evt.c:188] -> [staging/src/clm/clmd/clms_evt.c:191]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:504] -> [staging/src/clm/clmd/clms_evt.c:521]: 
(style) Variable 'node' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:678] -> [staging/src/clm/clmd/clms_evt.c:683]: 
(style) Variable 'node_name' is reassigned a value before the old one has been 
used.
[staging/src/clm/clmd/clms_evt.c:679] -> [staging/src/clm/clmd/clms_evt.c:684]: 
(style) Variable 'op_node' is reassigned a value before the old one has been 
used.
[staging/src/clm/clmd/clms_evt.c:677] -> [staging/src/clm/clmd/clms_evt.c:687]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:873] -> [staging/src/clm/clmd/clms_evt.c:877]: 
(style) Variable 'node' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:1039] -> 
[staging/src/clm/clmd/clms_evt.c:1048]: (style) Variable 'op_node' is 
reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:1134] -> 
[staging/src/clm/clmd/clms_evt.c:1142]: (style) Variable 'node' is reassigned a 
value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:1236] -> 
[staging/src/clm/clmd/clms_evt.c:1240]: (style) Variable 'node' is reassigned a 
value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:2028] -> 
[staging/src/clm/clmd/clms_evt.c:2036]: (style) Variable 'mds_rc' is reassigned 
a value before the old one has been used.
[staging/src/clm/clmd/clms_evt.c:2046] -> 
[staging/src/clm/clmd/clms_evt.c:2052]: (style) Variable 'node_down_rec' is 
reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:178] -> [staging/src/clm/clmd/clms_imm.c:184]: 
(style) Variable 'node' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:275] -> [staging/src/clm/clmd/clms_imm.c:295]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:335] -> [staging/src/clm/clmd/clms_imm.c:352]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:690] -> [staging/src/clm/clmd/clms_imm.c:693]: 
(style) Variable 'node' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:993] -> [staging/src/clm/clmd/clms_imm.c:996]: 
(style) Variable 'trk' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:1721] -> 
[staging/src/clm/clmd/clms_imm.c:1726]: (style) Variable 'node' is reassigned a 
value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:1998] -> 
[staging/src/clm/clmd/clms_imm.c:2004]: (style) Variable 'node' is reassigned a 
value before the old one has been used.
[staging/src/clm/clmd/clms_imm.c:1527]: (style) The scope of the variable 'i' 
can be reduced.
[staging/src/clm/clmd/clms_imm.c:1528]: (style) The scope of the variable 
'attrMod' can be reduced.
[staging/src/clm/clmd/clms_imm.c:1529]: (style) The scope of the variable 
'name' can be reduced.
[staging/src/clm/clmd/clms_imm.c:557]: (style) Variable 'attr_Mod' is assigned 
a value that is never used.
[staging/src/clm/clmd/clms_imm.c:649]: (style) Variable 'attr_Mod' is assigned 
a value that is never used.
[staging/src/clm/clmd/clms_imm.c:829]: (style) Variable 'attr_Mod' is assigned 
a value that is never used.
[staging/src/clm/clmd/clms_main.c:329]: (style) Suspicious condition 
(assignment + comparison); Clarify expression with parentheses.
[staging/src/clm/clmd/clms_main.c:87] -> [staging/src/clm/clmd/clms_main.c:91]: 
(style) Variable 'evt' is reassigned a value before the old one has been used.
[staging/src/clm/clmd/clms_

[tickets] [opensaf:tickets] #2333 imm: Fix all Cppcheck 1.77 issue

2017-03-02 Thread A V Mahesh (AVM)



---

** [tickets:#2333] imm: Fix all Cppcheck 1.77 issue**

**Status:** accepted
**Milestone:** next
**Created:** Fri Mar 03, 2017 04:05 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 03, 2017 04:05 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/imm/immnd/ImmModel.cc:2985] -> 
[staging/src/imm/immnd/ImmModel.cc:3002]: (warning) Either the condition 
'increment&' is redundant or there is possible null pointer 
dereference: immObject.
[staging/src/imm/immnd/ImmModel.cc:2986] -> 
[staging/src/imm/immnd/ImmModel.cc:3002]: (warning) Either the condition 
'increment&' is redundant or there is possible null pointer 
dereference: immObject.
[staging/src/imm/immnd/ImmModel.cc:10798]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:11027]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:12510]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:13921]: (style) C-style pointer casting
[staging/src/imm/immnd/ImmModel.cc:2980] -> 
[staging/src/imm/immnd/ImmModel.cc:2984]: (style) Variable 'immObject' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7141] -> 
[staging/src/imm/immnd/ImmModel.cc:7154]: (style) Variable 'current' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7445] -> 
[staging/src/imm/immnd/ImmModel.cc:7455]: (style) Variable 'ccb' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7448] -> 
[staging/src/imm/immnd/ImmModel.cc:7460]: (style) Variable 'oMut' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7541] -> 
[staging/src/imm/immnd/ImmModel.cc:7550]: (style) Variable 'afim' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:7579] -> 
[staging/src/imm/immnd/ImmModel.cc:7589]: (style) Variable 'afim' is reassigned 
a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:14144] -> 
[staging/src/imm/immnd/ImmModel.cc:14148]: (style) Variable 'immObject' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/ImmModel.cc:673]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:905]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:931]: (style) The scope of the variable 'ix' 
can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1041]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1074]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:1882]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:2031]: (style) The scope of the variable 
'ix' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:5462]: (style) The scope of the variable 
'ai' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:16545]: (style) The scope of the variable 
'sendCompletedToSlave' can be reduced.
[staging/src/imm/immnd/ImmModel.cc:19363]: (style) Unused variable: i3
[staging/src/imm/immnd/ImmModel.cc:104]: (style) Struct 
'ImplementerCcbAssociation' has a constructor with 1 argument that is not 
explicit.
[staging/src/imm/immnd/ImmModel.cc:118]: (style) Struct 'ClassInfo' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:269]: (style) Struct 'ObjectMutation' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:576]: (style) Struct 'AttrFlagIncludes' has 
a constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:587]: (style) Struct 'IdIs' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:598]: (style) Struct 'CcbIdIs' has a 
constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:4862]: (style) Struct 'AttrDescriptionGet' 
has a constructor with 1 argument that is not explicit.
[staging/src/imm/immnd/ImmModel.cc:10556]: (error) Common realloc mistake: 
'fmtError' nulled but not freed upon failure
[staging/src/imm/immnd/immnd_clm.c:165] -> 
[staging/src/imm/immnd/immnd_clm.c:169]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[staging/src/imm/immnd/immnd_db.c:85] -> [staging/src/imm/immnd/immnd_db.c:89]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[staging/src/imm/immnd/immnd_db.c:107] -> 
[staging/src/imm/immnd/immnd_db.c:109]: (style) Variable 'rc' is reassigned a 
value before the old one has been used.
[staging/src/imm/immnd/immnd_evt.c:1040] -> 
[staging/src/imm/immnd/immnd_evt.c:1041]: (style) Variable 'tmp_hdl' is 
reassigned a value before the old one has been used.
[staging/src/imm/immnd/immnd_evt.c:1381] -> 
[staging/src/imm/immnd/immnd_evt.c:1388]: (style) Variable 'al' is reassigned a 
value before the old one

[tickets] [opensaf:tickets] #2326 log : fix all cpp check issues

2017-02-27 Thread A V Mahesh (AVM)
taging/src/log/logd/lgs_mbcsv.cc:711]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
+[staging/src/log/logd/lgs_mds.cc:1003] -> 
[staging/src/log/logd/lgs_mds.cc:1009]: (style) Variable rc is reassigned a 
value before the old one has been used.
+[staging/src/log/logd/lgs_stream.cc:416]: (warning) Assignment of function 
parameter has no effect outside the function. Did you forget dereferencing it?
+[staging/src/log/logd/lgs_stream.cc:665] -> 
[staging/src/log/logd/lgs_stream.cc:669]: (style) Variable stream is reassigned 
a value before the old one has been used.
+[staging/src/log/logd/lgs_stream.cc:1337]: (style) Unsigned variable id cant 
be negative so it is unnecessary to test it.
+[staging/src/log/logd/lgs_util.cc:363]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
+[staging/src/log/logd/lgs_util.cc:912]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
+[staging/src/log/logd/lgs_config.cc:1854]: (style) The function 
lgs_cfg_read_trace is never used.
+[staging/src/log/logd/lgs_util.cc:521]: (style) The function 
lgs_check_path_exists_h is never used.
+[staging/src/log/logd/lgs_imm.cc:3234]: (style) The function 
lgs_delete_one_stream_object is never used.
+[staging/src/log/logd/lgs_stream.cc:408]: (style) The function 
log_free_stream_resources is never used.
+[staging/src/log/logd/lgs_stream.cc:1447]: (style) The function 
log_stream_id_print is never used.
+[staging/src/log/logd/lgs_config.cc:1513]: (style) The function 
update_multival_rattr is never used.
+(information) Cppcheck cannot find all the include files (use --check-config 
for details)
+[staging/src/log/agent/lga_api.c:1104] -> 
[staging/src/log/agent/lga_api.c:1106]: (style) Variable logSvcUsrChars is 
reassigned a value before the old one has been used.
+[staging/src/log/agent/lga_mds.c:1408] -> 
[staging/src/log/agent/lga_mds.c:1428]: (style) Variable rc is reassigned a 
value before the old one has been used.
+[staging/src/log/agent/lga_mds.c:1219]: (style) The scope of the variable rc 
can be reduced.
+[staging/src/log/agent/lga_state.c:412] -> 
[staging/src/log/agent/lga_state.c:421]: (style) Variable ncs_rc is reassigned 
a value before the old one has been used.
+[staging/src/log/agent/lga_util.c:312] -> 
[staging/src/log/agent/lga_util.c:317]: (style) Variable client_hdl is 
reassigned a value before the old one has been used.
+[staging/src/log/agent/lga_util.c:416]: (style) The function 
lga_force_shutdown is never used.
+[staging/src/log/agent/lga_util.c:890]: (style) The function 
logtrace_init_constructor is never used.
+[staging/src/log/agent/lga_api.c:419]: (style) The function saLogDispatch is 
never used.
+[staging/src/log/agent/lga_api.c:538]: (style) The function saLogFinalize is 
never used.
+[staging/src/log/agent/lga_api.c:165]: (style) The function saLogInitialize is 
never used.
+[staging/src/log/agent/lga_api.c:1529]: (style) The function saLogLimitGet is 
never used.
+[staging/src/log/agent/lga_api.c:351]: (style) The function 
saLogSelectionObjectGet is never used.
+[staging/src/log/agent/lga_api.c:1373]: (style) The function saLogStreamClose 
is never used.
+[staging/src/log/agent/lga_api.c:1026]: (style) The function 
saLogStreamOpenAsync_2 is never used.
+[staging/src/log/agent/lga_api.c:798]: (style) The function saLogStreamOpen_2 
is never used.
+[staging/src/log/agent/lga_api.c:1164]: (style) The function saLogWriteLog is 
never used.
+[staging/src/log/agent/lga_api.c:1180]: (style) The function 
saLogWriteLogAsync is never used.



- **status**: assigned --> review



---

** [tickets:#2326] log : fix all cpp check issues **

**Status:** review
**Milestone:** next
**Created:** Mon Feb 27, 2017 03:40 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Feb 27, 2017 03:40 AM UTC
**Owner:** A V Mahesh (AVM)


[staging/src/log/logd/lgs_config.h:90]: (performance) Function parameter 
param_name should be passed by reference.
[staging/src/log/logd/lgs_config.h:230]: (performance) Function parameter 
attribute_name should be passed by reference.
[staging/src/log/logd/lgs_config.h:231]: (performance) Function parameter 
value_list should be passed by reference.
[staging/src/log/logd/lgs_config.h:238]: (performance) Function parameter 
attribute_name should be passed by reference.
[staging/src/log/logd/lgs_config.h:239]: (performance) Function parameter 
value_list should be passed by reference.
[staging/src/log/logd/lgs_clm.cc:137]: (style) The scope of the variable 
clm_node can be reduced.
[staging/src/log/logd/lgs_clm.cc:220]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[staging/src/log/logd/lgs_config.cc:401] -> 
[staging/src/log/logd/lgs_config.cc:498]: (warning) Either the condition 
allocmem_ptr!=NULL is redundant or there is possible null pointer dereference: 
param_ptr.
[staging/src/log/logd/lgs_config.cc:410] -> 
[staging/src/log/logd/lgs_config.cc:498]: (warning) Either the condi

[tickets] [opensaf:tickets] #2326 log : fix all cpp check issues

2017-02-26 Thread A V Mahesh (AVM)



---

** [tickets:#2326] log : fix all cpp check issues **

**Status:** assigned
**Milestone:** next
**Created:** Mon Feb 27, 2017 03:40 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Feb 27, 2017 03:40 AM UTC
**Owner:** A V Mahesh (AVM)


2017-02-24 10:18:04 INFO: *** List of cppcheck errors added by patch ***
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::amfSelectionObject' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::amf_hdl' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::amf_invocation_id' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::async_upd_cnt' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::ckpt_state' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::clmSelectionObject' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::clm_hdl' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::clm_init_sel_obj' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::comp_name' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::edu_hdl' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::fully_initialized' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::ha_state' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::immOiHandle' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::immSelectionObject' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::is_quiesced_set' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::last_client_id' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::lga_down_list_head' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::lga_down_list_tail' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::log_version' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::mbcsv_ckpt_hdl' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::mbcsv_hdl' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::mbcsv_peer_version' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::mbcsv_sel_obj' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::mds_hdl' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::mds_role' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::nid_started' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::scAbsenceAllowed' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_cb.h:106]: (warning) Member 
variable 'lgs_cb::vaddr' is not initialized in the constructor.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_clm.cc:137]: (style) The 
scope of the variable 'clm_node' can be reduced.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_clm.cc:213]: (style) The 
scope of the variable 'rec' can be reduced.
2017-02-24 10:18:04 INFO: ***[src/log/logd/lgs_clm.cc:220]: (performance) 
Prefer prefix ++/-- operators for non-primitive types.
2017-02-24 10:18:04 INFO: ***[src/log/logd

[tickets] [opensaf:tickets] #1984 log: convert patricia trees to maps in the LOG service

2017-02-24 Thread A V Mahesh (AVM)
- **status**: review --> fixed
- **Comment**:

changeset:   8616:e3262f91d56d
tag: tip
user:A V Mahesh <mahesh.va...@oracle.com>
date:Fri Feb 24 14:17:01 2017 +0530
summary: logd: replace client DB patricia tree with cpp Map [#1984]



---

** [tickets:#1984] log: convert patricia trees to maps in the LOG service**

**Status:** fixed
**Milestone:** 5.2.FC
**Created:** Tue Aug 30, 2016 03:51 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Feb 13, 2017 04:08 AM UTC
**Owner:** A V Mahesh (AVM)


convert patricia trees to maps in the LOG service


---

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] #2239 log: no housekeeping for cfg files

2017-02-23 Thread A V Mahesh (AVM)
- **status**: review --> fixed
- **Comment**:

changeset:   8614:0623f817f002
tag: tip
user:A V Mahesh <mahesh.va...@oracle.com>
date:Fri Feb 24 09:41:04 2017 +0530
summary: logd: implement cfg files rotation [#2239]



---

** [tickets:#2239] log: no housekeeping for cfg files**

**Status:** fixed
**Milestone:** 5.2.FC
**Created:** Wed Dec 21, 2016 08:19 AM UTC by Vu Minh Nguyen
**Last Updated:** Mon Feb 06, 2017 07:34 AM UTC
**Owner:** A V Mahesh (AVM)


At the moment, LOGsv takes care of the housekeeping of the log files, but not 
for cfg files.

So, if we play with log streams in a long time, or we encounter an cyclic 
reboots of SCs, 
a large numbers of cfg files are generated even log files that go along with 
them have been removed due to rotation.


---

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] #2217 mds: optimize use of gl_mds_library_mutex

2017-02-19 Thread A V Mahesh (AVM)
- **Milestone**: 5.2.FC --> next



---

** [tickets:#2217] mds: optimize use of gl_mds_library_mutex**

**Status:** accepted
**Milestone:** next
**Created:** Tue Dec 06, 2016 09:55 AM UTC by Mathi Naickan
**Last Updated:** Tue Jan 24, 2017 05:50 AM UTC
**Owner:** A V Mahesh (AVM)


A prototyping exercise was done long back to remove this lock but had resulted 
in problems such as out of order. MDS has evolved since then. 
We could revisit the way mds uses gl_mds_library_mutex.
The ticket aims to identify optimization of the way mds gl_mds_library_mutex is 
used.

Details TBD


---

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] #2312 logtest: Log test Segmentation faults if System controller name is other that SC-1 /SC-2

2017-02-16 Thread A V Mahesh (AVM)



---

** [tickets:#2312] logtest:  Log test Segmentation faults  if  System 
controller name is other that  SC-1 /SC-2 **

**Status:** unassigned
**Milestone:** 5.2.FC
**Created:** Fri Feb 17, 2017 06:41 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Feb 17, 2017 06:41 AM UTC
**Owner:** nobody


configure diffrent name for Systmen controlers 
(/usr/share/opensaf/immxml/nodes.cfg )
and created imm.xml and run logtest 

=
/usr/share/opensaf/immxml # cat  /usr/share/opensaf/immxml/nodes.cfg 
SC fm1 SC-1
SC fm2 PL-1
PL PL-3 PL-3
PL PL-4 PL-4

SC-1:~ #  /usr/bin/logtest 4
 
Suite 4: LOG OI tests, stream objects
1  PASSED   CCB Object Modify saLogStreamFileName;
2  PASSED   CCB Object Modify saLogStreamPathName, ERR not allowed;
3  PASSED   CCB Object Modify saLogStreamMaxLogFileSize;
.
   20  PASSED   Log Service Administration API, change sev filter, ERR invalid 
param name;
   21  PASSED   Log Service Administration API, no change in sev filter, ERR NO 
OP;
   22  PASSED   Log Service Administration API, invalid opId;
Segmentation fault
SC-1:~ # 
/
   14  PASSED   CCB Object Modify saLogStreamSeverityFilter;
Detaching after fork from child process 22461.
   15  PASSED   saImmOiRtAttrUpdateCallback;
Detaching after fork from child process 22465.
   16  PASSED   Log Service Administration API, change sev filter for app 
stream OK;
Detaching after fork from child process 22469.
   17  PASSED   Log Service Administration API, change sev filter, ERR invalid 
stream;
Detaching after fork from child process 22473.
   18  PASSED   Log Service Administration API, change sev filter, ERR invalid 
arg type;
Detaching after fork from child process 22477.
   19  PASSED   Log Service Administration API, change sev filter, ERR invalid 
severity;
Detaching after fork from child process 22481.
   20  PASSED   Log Service Administration API, change sev filter, ERR invalid 
param name;
Detaching after fork from child process 22485.
Detaching after fork from child process 22489.
   21  PASSED   Log Service Administration API, no change in sev filter, ERR NO 
OP;
Detaching after fork from child process 22493.
   22  PASSED   Log Service Administration API, invalid opId;
 
Program received signal SIGSEGV, Segmentation fault.
0xdb50 in get_active_sc () at src/log/apitest/logtest.c:312
312 src/log/apitest/logtest.c: No such file or directory.
in src/log/apitest/logtest.c
(gdb) bt
/#0  0xdb50 in get_active_sc () at src/log/apitest/logtest.c:312
/#1  0x55562ddc in saLogOi_116 () at src/log/apitest/tet_LogOiOps.c:582
/#2  0x55570855 in run_test_case ()
/#3  0x55570cf4 in test_run ()
/#4  0xbcad in main () at src/log/apitest/logtest.c:569
(gdb) dir /avm/staging-publish/
Source directories searched: /avm/staging-publish:$cdir:$cwd
(gdb) bt
/#0  0xdb50 in get_active_sc () at src/log/apitest/logtest.c:312
/#1  0x55562ddc in saLogOi_116 () at src/log/apitest/tet_LogOiOps.c:582
/#2  0x55570855 in run_test_case ()
/#3  0x55570cf4 in test_run ()
/#4  0xbcad in main () at src/log/apitest/logtest.c:569
(gdb) 

src/log/apitest # grep -r "SC-" * 

logtest.c: * @return 1 SC-1, 2 SC-2
logtest.c:  SaConstStringT objname = "safSu=SC-1,safSg=2N,safApp=OpenSAF";
logtest.c:  /* Checking SC-1 */
logtestfr.c: * @return 1 SC-1, 2 SC-2
logtestfr.c:SaNameT objectName1 = { /* Read object for SC-1 */
logtestfr.c:.value = "safSu=SC-1,safSg=2N,safApp=OpenSAF",
logtestfr.c:.length = strlen("safSu=SC-1,safSg=2N,safApp=OpenSAF") 
+ 1
logtestfr.c:/* Checking SC-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


[tickets] [opensaf:tickets] #2278 mds: Blocking send causes AMF health check time-out

2017-02-13 Thread A V Mahesh (AVM)
Hi Anders Widel,

If you are trying reproduce , please apply the attached debug patch and 
reproduce

and provide MDS logs (/var/log/opensaf/mds.log )

- default branch :   debug_mds_default_2278.patch

- opensaf-5.1.x  branch :   debug_mds_5.1_2278.patch

-AVM


Attachments:

- 
[debug_mds_5.1_2278.patch](https://sourceforge.net/p/opensaf/tickets/_discuss/thread/343e56d7/012b/attachment/debug_mds_5.1_2278.patch)
 (7.1 kB; text/plain)
- 
[debug_mds_default_2278.patch](https://sourceforge.net/p/opensaf/tickets/_discuss/thread/343e56d7/012b/attachment/debug_mds_default_2278.patch)
 (8.4 kB; text/plain)


---

** [tickets:#2278] mds: Blocking send causes AMF health check time-out**

**Status:** assigned
**Milestone:** 5.1.1
**Created:** Thu Jan 26, 2017 09:49 AM UTC by Anders Widell
**Last Updated:** Thu Feb 09, 2017 09:51 AM UTC
**Owner:** A V Mahesh (AVM)


AMF health-check time-out is seen on SC-1 after restarting SC-2. The system is 
using OpenSAF 5.1.0 configured with TCP communication.

Syslog:

~~~
2017-01-20T18:29:04.405982+01:00 local0.err SC-1 osafamfnd[2820]: ER AMF 
director heart beat timeout, generating core for amfd
2017-01-20T18:29:05.408819+01:00 local0.crit SC-1 osafamfnd[2820]: Rebooting 
OpenSAF NodeId = 131343 EE Name = , Reason: AMF director heart beat timeout, 
OwnNodeId = 131343, SupervisionTime = 0
~~~

Back-trace of osafamfd:

~~~
0x7fa316cceb60 osaf_poll_no_timeout (osaf/libs/core/common/osaf_poll.c:33)
0x7fa316ccede5 osaf_poll (osaf/libs/core/common/osaf_poll.c:45)
0x7fa316ccee25 osaf_poll_one_fd (osaf/libs/core/common/osaf_poll.c:129)
0x7fa316cfab67 mds_mcm_time_wait 
(osaf/libs/core/common/include/osaf_utility.h:79)
0x7fa316cfae51 mds_subtn_tbl_add_disc_queue 
(osaf/libs/core/mds/mds_c_sndrcv.c:1808)
0x7fa316cfb03d mds_mcm_process_disc_queue_checks_redundant 
(osaf/libs/core/mds/mds_c_sndrcv.c:2338)
0x7fa316cfbcd1 mcm_pvt_red_snd_process_common 
(osaf/libs/core/mds/mds_c_sndrcv.c:2257)
0x7fa316cfd04d mcm_pvt_red_svc_snd (osaf/libs/core/mds/mds_c_sndrcv.c:2174)
0x7fa316cff8f9 mds_send (osaf/libs/core/mds/mds_c_sndrcv.c:736)
0x7fa316cf9068 ncsmds_api (osaf/libs/core/mds/mds_papi.c:191)
0x7fa316ce6f5f mbcsv_mds_send_msg (osaf/libs/core/mbcsv/mbcsv_mds.c:239)
0x7fa316cec440 mbcsv_send_ckpt_data_to_all_peers 
(osaf/libs/core/mbcsv/mbcsv_util.c:479)
0x7fa316ce56d7 mbcsv_process_snd_ckpt_request 
(osaf/libs/core/mbcsv/mbcsv_api.c:862)
0x40bfc0 avsv_send_ckpt_data(cl_cb_tag*, unsigned int, unsigned long, unsigned 
int, unsigned int) (osaf/services/saf/amf/amfd/chkop.cc:1062)
0x446649 avd_node_oper_state_set(AVD_AVND*, SaAmfOperationalStateT) 
(osaf/services/saf/amf/amfd/node.cc:505)
0x44040c avd_node_mark_absent(AVD_AVND*) 
(osaf/services/saf/amf/amfd/ndfsm.cc:1018)
0x4438ba avd_node_failover(AVD_AVND*) 
(osaf/services/saf/amf/amfd/ndproc.cc:1141)

~~~


---

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] #2303 dtm: replace patricia trees with cpp Map/trees

2017-02-12 Thread A V Mahesh (AVM)
- Description has changed:

Diff:



--- old
+++ new
@@ -0,0 +1,2 @@
+DB NCS PATRICIA TREE  with  C++ Map
+for improve efficiency.






---

** [tickets:#2303] dtm: replace patricia trees with cpp Map/trees**

**Status:** assigned
**Milestone:** future
**Created:** Mon Feb 13, 2017 06:32 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Feb 13, 2017 06:32 AM UTC
**Owner:** A V Mahesh (AVM)


DB NCS PATRICIA TREE  with  C++ Map
for improve efficiency.


---

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] #2302 mds: replace patricia trees with cpp Map/trees

2017-02-12 Thread A V Mahesh (AVM)
- Description has changed:

Diff:



--- old
+++ new
@@ -0,0 +1,2 @@
+DB NCS PATRICIA TREE  with  C++ Map
+for improve efficiency.






---

** [tickets:#2302] mds: replace patricia trees with cpp Map/trees**

**Status:** assigned
**Milestone:** future
**Created:** Mon Feb 13, 2017 06:30 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Feb 13, 2017 06:30 AM UTC
**Owner:** A V Mahesh (AVM)


DB NCS PATRICIA TREE  with  C++ Map
for improve efficiency.


---

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


  1   2   3   4   5   6   >