Summary:lgsv: Log Service CLM integration [#1638] V3 
Review request for Trac Ticket(s): #1638
Peer Reviewer(s): Vu, Lennart,Anders Widell
Pull request to: <<LIST THE PERSON WITH PUSH ACCESS HERE>>
Affected branch(es): default
Development branch: default

--------------------------------
Impacted area       Impact y/n
--------------------------------
 Docs                    n
 Build system            n
 RPM/packaging           n
 Configuration files     n
 Startup scripts         n
 SAF services            y
 OpenSAF services        n
 Core libraries          n
 Samples                 n
 Tests                   n
 Other                   n


Comments (indicate scope for each "y" above):
---------------------------------------------
 <<EXPLAIN/COMMENT THE PATCH SERIES HERE>>

changeset a1547bb21c4b27654c744563aba5e9ecb8cb385e
Author: A V Mahesh <mahesh.va...@oracle.com>
Date:   Thu, 04 Aug 2016 16:07:01 +0530

        lga: agent Cluster Membership (CLM) integration [#1638] V3

 V3 specific :

        Incorporated Anders Widell and Lennart review comments , for more 
details
        see the review comments posted on V2 patch.

         Patricia tree replaced with map Implemented module and clean code as
        possible Ran & fixed all warning given by make cppcheck and make cpplint
        for new files lgs_clm.cc & lgs_clm.h

 Description:

        Form CLM integration is supported from Log Service A.02.02.

        At-least a A.02.02 LGA client will check CLM membership status of 
client's
        node. old LGA clients A.02.01 are always clm member.

        This patch enhanced the log service for Unavailability of the Log 
Service
        API on a Non-Member Node which will fail with SA_AIS_ERR_UNAVAILABLE.

        After this patch the Log Service does not provide service to processes 
on
        cluster nodes that are not in the cluster membership.

        If the node rejoins the cluster membership, processes executing on the 
node
        will be able to reinitialize new library handles and use the entire set 
of
        Log Service APIs that operate on these new handles; however, invocation 
of
        APIs that operate on handles acquired by any process before the node 
left
        the membership will continue to fail with SA_AIS_ERR_UNAVAILABLE (or 
with
        the special treatment described above for asynchronous calls) with the
        exception of saLogFinalize(), which is used to free the library handles 
and
        all resources associated with these handles. Hence, it is recommended 
for
        the processes to finalize the library handles as soon as the processes
        detect that the node left the membership.

        Detailed README will be provide soon.

        Following are expected Log Service API behavior :

        Case1: On Non-Member Node, Log Service API will fail with code
        SA_AIS_ERR_UNAVAILABLE (31) Case2: On Member Node after recovered from 
Non-
        Member Node, Log Service API will fail with code SA_AIS_ERR_UNAVAILABLE 
(31)
        Case3: Non-Member Node + (Headless) Log Service API will fail with code
        SA_AIS_ERR_UNAVAILABLE (31) Case4: On Non-Member Node + (Headless) + 
(Head
        Joined) Log Service API will fail with code SA_AIS_ERR_UNAVAILABLE (31)

changeset 4e43dc4fafd249cfd2ba8e5883a352d73babc5ac
Author: A V Mahesh <mahesh.va...@oracle.com>
Date:   Thu, 04 Aug 2016 16:08:30 +0530

        lgs: director Cluster Membership (CLM) integration [#1638] V3

changeset 3301d6147d360886aa22134720bab91acb0e4cd0
Author: A V Mahesh <mahesh.va...@oracle.com>
Date:   Thu, 04 Aug 2016 16:09:54 +0530

        logtest: change related to Cluster Membership (CLM) integration [#1638] 
V3
        Test :

         #amf-adm lock safNode=PL-4,safCluster=myClmCluster

         <saLogStreamOpen_2> failed with code SA_AIS_ERR_UNAVAILABLE (31).

        #amf-adm unlock safNode=PL-4,safCluster=myClmCluster

         <saLogStreamOpen_2> failed with code SA_AIS_ERR_UNAVAILABLE (31).

         #amf-adm lock safNode=PL-4,safCluster=myClmCluster + (SC-1 & Sc-2
        /etc/init.d/opensafd stop)

         <saLogStreamOpen_2> failed with code SA_AIS_ERR_UNAVAILABLE (31)

        # amf-adm lock safNode=PL-4,safCluster=myClmCluster + ((SC-1 & Sc-2
        /etc/init.d/opensafd stop)) + ((SC-1 & Sc-2 /etc/init.d/opensafd
        start) + amf-adm unlock safNode=PL-4,safCluster=myClmCluster

         <saLogStreamOpen_2> failed with code SA_AIS_ERR_UNAVAILABLE (31)

         Expected but currently The Imm APIs are NOT working error -
        saImmOmInitialize FAILED: SA_AIS_ERR_LIBRARY (2)


Complete diffstat:
------------------
 osaf/libs/agents/saf/lga/lga.h             |    3 +
 osaf/libs/agents/saf/lga/lga_api.c         |   52 +++++++++++++++++
 osaf/libs/agents/saf/lga/lga_mds.c         |   69 +++++++++++++++++++++++
 osaf/libs/agents/saf/lga/lga_util.c        |    2 +
 osaf/libs/common/logsv/include/lgsv_defs.h |    6 +-
 osaf/libs/common/logsv/include/lgsv_msg.h  |   17 ++++-
 osaf/services/saf/logsv/lgs/Makefile.am    |    7 +-
 osaf/services/saf/logsv/lgs/lgs_cb.h       |    9 +++
 osaf/services/saf/logsv/lgs/lgs_clm.cc     |  403 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 osaf/services/saf/logsv/lgs/lgs_clm.h      |   39 +++++++++++++
 osaf/services/saf/logsv/lgs/lgs_evt.cc     |   15 +++++
 osaf/services/saf/logsv/lgs/lgs_main.cc    |   28 +++++++++
 osaf/services/saf/logsv/lgs/lgs_mds.cc     |   38 ++++++++++++-
 tests/logsv/saflogtest.c                   |    2 +-
 14 files changed, 681 insertions(+), 9 deletions(-)


Testing Commands:
-----------------
 <<LIST THE COMMAND LINE TOOLS/STEPS TO TEST YOUR CHANGES>>


Testing, Expected Results:
--------------------------
 <<PASTE COMMAND OUTPUTS / TEST RESULTS>>


Conditions of Submission:
-------------------------
 <<HOW MANY DAYS BEFORE PUSHING, CONSENSUS ETC>>


Arch      Built     Started    Linux distro
-------------------------------------------
mips        n          n
mips64      n          n
x86         n          n
x86_64      y          y
powerpc     n          n
powerpc64   n          n


Reviewer Checklist:
-------------------
[Submitters: make sure that your review doesn't trigger any checkmarks!]


Your checkin has not passed review because (see checked entries):

___ Your RR template is generally incomplete; it has too many blank entries
    that need proper data filled in.

___ You have failed to nominate the proper persons for review and push.

___ Your patches do not have proper short+long header

___ You have grammar/spelling in your header that is unacceptable.

___ You have exceeded a sensible line length in your headers/comments/text.

___ You have failed to put in a proper Trac Ticket # into your commits.

___ You have incorrectly put/left internal data in your comments/files
    (i.e. internal bug tracking tool IDs, product names etc)

___ You have not given any evidence of testing beyond basic build tests.
    Demonstrate some level of runtime or other sanity testing.

___ You have ^M present in some of your files. These have to be removed.

___ You have needlessly changed whitespace or added whitespace crimes
    like trailing spaces, or spaces before tabs.

___ You have mixed real technical changes with whitespace and other
    cosmetic code cleanup changes. These have to be separate commits.

___ You need to refactor your submission into logical chunks; there is
    too much content into a single commit.

___ You have extraneous garbage in your review (merge commits etc)

___ You have giant attachments which should never have been sent;
    Instead you should place your content in a public tree to be pulled.

___ You have too many commits attached to an e-mail; resend as threaded
    commits, or place in a public tree for a pull.

___ You have resent this content multiple times without a clear indication
    of what has changed between each re-send.

___ You have failed to adequately and individually address all of the
    comments and change requests that were proposed in the initial review.

___ You have a misconfigured ~/.hgrc file (i.e. username, email etc)

___ Your computer have a badly configured date and time; confusing the
    the threaded patch review.

___ Your changes affect IPC mechanism, and you don't present any results
    for in-service upgradability test.

___ Your changes affect user manual and documentation, your patch series
    do not contain the patch that updates the Doxygen manual.


------------------------------------------------------------------------------
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to