Bug 1359103

Summary: Clusters widget on main dashboard doesn't report cluster in a warning state
Product: [Red Hat Storage] Red Hat Storage Console Reporter: Martin Bukatovic <mbukatov>
Component: UIAssignee: sankarshan <sankarshan>
Status: CLOSED DUPLICATE QA Contact: sds-qe-bugs
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2CC: kchidamb, nthomas, sankarshan, vsarmila
Target Milestone: ---   
Target Release: 2   
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: 2016-07-22 14:12:04 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:
Bug Depends On:    
Bug Blocks: 1353450    
Attachments:
Description Flags
screenshot 1: cluster list page
none
screenshot 2: clusters widget of the main dashboard (cluster status counter is missing even though there is a cluster in a warning state) none

Description Martin Bukatovic 2016-07-22 09:45:01 UTC
Description of problem
======================

When there is a cluster in a warning state (see screenshot #1), it's not
reported on Clusters widget on main dashboard (see screenshot #2).

This conflicts with the design document (USM 1.0 Overall Design), which states:

> Cluster Status (Error or Warning) - count of clusters with Error or Warning
> status, Tooltip: "N clusters need attention"

Version-Release
===============

On RHSC 2.0 server machine:

rhscon-core-selinux-0.0.28-1.el7scon.noarch
rhscon-core-0.0.28-1.el7scon.x86_64
rhscon-ui-0.0.42-1.el7scon.noarch
rhscon-ceph-0.0.27-1.el7scon.x86_64
ceph-installer-1.0.12-3.el7scon.noarch
ceph-ansible-1.0.5-23.el7scon.noarch

How reproducible
================

100 %

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

1. Install RHSC 2.0 following the documentation.
2. Accept few nodes for the ceph cluster.
3. Create new ceph cluster named 'alpha'.
4. Break the cluster so that it's in a warning state (eg. HEALTH_WARN).

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

Check cluster state both on:

* the Clusters page, I see Warning icon there (screenshot #1).
* `ceph health` output, where I see `HEALTH_WARN`

But when I look at Clusters widget on the Main Dashboard, I don't see this
cluster reported by "Cluster Status" counter as described in the design
document. The icon and the counter is not there (see screenshot #2).

Expected results
================

When I look at Clusters widget on the Main Dashboard, I see "Cluster Status"
counter (with tooltip "1 cluster needs attention"), which links to a filtered
list of clusters in error or warning state - so just cluster alpha in this
case (since it's the only cluster in such state in this scenario).

Additional info
===============

I consider the design drafter in the design document a bit misleading, as it
suggest to use error icon for counter of clusters in either error or warning
states.

Comment 1 Martin Bukatovic 2016-07-22 09:47:01 UTC
Created attachment 1182759 [details]
screenshot 1: cluster list page

Comment 2 Martin Bukatovic 2016-07-22 09:47:49 UTC
Created attachment 1182761 [details]
screenshot 2: clusters widget of the main dashboard (cluster status counter is missing even though there is a cluster in a warning state)

Comment 3 Martin Bukatovic 2016-07-22 09:48:47 UTC
Additional info
===============

The warning icon next to the value "2" shown in Clusters widget on screenshot #2
is number of active alerts.

Comment 4 Karnan 2016-07-22 14:12:04 UTC
this is a duplicate bug.

https://bugzilla.redhat.com/show_bug.cgi?id=1358506

In above bug, fixed dashboard to show count of clusters in error, warning state.
this will be fixed as part of above bug

*** This bug has been marked as a duplicate of bug 1358506 ***