Red Hat Bugzilla – Bug 1158491
'pcs cluster status' is documented to be an alias to 'pcs status cluster' but has different output
Last modified: 2015-11-19 04:32:59 EST
Description of problem: 'pcs cluster status' command does not have the same output as the 'pcs status cluster' command but they are described as the same in man page and pcs help. Version-Release number of selected component (if applicable): pcs-0.9.135 How reproducible: always Steps to Reproduce: compare the output of 'pcs status cluster' and 'pcs cluster status' commands Actual results: [root@rh70-node1:~/devel/pcs/pcs]# diff <(./pcs status cluster) <(./pcs cluster status) 8a9,12 > > PCSD Status: > rh70-node1: Online > rh70-node2: Online Expected results: 'pcs status cluster' and 'pcs cluster status' commands have the same output Additional info: github issue: https://github.com/feist/pcs/issues/35
Fixed while working on bz1196412, fix is included in upstream patch: https://github.com/feist/pcs/commit/8be3ac4314f6587efb5d0f25d665f6c9250ccee8 Test: 'pcs cluster status' has the same output as 'pcs status cluster'
Before Fix: [root@rh71-node1 ~]# rpm -q pcs pcs-0.9.137-13.el7_1.2.x86_64 [root@rh71-node1:~]# diff <( pcs status cluster ) <( pcs cluster status ) 8a9,13 > > PCSD Status: > rh71-node1: Online > rh71-node2: Online > rh71-node3: Online [root@rh71-node1:~]# echo $? 1 After Fix: [root@rh71-node1:~]# rpm -q pcs pcs-0.9.140-1.el6.x86_64 [root@rh71-node1:~]# diff <( pcs status cluster ) <( pcs cluster status ) [root@rh71-node1:~]# echo $? 0
Marking VERIFIED in pcs-0.9.141-1.el7.x86_64 BEFORE FIX: [root@virt-012 ~]# rpm -q pcs pcs-0.9.137-13.el7_1.3.x86_64 [root@virt-012 ~]# diff -u <(pcs status cluster) <(pcs cluster status) --- /dev/fd/63 2015-07-03 19:33:22.520806579 +0200 +++ /dev/fd/62 2015-07-03 19:33:22.522806579 +0200 @@ -6,3 +6,8 @@ Version: 1.1.12-a14efad 3 Nodes configured 9 Resources configured + +PCSD Status: + virt-012: Online + virt-013: Online + virt-014: Online [root@virt-012 ~]# echo $? 1 AFTER FIX: [root@virt-012 x86_64]# rpm -q pcs pcs-0.9.141-1.el7.x86_64 [root@virt-012 x86_64]# diff -u <(pcs status cluster) <(pcs cluster status) [root@virt-012 x86_64]# echo $? 0
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-2290.html