Here are major changes in this ticket.

// printout when input wrong data format for timeout option
$ clmprint -n 0x2020f -t 11safasd
error - input wrong data format!

// printout when querying non-member node information
$ clmprint -n 0x3060f
Node id 0x3060f is not in cluster membership

// printout when inputing multiple options
$ clmprint  -b -m -a -n
error - multiple options!

// printout when passing duplicated option
$ clmprint  -n 0x2030f -n 0x2030f
error - duplicated option!


---

** [tickets:#2651] clm: clmprint does not work as expected**

**Status:** review
**Milestone:** 5.17.10
**Created:** Mon Oct 23, 2017 10:40 AM UTC by Vu Minh Nguyen
**Last Updated:** Tue Oct 24, 2017 07:44 AM UTC
**Owner:** Vu Minh Nguyen


1. clmprint returns 0 for the error case
> root@SC-1:~# clmprint -n 0x3060f
> node_id:198159(3060f)
> error - clmprint:: saClmClusterNodeGet_4 failed, rc = 12
> root@SC-1:~# echo $?

2. clmprint does not handle invalid inputs
> clmprint -b -m -a -n
> node_id:4294967295(ffffffff)
> node_id:4294967295(ffffffff)
> ...

3. clmprint is not able to print non-member node information
> root@SC-1:~# clm-adm -o lock safNode=PL-5,safCluster=myClmCluster
> root@SC-1:~# clm-state safNode=PL-5,safCluster=myClmCluster
> safNode=PL-5,safCluster=myClmCluster
> saClmNodeAdminState=LOCKED(2)
> saClmNodeIsMember=NON_MEMBER(0)
> saClmNodeID=132367(0x2050f)
> root@SC-1:~# clmprint -n 0x2050f
> node_id:132367(2050f)
> error - clmprint:: saClmClusterNodeGet_4 failed, rc = 31


---

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

Reply via email to