Re: [devel] [PATCH 1 of 1] amfd: fix SU in-service macro [#493]

2014-05-06 Thread Hans Feldt
will share a patch /Hans On 7 May 2014 07:47, Hans Feldt wrote: > The way you have changed the macro has made useable only for pre-instantiable > SUs since the table you point to is only valid for pre-inst SUs. > > We already have some tech debt with this macro: > // TODO

[devel] [PATCH 0 of 1] Review Request for v3 amfd: Allow multiple csi addition in single ccb [#750]

2014-05-06 Thread nagendra . k
Summary: v3 amfd: Allow multiple csi addition in single ccb [#750] Review request for Trac Ticket(s): #750 Peer Reviewer(s): Hans F, Hans N, Praveen Pull request to: <> Affected branch(es): All Development branch: opensaf-4.3.x Impacted area Impact y/n --

[devel] [PATCH 1 of 1] v3 amfd: Allow multiple csi addition in single ccb [#750]

2014-05-06 Thread nagendra . k
osaf/services/saf/avsv/avd/avd_csi.c | 77 ++- osaf/services/saf/avsv/avd/avd_sgproc.c | 14 + osaf/services/saf/avsv/avd/include/avd_csi.h | 1 + 3 files changed, 55 insertions(+), 37 deletions(-) Problem: Amf rejects csi addition if previous csi add

Re: [devel] [PATCH 3 of 4] mds: use TIPC segmentation/reassembly [#654]

2014-05-06 Thread SuryaNarayana Garlapati
OK, Here goes the solution. There is a 8 bit field in each message that is being exchanged between the services (which contains the message priority, mds prot_ver(mds protocol and mds version)) when message send is attempted. 6 bits are allocated for the mds prot_ver, present value for this fiel

[devel] [PATCH 1 of 1] mds: use TIPC defined max msg size for rec buffer [#654]

2014-05-06 Thread Hans Feldt
osaf/libs/core/mds/include/mds_dt.h | 3 -- osaf/libs/core/mds/mds_dt_tipc.c| 45 +--- 2 files changed, 17 insertions(+), 31 deletions(-) Using connection-less TIPC messaging the largest message that can be sent and received is 66000 defined by the constant

[devel] [PATCH 0 of 1] Review Request for V2 MDS/TIPC receive buffer [#654]

2014-05-06 Thread Hans Feldt
Summary: MDS TIPC receive buffer v2 (1/4) Review request for Trac Ticket(s): 654 Peer Reviewer(s): Mahesh Pull request to: <> Affected branch(es): default Development branch: default Impacted area Impact y/n Docs

Re: [devel] [PATCH 1 of 1] amfd: syslog no assignment of SI when it is unlocked [#867]

2014-05-06 Thread Hans Feldt
All I am saying that I think you should just log "SI '%s' could not be assigned to any SU". The reasons for this has to be logged/found somewhere else. Thanks, Hans On 7 May 2014 07:59, praveen malviya wrote: > > On 07-May-14 11:05 AM, Hans Feldt wrote: >> Since there can be many more reasons why

Re: [devel] [PATCH 1 of 1] amfd: syslog no assignment of SI when it is unlocked [#867]

2014-05-06 Thread praveen malviya
On 07-May-14 11:05 AM, Hans Feldt wrote: > Since there can be many more reasons why the SI is not assigned, I don't > think you should log any of what you have proposed in this part of the code. > SG, SU can be locked. Node can be locked etc. This is admin operation on SI. This is the reason why

Re: [devel] [PATCH 1 of 1] v3 amfnd: saAmfSGCompRestartProb timer is not stopped after the relevant model had been deleted [#831]

2014-05-06 Thread Hans Feldt
Ack except for the commit message which just (again) describes the problem instead of what the patch is changing. /Hans > -Original Message- > From: Minh Hon Chau [mailto:minh.c...@dektech.com.au] > Sent: den 7 maj 2014 06:39 > To: Hans Nordebäck; Hans Feldt; praveen.malv...@oracle.com;

Re: [devel] [PATCH 1 of 1] amfd: fix SU in-service macro [#493]

2014-05-06 Thread Hans Feldt
The way you have changed the macro has made useable only for pre-instantiable SUs since the table you point to is only valid for pre-inst SUs. We already have some tech debt with this macro: // TODO(nagu) remove saAmfSUPreInstantiable check and move into m_AVD_APP_SU_IS_I

Re: [devel] [PATCH 1 of 1] amfd: syslog no assignment of SI when it is unlocked [#867]

2014-05-06 Thread Hans Feldt
Since there can be many more reasons why the SI is not assigned, I don't think you should log any of what you have proposed in this part of the code. SG, SU can be locked. Node can be locked etc. In other places in the code we could log more when we actually know more things. /Hans > -Orig

[devel] [PATCH 1 of 1] amfd: syslog no assignment of SI when it is unlocked [#867]

2014-05-06 Thread praveen . malviya
osaf/services/saf/amf/amfd/si.cc | 5 + 1 files changed, 5 insertions(+), 0 deletions(-) Problem: A SI is unlocked and it is not assigned to any SU. User does not have any clue for unassignment. Reason: Reasons for unassignment can be many.Since admin operation is invoked on the SI and a S

[devel] [PATCH 0 of 1] Review Request for amfd: syslog no assignment of SI when it is unlocked [#867]

2014-05-06 Thread praveen . malviya
Summary: amfd: syslog no assignment of SI when it is unlocked [#867] Review request for Trac Ticket(s): #867 Peer Reviewer(s): Hand F., Nagendra Pull request to: <> Affected branch(es): <> Development branch: <> Impacted area Impact y/n

[devel] [PATCH 1 of 1] v3 amfnd: saAmfSGCompRestartProb timer is not stopped after the relevant model had been deleted [#831]

2014-05-06 Thread Minh Hon Chau
osaf/services/saf/amf/amfnd/susm.cc | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) Problem: If the timer is started, delete the model, load model again, and kill component in order to escalate to the su restart. Then if the previous timer event comes during the escalation

[devel] [PATCH 0 of 1] Review Request for v3 amfnd: saAmfSGCompRestartProb timer is not stopped after the relevant model had been deleted [#831]

2014-05-06 Thread Minh Hon Chau
Summary: v3 amfnd: saAmfSGCompRestartProb timer is not stopped after the relevant model had been deleted [#831] Review request for Trac Ticket(s): 831 Peer Reviewer(s): Hans F, Hans N, Nagendra, Praveen Pull request to: Affected branch(es): default Development branch: default

Re: [devel] [PATCH 3 of 4] mds: use TIPC segmentation/reassembly [#654]

2014-05-06 Thread A V Mahesh
Surya, Thank for reiterating arch_word of the MDS feature ,we all in sync. On 5/6/2014 3:55 PM, SuryaNarayana Garlapati wrote: >> MDS version unless we get alternate bits/variables used for MDS >> version. > [Surya] Thats the reason i am asking for some time. [AVM] If we get some alternate

Re: [devel] [PATCH 1 of 1] amfd: fix SU in-service macro [#493]

2014-05-06 Thread Alex Jones
Hi Praveen, I don't think this is necessary because avd_sg_2n_su_chose_asgn() (and others) checks the readiness state. And the readiness state is only set to "in-service" in other parts of the code by first testing this macro which I've modified. So, if an SU is not instantiated, the

Re: [devel] [PATCH 1 of 1] amfd: fix SU in-service macro [#493]

2014-05-06 Thread Alex Jones
Comments inline... On 05/06/2014 09:08 AM, Hans Feldt wrote: > First I don't think we should bring in cluster and application state just > like this. It is not relevant for this case and we anyway don't support such > ops. [Alex] It is relevant in that this macro is a test for SU in-service.

Re: [devel] [PATCH 0 of 2] Review Request for log: saflogger to return EXIT_FAILURE when SaLogWriteLogCallbackT fails - v2 [#884]

2014-05-06 Thread Mathivanan Naickan Palanivelu
There is a print message there. fprintf(stderr, "logWriteLogCallbackT FAILED: wrong invocation\n"); I can add if you are referring to a missing message. Cheers, Mathi. - anders.bjornerst...@ericsson.com wrote: > One comment below. > > mathi.naic...@oracle.com wrote: > > Summary: log: safl

Re: [devel] [PATCH 0 of 2] Review Request for log: saflogger to return EXIT_FAILURE when SaLogWriteLogCallbackT fails - v2 [#884]

2014-05-06 Thread Anders Bjornerstedt
One comment below. mathi.naic...@oracle.com wrote: > Summary: log: saflogger to return EXIT_FAILURE when SaLogWriteLogCallbackT > fails - v2 [#884] > Review request for Trac Ticket(s): #884 > Peer Reviewer(s): Lennart > Pull request to: <> > Affected branch(es): opensaf-4.3.x, 4.4.x, default > De

Re: [devel] [PATCH 0 of 1] Review Request for imm: Allow admin-operations directly targeting an implementer/applier [#799]

2014-05-06 Thread Zoran Milinkovic
Ack from me. Reviewed the code, but didn't test. Best regards, Zoran -Original Message- From: Anders Björnerstedt Sent: den 29 april 2014 16:37 To: reddy.neelaka...@oracle.com; Zoran Milinkovic Cc: opensaf-devel@lists.sourceforge.net Subject: [PATCH 0 of 1] Review Request for imm: Allow

[devel] [PATCH 1 of 2] log: saflogger to return EXIT_FAILURE when SaLogWriteLogCallbackT fails- v2 [#884]

2014-05-06 Thread mathi . naickan
osaf/tools/saflog/saflogger/saf_logger.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) saflogger is not returning appropriate exit code to the shell when SaLogWriteLogCallbackT fails either because of an error reported in the callback or because of an invalid invocationId. The pat

[devel] [PATCH 2 of 2] log: saflogtest to return EXIT_FAILURE when SaLogWriteLogCallbackT fails- v1 [#884]

2014-05-06 Thread mathi . naickan
tests/logsv/saflogtest.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) saflogtest is not returning appropriate exit code to the shell when SaLogWriteLogCallbackT fails either because of an error reported in the callback or because of an invalid invocationId. The patch exits with E

[devel] [PATCH 0 of 2] Review Request for log: saflogger to return EXIT_FAILURE when SaLogWriteLogCallbackT fails - v2 [#884]

2014-05-06 Thread mathi . naickan
Summary: log: saflogger to return EXIT_FAILURE when SaLogWriteLogCallbackT fails - v2 [#884] Review request for Trac Ticket(s): #884 Peer Reviewer(s): Lennart Pull request to: <> Affected branch(es): opensaf-4.3.x, 4.4.x, default Development branch: <> Impacted ar

[devel] [PATCH 0 of 1] Review Request for amfd: return try_again to sg admin unlock-in if any su is in terminating state [#854]

2014-05-06 Thread nagendra . k
Summary: amfd: return try_again to sg admin unlock-in if any su is in terminating state [#854] Review request for Trac Ticket(s): #854 Peer Reviewer(s): Hans F, Hans N, Praveen Pull request to: <> Affected branch(es): All Development branch: Default Impacted area

[devel] [PATCH 1 of 1] amfd: return try_again to sg admin unlock-in if any su is in terminating state [#854]

2014-05-06 Thread nagendra . k
osaf/services/saf/amf/amfd/sg.cc | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) Problem: SG admin lock-in return immediately. Next admin unlock-in also succeed even if sus are not terminated yet. Analysis: If Amf could return try again to unlock-in admin op, then another

Re: [devel] [PATCH 1 of 1] amfd: fix SU in-service macro [#493]

2014-05-06 Thread Hans Feldt
First I don't think we should bring in cluster and application state just like this. It is not relevant for this case and we anyway don't support such ops. Second this macro is out of control and should be changed into a (inline) function instead. Haven't I already done that in my refactoring se

Re: [devel] [PATCH 1 of 1] amfd: fix SU in-service macro [#493]

2014-05-06 Thread praveen malviya
In #493 the assignments were given to SU5 without checking its presence state. But this was not because of some admin operation, but due to the continuous faults in in all other SUs which were receiving the assignments. So ideally such a check of Presence sate should be added in assignment algo

Re: [devel] [PATCH 1 of 1] amfd: instantiate mw sus when node is joining [#863]

2014-05-06 Thread Nagendra Kumar
Please check the ticket, it is updated now. Thanks -Nagu > -Original Message- > From: Hans Feldt [mailto:hans.fe...@ericsson.com] > Sent: 06 May 2014 17:22 > To: Nagendra Kumar; Hans Nordebäck; Praveen Malviya > Cc: opensaf-devel@lists.sourceforge.net > Subject: RE: [PATCH 1 of 1] amfd: i

Re: [devel] [PATCH 1 of 1] log: saflogger to return EXIT_FAILURE when SaLogWriteLogCallbackT reports error [#884]

2014-05-06 Thread Lennart Lund
Hi This seems Ok but there is one more problem in the same area that should be fixed as well. if (cb_invocation != invocation) { fprintf(stderr, "logWriteLogCallbackT FAILED: wrong invocation\n"); return errorCode; } Should be changed to:

Re: [devel] [PATCH 1 of 1] amfd: instantiate mw sus when node is joining [#863]

2014-05-06 Thread Hans Feldt
I don't get the use/test case. In the ticket node lock is performed. Node lock should not affect the mw SU meaning after mw restart the mw SU should be instantiated. The patch seems to indicate that SU admin ops are done. Thanks, Hans > -Original Message- > From: nagendr...@oracle.com [m

[devel] [PATCH 0 of 1] Review Request for amfd: instantiate mw sus when node is joining [#863]

2014-05-06 Thread nagendra . k
Summary: amfd: instantiate mw sus when node is joining [#863] Review request for Trac Ticket(s): #863 Peer Reviewer(s): Hans F, Hans N< praveen Pull request to: <> Affected branch(es): All Development branch: Default Impacted area Impact y/n ---

[devel] [PATCH 1 of 1] amfd: instantiate mw sus when node is joining [#863]

2014-05-06 Thread nagendra . k
osaf/services/saf/amf/amfd/su.cc | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) Problem: When mw su is in locked-in state and opensaf is started, amfnd hangs. When mw su is unlocked-in, amfnd still doesn't instantiate the mw su. Analysis: Amfd doesn't send instantiate messa

Re: [devel] [PATCH 0 of 2] Review Request for log: ignore environment variables when config object exists [#841]

2014-05-06 Thread Lennart Lund
Have tested and it seems Ok. ACK Thanks Lennart > -Original Message- > From: mathi.naic...@oracle.com [mailto:mathi.naic...@oracle.com] > Sent: den 2 maj 2014 23:45 > To: Lennart Lund > Cc: opensaf-devel@lists.sourceforge.net > Subject: [PATCH 0 of 2] Review Request for log: ignore enviro

[devel] [PATCH 0 of 1] Review Request for log: saflogger to return EXIT_FAILURE when SaLogWriteLogCallbackT reports error [#884]

2014-05-06 Thread mathi . naickan
Summary: log: saflogger to return EXIT_FAILURE when SaLogWriteLogCallbackT reports error [#884] Review request for Trac Ticket(s): #884 Peer Reviewer(s): lennart.l...@ericsson.com Pull request to: <> Affected branch(es): opensaf-4.3.x, 4.4.x, default Development branch: <> ---

[devel] [PATCH 1 of 1] log: saflogger to return EXIT_FAILURE when SaLogWriteLogCallbackT reports error [#884]

2014-05-06 Thread mathi . naickan
osaf/tools/saflog/saflogger/saf_logger.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) saflogger is not returning appropriate exit code to the shell when SaLogWriteLogCallbackT returns error. The patch exits with EXIT_FAILURE when the SaLogWriteLogCallbackT returns error diff --git

Re: [devel] [PATCH 3 of 4] mds: use TIPC segmentation/reassembly [#654]

2014-05-06 Thread SuryaNarayana Garlapati
Before going ahead, Following is the explanation for the arch_word of the MDS. Arch word(4bits) is combination of architecture and bit size of the machine. 3 bits are allocated for architecture and 1 bit is allocated for bit size. architecture of value 0 means unspecified. Message encoding is d