Description of problem: When you issue a cluster status command from cluadmin, the service and owner fields are limited to 14 characters Version-Release number of selected component (if applicable): Red Hat Cluster Manager (clumanager) 1.0.19 cluadmin $Id: cluadmin.tcl,v 1.35 2002/10/02 21:48:25 lhh Exp $ How reproducible: All the time Steps to Reproduce: 1. Run the following command: "cluadmin -s cluster status" 2. 3. Actual results: Last Monitor Restart Service Status Owner Transition Interval Count -------------- -------- -------------- ---------------- -------- --- ---- service2 started usil474lnx11 14:54:30 May 18 0 0 service1 started usil474lnx11 14:54:30 May 18 0 0 service3 started usil474lnx11 14:54:30 May 18 0 0 service4 started usil474lnx11 14:54:29 May 18 0 0 service5 started usil474lnx11 14:54:30 May 18 0 0 service6 started usil474lnx11 14:54:30 May 18 0 0 apache disabled None 18:38:49 May 04 30 0 service7 started usil474lnx11 14:54:30 May 18 0 0 service8 started usil474lnx11 14:54:30 May 18 0 0 service11 started usil474lnx11 14:54:30 May 18 0 0 service12 started usil474lnx11 14:54:30 May 18 10 0 service13 disabled None 19:28:32 May 04 5 0 Expected results: Additional info: The problem is that the service and owner field are both limited to 14 characters in this display. If the hostname of node A was "abcdefghijklmn1" and the host of node B was "abcdefghijklmn2", for example, then in this display the last character would be cutoff and therefore the user would have no idea which service belonged to what node.
Note that "cluadmin -- cluster status" is the long way around simply typing "clustat". To "fix" this: (1) It would be better to add a command line option to enable a different output method, rather than simply altering the field widths. (2) Having a "minimum size" and no "max" size might also work. However, the output will be very messy in this case (it will run on to the next line...)
Created attachment 100928 [details] Patch implementing long-output mode Adds long output mode to clustat. Note that "service show state" and "cluster status" commands from within cluadmin will still not work; in order to determine the status you're looking for, you must use clustat directly.
Created attachment 100929 [details] Above patch, compiler warnings cleaned up, briefly tested Tested only briefly
Created attachment 100933 [details] Minor updates Minor output bugfixes. Should be final iteration; please test.
Created attachment 100934 [details] Output examples Output of clustat with and without -l flag for normal, -p <service>, -m <member>, and -c <channel> operations.
Verified long listing of clustat output. Marking PROD_READY.
An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2004-223.html