Menu

#2652 clm: return wrong error code

5.17.11
fixed
nobody
None
defect
clm
d
major
False
2017-10-30
2017-10-24
No

saClmClusterNodeGet_4() returns SA_AIS_ERR_UNAVAILABLE(31) when querying non-member node information from a member node.

According to AIS, chapter 3.5.5, it should return SA_AIS_ERR_NOT_EXIST instead.

root@SC-1:~# clm-state
safNode=PL-3,safCluster=myClmCluster
saClmNodeAdminState=LOCKED(2)
saClmNodeIsMember=NON_MEMBER(0)
saClmNodeID=131855(0x2030f)
safNode=PL-4,safCluster=myClmCluster
saClmNodeAdminState=UNLOCKED(1)
saClmNodeIsMember=MEMBER(1)
saClmNodeID=132111(0x2040f)
safNode=PL-5,safCluster=myClmCluster
saClmNodeAdminState=UNLOCKED(1)
saClmNodeIsMember=MEMBER(1)
saClmNodeID=132367(0x2050f)
safNode=SC-1,safCluster=myClmCluster
saClmNodeAdminState=UNLOCKED(1)
saClmNodeIsMember=MEMBER(1)
saClmNodeID=131343(0x2010f)
safNode=SC-2,safCluster=myClmCluster
saClmNodeAdminState=UNLOCKED(1)
saClmNodeIsMember=MEMBER(1)
saClmNodeID=131599(0x2020f)
root@SC-1:~# clmprint -n 0x2030f
node_id:131855(2030f)
error - clmprint:: saClmClusterNodeGet_4 failed, rc = 31

Related

Wiki: ChangeLog-5.17.11

Discussion

  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-10-24
    • status: assigned --> review
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-10-26
    • status: review --> fixed
    • assigned_to: Vu Minh Nguyen --> nobody
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-10-26

    commit ba5302f6e65108d9023b16b3bd8e4986fe178ea8 (HEAD, origin/develop, ticket-2652, develop)
    Author: Vu Minh Nguyen vu.m.nguyen@dektech.com.au
    Date: Thu Oct 26 09:38:35 2017 +0700

    clm: fix return wrong error code [#2652]
    
    saClmClusterNodeGet_4() and saClmClusterNodeGetAsync() returns
    SA_AIS_ERR_UNAVAILABLE(31) when querying non-member node information
    from a member node.
    
    According to AIS, they should return SA_AIS_ERR_NOT_EXIST.
    SA_AIS_ERR_UNAVAILABLE should be returned when invoking process is not
    executing on a member node.
    
     

Log in to post a comment.