- **status**: review --> fixed
- **assigned_to**: Vu Minh Nguyen -->  nobody 
- **Comment**:

commit ba5302f6e65108d9023b16b3bd8e4986fe178ea8 (HEAD, origin/develop, 
ticket-2652, develop)
Author: Vu Minh Nguyen <[email protected]>
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.



---

** [tickets:#2652] clm: return wrong error code**

**Status:** fixed
**Milestone:** 5.17.10
**Created:** Tue Oct 24, 2017 05:09 AM UTC by Vu Minh Nguyen
**Last Updated:** Tue Oct 24, 2017 07:58 AM UTC
**Owner:** nobody


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


---

Sent from sourceforge.net because [email protected] 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to