Bug 1349913

Summary: number of degraded objects is wrong
Product: [Red Hat Storage] Red Hat Storage Console Reporter: Lubos Trilety <ltrilety>
Component: unclassifiedAssignee: anmol babu <anbabu>
Status: CLOSED WONTFIX QA Contact: sds-qe-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2CC: mkudlej, nthomas, sankarshan, vsarmila
Target Milestone: ---   
Target Release: 3   
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: 2017-03-23 04:12:48 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: 1358275    
Bug Blocks:    

Description Lubos Trilety 2016-06-24 14:17:57 UTC
Description of problem:
If there is some problem like not enough OSDs object is created and goes to degraded state. The Objects area shows that there is some issue, with some object, but the number of bad objects is wrong.
There is similar issue in API.

Version-Release number of selected component (if applicable):
rhscon-core-selinux-0.0.26-1.el7scon.noarch
rhscon-ui-0.0.41-1.el7scon.noarch
rhscon-core-0.0.26-1.el7scon.x86_64
rhscon-ceph-0.0.26-1.el7scon.x86_64

How reproducible:
100%

Steps to Reproduce:
1. prepare some pool and add there several objects e.g. 4 objects
2. remove some OSDs so there is less OSDs than the pool requires
3. create another object


Actual results:
Object is created and with all related PGs go to degraded state
There is bad number of objects on any dashboard (8 degraded objects)

API returns:
"objectcount": {
"num_objects": 5
"num_objects_degraded": 8
}

There is more degraded objects than total number of them.


Expected results:
There will be number one as only one degraded object exist.

Additional info: