- **status**: review --> fixed
- **assigned_to**: Vu Minh Nguyen --> nobody
- **Priority**: major --> minor
- **Comment**:
commit e070300a38f0f564c8c8493f112c68c442c6528c (HEAD, origin/develop,
ticket-2651, develop)
Author: Vu Minh Nguyen <[email protected]>
Date: Wed Oct 25 10:57:17 2017 +0700
clm: fix errors in clmprint tool [#2651]
Fix the problems:
1) clmprint returns 0 for the error case.
2) clmprint does not handle invalid inputs.
3) clmprint does not deal with non-member node.
---
** [tickets:#2651] clm: clmprint does not work as expected**
**Status:** fixed
**Milestone:** 5.17.10
**Created:** Mon Oct 23, 2017 10:40 AM UTC by Vu Minh Nguyen
**Last Updated:** Tue Oct 24, 2017 07:53 AM UTC
**Owner:** nobody
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 [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