Bug 1402342

Summary: [cli] "pcs cluster status" contradicts "pcs resource" in the provided output
Product: Red Hat Enterprise Linux 7 Reporter: Jan Pokorný [poki] <jpokorny>
Component: pcsAssignee: Tomas Jelinek <tojeline>
Status: CLOSED WONTFIX QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: cfeist, cluster-maint, idevat, omular, tojeline
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-15 07:29:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Pokorný [poki] 2016-12-07 09:58:26 UTC
# pcs cluster status
> Cluster Status:
>  Stack: corosync
>  Current DC: virt-123 (version 1.1.15-10.el7-e174ec8) - partition with quorum
>  Last updated: Wed Dec  7 10:52:16 2016         Last change: Fri Nov 25 17:17:31 2016 by root via cibadmin on virt-127
>  6 nodes and 6 resources configured
               ^^^^^^^^^^^
> 
> PCSD Status:
>   virt-127: Online
>   virt-129: Online
>   virt-130: Online
>   virt-123: Online
>   virt-128: Online
>   virt-131: Online

# pcs resource
> NO resources configured
  ^^^^^^^^^^^^

Comment 1 Jan Pokorný [poki] 2016-12-07 10:11:35 UTC
The point here is that configured fence agent instances counts into the
total sum of resources in case of "pcs cluster status":

# pcs stonith
>  fence-virt-127 (stonith:fence_xvm):    Started virt-123
>  fence-virt-123 (stonith:fence_xvm):    Started virt-127
>  fence-virt-130 (stonith:fence_xvm):    Started virt-128
>  fence-virt-131 (stonith:fence_xvm):    Started virt-129
>  fence-virt-129 (stonith:fence_xvm):    Started virt-130
>  fence-virt-128 (stonith:fence_xvm):    Started virt-131


Note also the inconsistency in the leading spaces:

* pcs cluster status:
  - one space under "Cluster Status" header
  - two spaces under "PCSD Status" header

* pcs stonith:
  - one space (without any header)

Comment 3 RHEL Program Management 2021-01-15 07:29:03 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.