Bug 1614000

Summary: "Bricks" and "Brick Status" panels on Host and Volume dashboards doesn't use the same definition of brick state
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Martin Bukatovic <mbukatov>
Component: web-admin-tendrl-monitoring-integrationAssignee: gowtham <gshanmug>
Status: CLOSED ERRATA QA Contact: Elena Bondarenko <ebondare>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.4CC: amukherj, apaladug, ebondare, mbukatov, nthomas, rhinduja, rhs-bugs, sankarshan
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.4.z Batch Update 1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tendrl-monitoring-integration-1.6.3-13.el7rhgs Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-31 08:45:18 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:
Embargoed:
Attachments:
Description Flags
screenshot 1: discrepancy in brick states on host dashboard
none
screenshot 2: discrepancy in brick states on volume dashboard
none
Volume dashboard brick status
none
Host dashboard brick status
none
Cluster_dashboard_brick_status none

Description Martin Bukatovic 2018-08-08 19:06:28 UTC
Description of problem
======================

There is a discrepancy between Bricks and Brick Status panel, one uses "up" and
"down", the other uses "started" and "stopped" when reporting status.

Version-Release number of selected component
============================================

tendrl-monitoring-integration-1.6.3-7.el7rhgs.noarch

Steps to Reproduce
==================

1. Instal RHGS WA using tendrl-ansible
2. Import Trusted storage pool with at least one volume
3. Go to Host dashboard and check "Bricks" and "Brick Status" panels

Actual results
==============

Brick panel reports number for:

 * bricks in "up" state
 * bricks in "down" state
 * total number of bricks

While description of "Brick Status" panel defines status codes in the table
as:

 * 0 = Started
 * 8 = Stopped

See screenshot 1.

Expected result
===============

Both panels uses the same set of brick states.

Additional questions
====================

Is there any difference? Do we use the same terminology as RHGS core?

Comment 1 Martin Bukatovic 2018-08-08 19:09:20 UTC
Created attachment 1474481 [details]
screenshot 1: discrepancy in brick states on host dashboard

Comment 2 Martin Bukatovic 2018-08-09 08:19:31 UTC
Volume dashboard has the same problem, updating the scope of this BZ to cover
both Volume and Host dashboards.

To verify this BZ, QE team will check this problem on:

 * Volume Dashboard
 * Host Dashboard

Comment 3 Martin Bukatovic 2018-08-09 08:22:20 UTC
Created attachment 1474600 [details]
screenshot 2: discrepancy in brick states on volume dashboard

Comment 5 gowtham 2018-08-29 09:56:04 UTC
Created attachment 1479434 [details]
Volume dashboard brick status

Comment 6 gowtham 2018-08-29 09:57:15 UTC
Created attachment 1479435 [details]
Host dashboard brick status

Comment 7 gowtham 2018-08-29 09:59:09 UTC
Martin, please check my screenshots, is this the expectation?

Comment 8 gowtham 2018-09-05 12:05:11 UTC
Created attachment 1481084 [details]
Cluster_dashboard_brick_status

Comment 9 gowtham 2018-09-05 12:07:00 UTC
I have proposed changes in screenshots, please review

Comment 10 Martin Bukatovic 2018-09-06 18:23:06 UTC
Gowtham, I see you are proposing to use "started"/"stopped" everywhere. This
looks good. That said, I would like to ask gluster eng. if they also agree with
this choice (I would rather prevent some subtle naming clash).

Atin, could you please verify that it's ok for WA to report status of a brick
as either "started" or "stopped".

Comment 11 Martin Bukatovic 2018-09-06 18:42:50 UTC
Note that there is other BZ, which points out that the list of states is not
complete (BZ 1618770 demonstrates that there is at least 1 other state which
the description doesn't talk about).

To be able to make progress here, I'm highlighting that this BZ is solely about
making sure the same names of brick states are used across WA dashboard, and it's
not concerned with the fact that we have some brick states missing (which is
tracked in another, already mentioned BZ 1618770).

Comment 12 Atin Mukherjee 2018-09-07 09:57:37 UTC
(In reply to Martin Bukatovic from comment #10)
> Gowtham, I see you are proposing to use "started"/"stopped" everywhere. This
> looks good. That said, I would like to ask gluster eng. if they also agree
> with
> this choice (I would rather prevent some subtle naming clash).
> 
> Atin, could you please verify that it's ok for WA to report status of a brick
> as either "started" or "stopped".

I'd definitely vote for the same as in glusterd the brick's status is represented as 'started' or 'stopped' .

Comment 14 gowtham 2018-09-11 07:05:43 UTC
PR is under review: https://github.com/Tendrl/monitoring-integration/pull/546

Comment 16 Elena Bondarenko 2018-09-25 11:31:21 UTC
Brick status is Started or Stopped (not Up or Down) everywhere on Volume and Host dashboards.

Comment 18 errata-xmlrpc 2018-10-31 08:45:18 UTC
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://access.redhat.com/errata/RHBA-2018:3427